[root@localhost?hping-master]#?make
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??main.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??getifname.c
getifname.c:?在函數(shù)‘get_if_name’中:
getifname.c:61:11:?警告:此函數(shù)中的‘sa.sin_addr.s_addr’在使用前可能未初始化?[-Wmaybe-uninitialized]
?????printf("DEBUG:?Output?interface?address:?%s\n",
???????????^
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??getlhs.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??parseoptions.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??datafiller.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??datahandler.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??gethostname.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??binding.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??getusec.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??opensockraw.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??logicmp.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??waitpacket.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??resolve.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sendip.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sendicmp.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sendudp.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sendtcp.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??cksum.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??statistics.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??usage.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??version.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??antigetopt.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sockopt.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??listen.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sendhcmp.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??memstr.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??rtt.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??relid.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??sendip_handler.c
gcc?-c?-O2?-Wall???-DUSE_TCL?-g??libpcap_stuff.c
libpcap_stuff.c:19:21:?致命錯(cuò)誤:net/bpf.h:沒有那個(gè)文件或目錄
?#include?<net/bpf.h>
?????????????????????^
編譯中斷。
make:?***?[libpcap_stuff.o]?錯(cuò)誤?1
2017-03-31
1.需要安裝libpcap-devel
2.net/bpf.h: No such file or directory
建立軟鏈接 ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h
3./usr/bin/ld: cannot find -ltcl
yum -y install tcl-devel