Closed GoogleCodeExporter closed 9 years ago
And you can remove pcap because it optional for PF_RING in native mode.
Original comment by pavel.odintsov
on 14 Jun 2014 at 6:59
Are you able to compile a C/C++ binary that uses PF_RING with your current
setup?
These errors look like they may be related to a broken install of pfring, just
want to make sure we check that out.
Original comment by gconnell@google.com
on 16 Jun 2014 at 4:46
Hello!
I created simple programm for checking PF_RING compilation:
https://gist.github.com/pavel-odintsov/62f372c882c83d85ed17
And tried to compile it with same results:
gcc test_pf_ring.c -lpfring -lpcap
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpfring.so:
undefined reference to `clock_gettime'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpfring.so:
undefined reference to `numa_parse_nodestring'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpfring.so:
undefined reference to `numa_node_of_cpu'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpfring.so:
undefined reference to `numa_available'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpfring.so:
undefined reference to `numa_bind'
Problem was fixed in same way (I added -lnuma -lrt):
gcc test_pf_ring.c -lpfring -lpcap -lnuma
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpfring.so:
undefined reference to `clock_gettime'
All compiles fine with this code: gcc test_pf_ring.c -lpfring -lpcap -lnuma -lrt
Original comment by pavel.odintsov
on 16 Jun 2014 at 5:15
I suppose this issue related with my pf_ring compilation flags, I used non
standard option --disable-bpf for disabling linking to pcap because it's
obsolete. Without this flag all works pretty well but only on modern pcap
library version.
I think you can close this issue because my compilation flags is non standard.
Original comment by pavel.odintsov
on 16 Jun 2014 at 7:44
Thanks for the heads-up!
I'll add a comment in pfring.go so others with the same issues can find out
what's going on. Just to be clear, the addition of -lnuma and -lrt are
necessary if using --disable-bpf with pfring?
Original comment by gconnell@google.com
on 16 Jun 2014 at 7:53
Original issue reported on code.google.com by
pavel.odintsov
on 12 Jun 2014 at 5:29