Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Trouble compiling on RPI5 #72

Open
p1r473 opened this issue Nov 30, 2024 · 0 comments
Open

Trouble compiling on RPI5 #72

p1r473 opened this issue Nov 30, 2024 · 0 comments

Comments

@p1r473
Copy link

p1r473 commented Nov 30, 2024

Having issues compiling

libpcap_stuff.c:19:10: fatal error: net/bpf.h: No such file or directory
   19 | #include <net/bpf.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:66: libpcap_stuff.o] Error 1
gcc -c -O2 -Wall  -I/usr/include/tcl -DUSE_TCL -g  libpcap_stuff.c
libpcap_stuff.c:19:10: fatal error: net/bpf.h: No such file or directory
   19 | #include <net/bpf.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:66: libpcap_stuff.o] Error 1       

if i do ln -s /usr/include/pcap-bpf.h /usr/include/net/bpf.h
i get error

/bin/ld: rtt.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: relid.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: sendip_handler.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: libpcap_stuff.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: ip_opt_build.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: display_ipopt.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: sendrawip.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: send.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: scan.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: script.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
/bin/ld: interface.o:/home/pi/hping/hping2.h:360: multiple definition of delaytable'; main.o:/home/pi/hping/hping2.h:360: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:53: hping3] Error 1      
@p1r473 p1r473 changed the title Trouble compiling Trouble compiling on RPI5 Nov 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant