Trouble compiling on RPI5
- 主要语言
- C
- 星标
- 1.7k
- 派生
- 364
- PR 合并指标
- 30 天内没有已合并 PR
描述
Having issues compiling
```
libpcap_stuff.c:19:10: fatal error: net/bpf.h: No such file or directory
19 | #include
| ^~~~~~~~~~~
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
| ^~~~~~~~~~~
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
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。