On 12/13/2015 10:47 PM, Simone Mainardi wrote: > compilation is OK, it looks like an issue during the linking phase. > > In particular, it seems to me that there is no libsodium available in > your system. Please try and install security/libsodium package and > then: ./autogen.sh && ./configure && make > or use ZMQ without libsodium
Luca > > simone > > > s > > On Fri, Dec 11, 2015 at 1:57 PM, Joe Rizzo <[email protected] > <mailto:[email protected]>> wrote: > > Thanks for the response. I did install the dependencies. If I > try to compile ntopng against the ZMQ included with the ntopng > sources I get the error below. > > I have asked for help - > > https://www.reddit.com/r/forhire/comments/3wbhjv/hiring_compile_ntopng_v22_on_freebsd_101/ > I will post the details if I am able to get this compiled. > > Just FYI - The goals is to be able to run ntopng on pfsense. > > root@:~/build/ntopng # gmake > g++ src/Ntop.o src/DnsStats.o src/Prefs.o src/HTTPBL.o > src/Categorization.o src/EthStats.o src/main.o > src/Flashstart.o src/ProtoStats.o src/PacketDumperTuntap.o > src/AddressResolution.o src/L > ua.o src/HTTPserver.o src/NetworkStats.o > src/NetworkInterfaceView.o src/VirtualHostHash.o src/Mutex.o > src/NetworkInterface.o src/TrafficStats.o src/ExportInterface.o > src/Redis.o src/Flow.o sr > c/Host.o src/VirtualHost.o src/IpAddress.o src/PacketStats.o > src/DB.o src/GenericHash.o src/RuntimePrefs.o > src/ActivityStats.o src/PacketDumper.o src/LocalTrafficStats.o > src/HostHash.o src/Tr > ace.o src/PeriodicActivities.o src/FlowsManager.o > src/GenericHost.o src/AlertCounter.o src/HTTPStats.o > src/FlowHash.o src/Geolocation.o src/NtopGlobals.o src/Utils.o > src/PcapInterface.o src/n > DPIStats.o src/PF_RINGInterface.o src/ParserInterface.o > src/CollectorInterface.o src/MySQLDB.o src/AddressTree.o > src/StatsManager.o src/GenericHashEntry.o -Wall > ../nDPI/src/lib/.libs/libndpi.a - > lpcap /root/build/ntopng/third-party/LuaJIT-2.0.3/src/libluajit.a > -L/usr/local/lib -lrrd /usr/local/lib/libzmq.a > /root/build/ntopng/third-party/json-c/.libs/libjson-c.a -lsqlite3 > -L/usr/local/lib/mys > ql -lmysqlclient -pthread -lm -L/usr/local/lib -lrt -lcurl > -lm -lpthread -o ntopng > /usr/local/lib/libzmq.a(libzmq_la-ctx.o): In function > `zmq::ctx_t::~ctx_t()': > /root/build/ntopng/third-party/zeromq-4.1.3/src/ctx.cpp:117: > undefined reference to `randombytes_close' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::encode(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:157: > undefined reference to `crypto_box_afternm' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::decode(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:223: > undefined reference to `crypto_box_open_afternm' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::curve_server_t(zmq::session_base_t*, > std::string const&, zmq::options_t const&)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:64: > undefined reference to `sodium_init' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:68: > undefined reference to `crypto_box_keypair' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::process_hello(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:319: > undefined reference to `crypto_box_open' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::produce_welcome(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:340: > undefined reference to `randombytes' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:350: > undefined reference to `randombytes' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:355: > undefined reference to `crypto_secretbox' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:365: > undefined reference to `randombytes' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:377: > undefined reference to `crypto_box' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::produce_ready(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:547: > undefined reference to `crypto_box_afternm' > /usr/local/lib/libzmq.a(libzmq_la-curve_server.o): In function > `zmq::curve_server_t::process_initiate(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:421: > undefined reference to `crypto_secretbox_open' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:454: > undefined reference to `crypto_box_open' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:479: > undefined reference to `crypto_box_open' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_server.cpp:496: > undefined reference to `crypto_box_beforenm' > /usr/local/lib/libzmq.a(libzmq_la-zmq_utils.o): In function > `zmq_curve_keypair': > /root/build/ntopng/third-party/zeromq-4.1.3/src/zmq_utils.cpp:202: > undefined reference to `crypto_box_keypair' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::encode(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:151: > undefined reference to `crypto_box_afternm' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::decode(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:214: > undefined reference to `crypto_box_open_afternm' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::curve_client_t(zmq::options_t const&)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:61: > undefined reference to `sodium_init' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:65: > undefined reference to `crypto_box_keypair' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::produce_hello(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:265: > undefined reference to `crypto_box' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::process_welcome(unsigned char const*, > unsigned long)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:310: > undefined reference to `crypto_box_open' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:320: > undefined reference to `crypto_box_beforenm' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::produce_initiate(zmq::msg_t*)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:340: > undefined reference to `randombytes' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:344: > undefined reference to `crypto_box' > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:380: > undefined reference to `crypto_box' > /usr/local/lib/libzmq.a(libzmq_la-curve_client.o): In function > `zmq::curve_client_t::process_ready(unsigned char const*, unsigned > long)': > /root/build/ntopng/third-party/zeromq-4.1.3/src/curve_client.cpp:424: > undefined reference to `crypto_box_open_afternm' > collect2: error: ld returned 1 exit status > Makefile:134: recipe for target 'ntopng' failed > gmake: *** [ntopng] Error 1 > > Thanks, > Joe > > > On Sun, Dec 6, 2015 at 8:18 AM, Simone Mainardi <[email protected] > <mailto:[email protected]>> wrote: > > Hi Joe, > > Did you install all the required dependencies (autoconf > automake libtool wget pkgconf rrdtool gmake redis git bash > mysql-connector-c) ? > > If it still fails, try to: > - compile with bsd 'make' > - use the ZMQ library shipped with ntopng sources > > Simone > > > > On Fri, Dec 4, 2015 at 3:20 PM, Joe Rizzo <[email protected] > <mailto:[email protected]>> wrote: > > Hi - > I am trying to compile ntopng v2.2 on FreeBSD 10.1. I am > stuck on the following error. Any help or guidance is > greatly appreciated. > > root@:~/build/ntopng # gmake > g++ src/Ntop.o src/DnsStats.o src/Prefs.o src/HTTPBL.o > src/Categorization.o src/EthStats.o src/main.o > src/HTTPStats.o src/ProtoStats.o > src/PacketDumperTuntap.o src/AddressResolution.o > src/Lua.o src/HTTPserver.o src/NetworkStats.o > src/NetworkInterfaceView.o src/VirtualHostHash.o > src/Mutex.o src/NetworkInterface.o src/TrafficStats.o > src/ExportInterface.o src/Redis.o src/Flow.o > src/Host.o src/VirtualHost.o src/IpAddress.o > src/PacketStats.o src/DB.o src/GenericHash.o > src/RuntimePrefs.o src/ActivityStats.o > src/PacketDumper.o src/LocalTrafficStats.o > src/HostHash.o src/Trace.o src/PeriodicActivities.o > src/FlowsManager.o src/GenericHost.o src/AlertCounter.o > src/FlowHash.o src/Geolocation.o src/NtopGlobals.o > src/Utils.o src/PcapInterface.o src/nDPIStats.o > src/PF_RINGInterface.o src/ParserInterface.o > src/CollectorInterface.o src/MySQLDB.o > src/AddressTree.o src/StatsManager.o > src/GenericHashEntry.o -Wall > ../nDPI/src/lib/.libs/libndpi.a -lpcap > /root/build/ntopng/third-party/LuaJIT-2.0.3/src/libluajit.a > /root/build/ntopng/third-party/rrdtool-1.4.8/src/.libs/librrd_th.a > -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 > /usr/local/lib/libzmq.a > /root/build/ntopng/third-party/json-c/.libs/libjson-c.a > -lsqlite3 -L/usr/local/lib/mysql -lmysqlclient -pthread > -lm -L/usr/local/lib -lrt -lcurl -lm -lpthread -o ntopng > /usr/local/bin/ld: > /usr/local/lib/libzmq.a(libzmq_la-tcp_address.o): > undefined reference to symbol '_ZNSt3__18ios_base5clearEj' > //usr/lib/libc++.so.1: error adding symbols: DSO missing > from command line > collect2: error: ld returned 1 exit status > Makefile:134: recipe for target 'ntopng' failed > gmake: *** [ntopng] Error 1 > > Thanks, > Joe > > > _______________________________________________ > Ntop mailing list > [email protected] <mailto:[email protected]> > http://listgateway.unipi.it/mailman/listinfo/ntop > > > > _______________________________________________ > Ntop mailing list > [email protected] <mailto:[email protected]> > http://listgateway.unipi.it/mailman/listinfo/ntop > > > > _______________________________________________ > Ntop mailing list > [email protected] <mailto:[email protected]> > http://listgateway.unipi.it/mailman/listinfo/ntop > > > > > _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
