报错/opt/download/hping-master/main.c:190: undefined reference to `hping_script'

来源:3-2 hping安装2

粪进中的谊

2015-08-02 17:09

OS:CENTOS6.6

[root@Security hping-master]# ./configure

build byteorder.c...

create byteorder.h...

./configure: line 81: -: command not found

--------------------------------------

system type: LINUX


LIBPCAP      : PCAP=-lpcap

PCAP_INCLUDE : 

MANPATH      : /usr/local/man

USE_TCL      : -DUSE_TCL

TCL_VER      : 

TCL_INC      : 

LIBTCL       : -ltcl -lm -lpthread

TCLSH        : 


(to modify try configure --help)

--------------------------------------

creating Makefile...

creating dependences...

now you can try `make'

[root@Security hping-master]# make

gcc -c -O2 -Wall   -DUSE_TCL -g  main.c

gcc -c -O2 -Wall   -DUSE_TCL -g  getifname.c

getifname.c: In function ‘get_if_name’:

getifname.c:61: warning: ‘sa.sin_addr.s_addr’ may be used uninitialized in this function

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  binding.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  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  version.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  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

gcc -c -O2 -Wall   -DUSE_TCL -g  ip_opt_build.c

gcc -c -O2 -Wall   -DUSE_TCL -g  display_ipopt.c

gcc -c -O2 -Wall   -DUSE_TCL -g  sendrawip.c

gcc -c -O2 -Wall   -DUSE_TCL -g  send.c

gcc -c -O2 -Wall   -DUSE_TCL -g  arsglue.c

gcc -c -O2 -Wall   -DUSE_TCL -g  scan.c

gcc -c -O2 -Wall   -DUSE_TCL -g  ars.c

ars.c: In function ‘ars_multi_cksum’:

ars.c:485: warning: comparison with string literal results in unspecified behavior

gcc -c -O2 -Wall   -DUSE_TCL -g  apd.c

gcc -c -O2 -Wall   -DUSE_TCL -g  split.c

gcc -c -O2 -Wall   -DUSE_TCL -g  rapd.c

gcc -o hping3 -O2 -Wall   -DUSE_TCL -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

main.o: In function `main':

/opt/download/hping-master/main.c:190: undefined reference to `hping_script'

collect2: ld returned 1 exit status

make: *** [hping3] Error 1


写回答 关注

4回答

  • 慕粉3321357
    2016-09-30 12:41:56

    第一步 删除 ,解压包 

    rm -fr hping-master/

    第二步:  重新解压, unzip   (yum install  -y unzip)

    unzip master.zip

    第三步: 

    yum install  -y   libpcap-devel

    yum install  -y   tcl tcl-devel

    第四步: cd 到解压目录

    cd hping-master/

    第五步:  

    ./configure

    make

    make strip

    make install

    预祝你能成功, 如果还不行,欢迎追问.

    怀恋Alle...

    果然是的,感谢

    2016-12-23 18:09:35

    共 1 条回复 >

  • 妖莫
    2016-05-16 11:46:23

    执行 make clean 

    在执行 make  试试

  • LYRen1900
    2016-04-13 22:54:33

    我也遇到这个问题了?求解?

  • lovecj111
    2015-10-23 20:13:39

    我也遇到这个问题了 请问楼主现在解决了吗?

Linux系统扫描技术及安全防范

Linux系统下系统扫描及安全防范,规避一些安全的隐患

30183 学习 · 75 问题

查看课程

相似问题