Hello everyone,

I am having an issue that I have not run up against before where I am trying to 
compile the examples and am getting some errors. This is a CentOS7 box running 
3.10.0-229.1.2.el7.x86_64. The kernel module and libpcap/tcpdump compile fine. 
When I point the symlink to libpcap 1.1.1 examples compile correctly. When I 
point the link to 1.6.2, I get the following error: 

gcc  -march=corei7 -mtune=corei7  -O2 -DHAVE_PF_RING -Wall -I../../kernel 
-I../../kernel/plugins -I../lib -I../libpcap -Ithird-party  -D HAVE_ZERO -D 
ENABLE_BPF -D HAVE_LIBNUMA -O2  pfcount.o ../libpcap/libpcap.a   
../lib/libpfring.a ../libpcap/libpcap.a     -lpthread  -lrt   -lnuma -lrt -o 
pfcount
../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_init':
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:596: undefined 
reference to `nl_socket_alloc'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:603: undefined 
reference to `genl_connect'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:609: undefined 
reference to `genl_ctrl_alloc_cache'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:617: undefined 
reference to `genl_ctrl_search_by_name'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:629: undefined 
reference to `nl_socket_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:611: undefined 
reference to `nl_geterror'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:627: undefined 
reference to `nl_cache_free'
../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:636: undefined 
reference to `genl_family_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:637: undefined 
reference to `nl_cache_free'
../libpcap/libpcap.a(pcap-linux.o): In function `del_mon_if':
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:749: undefined 
reference to `nlmsg_alloc'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:756: undefined 
reference to `genl_family_get_id'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:756: undefined 
reference to `genlmsg_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:758: undefined 
reference to `nla_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:760: undefined 
reference to `nl_send_auto_complete'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:768: undefined 
reference to `nl_wait_for_ack'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:780: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:787: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:762: undefined 
reference to `nl_geterror'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:773: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:770: undefined 
reference to `nl_geterror'
../libpcap/libpcap.a(pcap-linux.o): In function `add_mon_if':
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:653: undefined 
reference to `nlmsg_alloc'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:660: undefined 
reference to `genl_family_get_id'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:660: undefined 
reference to `genlmsg_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:662: undefined 
reference to `nla_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:663: undefined 
reference to `nla_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:664: undefined 
reference to `nla_put'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:666: undefined 
reference to `nl_send_auto_complete'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:694: undefined 
reference to `nl_wait_for_ack'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:708: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:687: undefined 
reference to `nl_geterror'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:718: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:726: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:733: undefined 
reference to `nlmsg_free'
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:715: undefined 
reference to `nl_geterror'
../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
/home/mreeves/PF_RING-6.0.3/userland/libpcap/./pcap-linux.c:638: undefined 
reference to `nl_socket_free'
collect2: error: ld returned 1 exit status
make: *** [pfcount] Error 1


Any ideas?

Thanks

Mike
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to