This is on CentOS 6.2 with gnutls-devel-2.8.5-4.el6.i686 gnutls-2.8.5-4.el6.i686 I get these errors:
g++ Address.o EthStats.o Flow.o FlowHash.o GenericHash.o HashEntry.o Host.o HostHash.o HTTPserver.o IpAddress.o Lua.o main.o Mutex.o NdpiStats.o NetworkInterface.o Ntop.o NtopGlobals.o PeriodicActivities.o Prefs.o ProtoStats.o Redis.o Trace.o TrafficStats.o Utils.o third-party/credis-0.2.3/credis.o -Wall ./nDPI/src/lib/.libs/libndpi.a -lpcap ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a ./third-party/LuaJIT-2.0.1/src/libluajit.a -lm -ldl -lrt -o ntopng NtopGlobals.o: In function `NtopGlobals': /var/lib/pgsql/ntopng/NtopGlobals.cpp:34: warning: the use of `tmpnam' is dangerous, better use `mkstemp' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(connection.o): In function `MHD_get_connection_info': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection.c:2518: undefined reference to `gnutls_cipher_get' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection.c:2523: undefined reference to `gnutls_protocol_get_version' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(connection.o): In function `do_write': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection.c:1659: undefined reference to `gnutls_strerror' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(connection.o): In function `do_read': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection.c:1612: undefined reference to `gnutls_strerror' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(connection.o): In function `MHD_connection_get_pollfd': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection.c:930: undefined reference to `gnutls_record_get_direction' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_init': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2854: undefined reference to `gcry_control' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_cleanup_connections': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1246: undefined reference to `gnutls_deinit' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_stop_daemon': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2746: undefined reference to `gnutls_priority_deinit' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2748: undefined reference to `gnutls_certificate_free_credentials' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `parse_options_va': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1870: undefined reference to `gnutls_priority_deinit' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1871: undefined reference to `gnutls_priority_init' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1877: undefined reference to `gnutls_strerror' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_get_timeout': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1314: undefined reference to `gnutls_record_check_pending' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_add_connection': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1032: undefined reference to `gnutls_init' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1033: undefined reference to `gnutls_priority_set' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1039: undefined reference to `gnutls_credentials_set' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1057: undefined reference to `gnutls_transport_set_ptr' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1059: undefined reference to `gnutls_transport_set_pull_function' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1062: undefined reference to `gnutls_transport_set_push_function' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:1067: undefined reference to `gnutls_certificate_server_set_request' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `send_tls_adapter': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:431: undefined reference to `gnutls_record_send' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `recv_tls_adapter': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:396: undefined reference to `gnutls_record_recv' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_start_daemon_va': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2599: undefined reference to `gnutls_priority_deinit' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_TLS_init': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:501: undefined reference to `gnutls_certificate_allocate_credentials' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_init_daemon_certificate': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:458: undefined reference to `gnutls_certificate_set_x509_trust_mem' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:478: undefined reference to `gnutls_certificate_set_x509_key_mem' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_start_daemon_va': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2140: undefined reference to `gnutls_priority_init' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2242: undefined reference to `gnutls_priority_deinit' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2257: undefined reference to `gnutls_priority_deinit' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_fini': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2864: undefined reference to `gnutls_global_deinit' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(daemon.o): In function `MHD_init': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/daemon.c:2855: undefined reference to `gnutls_global_init' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(connection_https.o): In function `run_tls_handshake': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection_https.c:53: undefined reference to `gnutls_handshake' ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a(connection_https.o): In function `MHD_tls_connection_handle_idle': /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection_https.c:154: undefined reference to `gnutls_record_check_pending' /var/lib/pgsql/ntopng/third-party/libmicrohttpd-0.9.26/src/daemon/connection_https.c:151: undefined reference to `gnutls_bye' collect2: ld returned 1 exit status gmake: *** [ntopng] Error 1 gmake: Target `default' not remade because of errors. Z703072:~/ntopng I got ntopng built by add -lgnutls to the link line: Z703072:~/ntopng $ g++ Address.o EthStats.o Flow.o FlowHash.o GenericHash.o HashEntry.o Host.o HostHash.o HTTPserver.o IpAddress.o Lua.o main.o Mutex.o NdpiStats.o NetworkInterface.o Ntop.o NtopGlobals.o PeriodicActivities.o Prefs.o ProtoStats.o Redis.o Trace.o TrafficStats.o Utils.o third-party/credis-0.2.3/credis.o -Wall ./nDPI/src/lib/.libs/libndpi.a -lpcap ./third-party/libmicrohttpd-0.9.26/src/daemon/.libs/libmicrohttpd.a ./third-party/LuaJIT-2.0.1/src/libluajit.a -lm -ldl -lpthread -lrt -lgnutls -o ntopng -- Stephen Clark *NetWolves* Director of Technology Phone: 813-579-3200 Fax: 813-882-0209 Email: [email protected] http://www.netwolves.com
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
