Click to See Complete Forum and Search --> : can't compile hping3 - net/bpf.h: No such file or directory


ddaas
04-20-2005, 01:55 PM
Hi,
I need a little help :)
I try to compile hping3-alfa-2 under FC3.
make returns the following error:
gcc -c -O2 -Wall -DUSE_TCL -g libpcap_stuff.c
libpcap_stuff.c:20:21: net/bpf.h: No such file or directory
make: *** [libpcap_stuff.o] Error 1


Where shoul be net/bpf.h ?
On my system there is no bpf.h. But there is: /usr/include/pcap-bpf.h

Is there any rpm for hping3?

Thanks for your help.

serz
04-20-2005, 02:08 PM
Then try making a symlink, see if that works.

ln -s /usr/include/pcap-bpf.h /usr/include/bpf.h

ddaas
04-20-2005, 02:35 PM
There is already a bpf.h in /usr/include (updatedb was not updated when I searched for bpf.h)

libpcap_stuff.c:20:21: net/bpf.h: No such file or directory - does it not mean that bpf.h should be in net/ directory?
Which net directory??

dkeav
04-20-2005, 07:14 PM
are your kernel sources installed and symlinked properly?