hping "make"新错误
xtpeeps@xtpeeps-VirtualBox:/opt/hping-master$ sudo make
gcc -c -O2 -Wall -g main.c
gcc -c -O2 -Wall -g getifname.c
getifname.c: In function ‘get_if_name’:
getifname.c:61:11: warning: ‘sa.sin_addr.s_addr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("DEBUG: Output interface address: %s\n",
^
gcc -c -O2 -Wall -g getlhs.c
gcc -c -O2 -Wall -g parseoptions.c
gcc -c -O2 -Wall -g datafiller.c
gcc -c -O2 -Wall -g datahandler.c
gcc -c -O2 -Wall -g binding.c
gcc -c -O2 -Wall -g logicmp.c
gcc -c -O2 -Wall -g waitpacket.c
gcc -c -O2 -Wall -g sendip.c
gcc -c -O2 -Wall -g sendicmp.c
gcc -c -O2 -Wall -g sendudp.c
gcc -c -O2 -Wall -g sendtcp.c
gcc -c -O2 -Wall -g cksum.c
gcc -c -O2 -Wall -g statistics.c
gcc -c -O2 -Wall -g version.c
gcc -c -O2 -Wall -g listen.c
listen.c: In function ‘listenmain’:
listen.c:77:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(stdoutFD, p, size-(p-ip_packet));
^
gcc -c -O2 -Wall -g sendhcmp.c
gcc -c -O2 -Wall -g rtt.c
gcc -c -O2 -Wall -g relid.c
gcc -c -O2 -Wall -g sendip_handler.c
gcc -c -O2 -Wall -g libpcap_stuff.c
libpcap_stuff.c: In function ‘open_pcap’:
libpcap_stuff.c:26:6: warning: variable ‘on’ set but not used [-Wunused-but-set-variable]
int on;
^
gcc -c -O2 -Wall -g ip_opt_build.c
gcc -c -O2 -Wall -g display_ipopt.c
gcc -c -O2 -Wall -g sendrawip.c
gcc -c -O2 -Wall -g send.c
gcc -c -O2 -Wall -g arsglue.c
gcc -c -O2 -Wall -g scan.c
In file included from /usr/include/string.h:640:0,
from scan.c:17:
In function ‘memcpy’,
inlined from ‘receiver.isra.0’ at scan.c:459:10,
inlined from ‘scanmain’ at scan.c:545:11:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
gcc -c -O2 -Wall -g ars.c
In file included from ars.c:15:0:
ars.c: In function ‘ars_multi_cksum’:
ars.c:485:46: warning: comparison with string literal results in unspecified behavior [-Waddress]
assert("else reached in ars_multi_cksum()" == "");
^
ars.c: In function ‘ars_bsd_fix’:
ars.c:909:20: warning: variable ‘ip’ set but not used [-Wunused-but-set-variable]
struct ars_iphdr *ip;
^
gcc -c -O2 -Wall -g apd.c
apd.c: In function ‘ars_d_set_data’:
apd.c:889:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
int err, blen;
^
gcc -c -O2 -Wall -g split.c
gcc -c -O2 -Wall -g rapd.c
gcc -o hping3 -O2 -Wall -g main.o getifname.o getlhs.o parseoptions.o datafiller.o datahandler.o gethostname.o binding.o getusec.o opensockraw.o logicmp.o waitpacket.o resolve.o sendip.o sendicmp.o sendudp.o sendtcp.o cksum.o statistics.o usage.o version.o antigetopt.o sockopt.o listen.o sendhcmp.o memstr.o rtt.o relid.o sendip_handler.o libpcap_stuff.o memlockall.o memunlockall.o memlock.o memunlock.o ip_opt_build.o display_ipopt.o sendrawip.o signal.o send.o strlcpy.o arsglue.o random.o scan.o hstring.o script.o interface.o adbuf.o hex.o apdutils.o sbignum.o sbignum-tables.o ars.o apd.o split.o rapd.o -L/usr/local/lib -lpcap -ltcl -lm -lpthread
/usr/bin/ld: cannot find -lpcap
/usr/bin/ld: cannot find -ltcl
collect2: error: ld returned 1 exit status
make: *** [hping3] 错误 1