Hi,
I have just installed the latest pf_ring using .rpm method. So I could
not the pfount source code. Then I downloaded the source from this link
http://sourceforge.net/projects/ntop/files/PF_RING/ took this one
PF_RING-5.5.2.tar.gz<http://sourceforge.net/projects/ntop/files/PF_RING/PF_RING-5.5.2.tar.gz/download>.
I faced a series of problem and managed to solve except the last one.
1) gcc -o pfcount1 pfcount.c -lpfring
pfcount.c:54:21: error: pfutils.c: No such file or directory
Fixed it by copying the pfutils.c into the same directory as pfcount.c
2) gcc -o pfcount1 pfcount.c -lpfringIn file included from pfcount.c:54:
pfutils.c:24:27: error: ../lib/config.h: No such file or directory
Fixed it by copying from the /lib folder the config.h.in and changed it to
config.h
and also change the location of it in the pfutils.c
3) gcc -o pfcount1 pfcount.c -lpfring
/tmp/ccb4JlQ7.o: In function `main':
pfcount.c:(.text+0x1e24): undefined reference to `clock_gettime'
/usr/local/lib/libpfring.so: undefined reference to `pcap_compile_nopcap'
collect2: ld returned 1 exit status
Fixed it by gcc -o pfcount1 pfcount.c -lpfring -lrt
4) gcc -o pfcount1 pfcount.c -lpfring -lrt
/usr/local/lib/libpfring.so: undefined reference to `pcap_compile_nopcap'
collect2: ld returned 1 exit status
Could not fix this any help on this please?
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc