When you compiled the userland/libs directory that produced libpfring.so, you need to do:

cd userland/lib
./configure --disable-bpf
make
make install


Note the --disable-bpf

That removes the need to include pcap-style filtering.


If you wish to use pcap style filtering, simply also link your program against libpcap instead, such as:

gcc -o pfCount1 pfcount.c -lpfring -lpcap

Hope that helps.

> gcc -o pfCount1 pfcount.c -lpfring
/usr/local/lib/libpfring.so: undefined reference to `pcap_compile_nopcap'
collect2: ld returned 1 exit status  We get this error.

> Then we have edited the pfring with some mysql additional and when we compile

> gcc -o pfExeV1.c $(mysql_config --cflags) pfV1.c $(mysql_config --libs) -lpfring
pfV1.c:24:1: warning: "_GNU_SOURCE" redefined
> <command-line>: warning: this is the location of the previous definition
> pfV1.c: In function âmainâ:
> pfV1.c:745: error: too many arguments to function âpfring_openâ


> What are we missing in our installation process?
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to