Trouble compiling on RPI5

Đang mở
#72 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
c, raspberry-pi
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu bằng cách chạy bản build của project trên một RPI5 và kiểm tra Makefile, libpcap_stuff.c và hping2.h xung quanh các lỗi đã được báo cáo. Truy vết cả lỗi thiếu net/bpf.h và các chẩn đoán của linker liên quan đến delaytable; được xem là hoàn tất khi project biên dịch và liên kết thành công mà không cần workaround đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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      
Ngôn ngữ chính
C
Star
1.7k
Fork
367
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của antirez/hping

Tất cả issue của antirez/hping

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.