gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Failed to compile on FreeBSD on RiPi #85

Open andoriyu opened 10 years ago

andoriyu commented 10 years ago

yes, I'm insane, but i'm making a port for freebsd.

(cd fnordmetric-webui && make build)
(cd fnordmetric-core && make build)
(cd ../fnordmetric-webui && make)
(cd build/cmake && make)
./assets.sh
mkdir -p target/tests
mkdir -p stage/src
test -e stage/src/fnordmetric || ln -s ../../../../src stage/src/fnordmetric || true
(cd target && cmake .. -DCMAKE_BUILD_TYPE=Release && make)
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- The C compiler identification is Clang 3.4.1
-- The CXX compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
WARNING: libmysqlclient not found, FnordMetric will be compiled without MySQL support
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/home/andoriyu/fnordmetric/fnordmetric-core/build/cmake/target
Scanning dependencies of target fnordmetric-cli
[  0%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/cli/cli.cc.o
[  0%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/cli/flagparser.cc.o
[  1%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/acceptor.cc.o
[  1%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/eventloop.cc.o
[  1%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/file.cc.o
[  2%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/fileutil.cc.o
[  2%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/filerepository.cc.o
[  3%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/mmappedfile.cc.o
[  3%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/io/pagemanager.cc.o
[  3%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/net/udpserver.cc.o
[  4%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/environment.cc.o
[  4%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/http/httpinputstream.cc.o
[  5%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/http/httpoutputstream.cc.o
[  5%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/http/httpmessage.cc.o
[  5%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/http/httprequest.cc.o
[  6%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/http/httpresponse.cc.o
[  6%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/http/httpserver.cc.o
[  7%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/cursor.cc.o
[  7%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/fileheaderreader.cc.o
[  7%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/fileheaderwriter.cc.o
[  8%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/index.cc.o
[  8%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/indexprovider.cc.o
[  9%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/rowoffsetindex.cc.o
[  9%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/sstablereader.cc.o
[  9%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/sstablerepair.cc.o
[ 10%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/sstable/sstablewriter.cc.o
[ 10%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/assets.cc.o
[ 11%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/binarymessagereader.cc.o
[ 11%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/binarymessagewriter.cc.o
[ 11%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/buffer.cc.o
[ 12%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/datetime.cc.o
[ 12%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/exceptionhandler.cc.o
[ 13%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/format.cc.o
[ 13%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/fnv.cc.o
[ 13%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/ieee754.cc.o
[ 14%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/inputstream.cc.o
[ 14%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/inspect.cc.o
[ 15%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/logger.cc.o
[ 15%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/logoutputstream.cc.o
[ 15%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/outputstream.cc.o
[ 16%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/jsonoutputstream.cc.o
[ 16%] Building CXX object CMakeFiles/fnordmetric-cli.dir/stage/src/fnordmetric/util/random.cc.o
/usr/home/andoriyu/fnordmetric/fnordmetric-core/build/cmake/stage/src/fnordmetric/util/random.cc:16:9: error: use of undeclared identifier 'time'
  srand(time(NULL));
        ^
1 error generated.
*** Error code 1```
andoriyu commented 10 years ago

Also, add xxd, which part of vim as a requirement.