LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 833|回复: 1

这个编译报错是什么问题?(dsniff)

[复制链接]
发表于 2004-3-11 16:58:24 | 显示全部楼层 |阅读模式
[PHP]
[root@localhost dsniff-2.3]# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) no
checking for ANSI C header files... (cached) yes
checking for err.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/queue.h... (cached) yes
checking for unistd.h... (cached) yes
checking for libgen.h... (cached) yes
checking for net/if_tun.h... (cached) no
checking for MIN and MAX in sys/param.h... yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for u_int32_t... (cached) yes
checking for u_int64_t... (cached) yes
checking for in_addr_t... (cached) no
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking return type of signal handlers... (cached) void
checking for strftime... (cached) yes
checking for gethostname... (cached) yes
checking for socket... (cached) yes
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for xdr_fhstatus in -lrpcsvc... (cached) yes
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for dn_expand in -lresolv... (cached) yes
checking for dirname... (cached) yes
checking for strlcpy... (cached) no
checking for strlcat... (cached) no
checking for strsep... (cached) yes
checking for MD5Update... (cached) no
checking for warnx... (cached) yes
checking for ether_ntoa... (cached) yes
checking for Berkeley DB with 1.85 compatibility... yes
checking for libpcap... yes
checking for libnet... ./configure: line 1: libnet-config: command not found
yes
checking for libnids... yes
checking whether libnids version is good... yes
checking for OpenSSL... yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
[root@localhost dsniff-2.3]# make
gcc -g -O2 -D_BSD_SOURCE  -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I.       -I./miss
ing -c ./arpspoof.c
arpspoof.c:25: warning: `struct ether_addr' declared inside parameter list
arpspoof.c:25: warning: its scope is only this definition or declaration, which
is probably not what you want
arpspoof.c:26: warning: `struct ether_addr' declared inside parameter list
arpspoof.c: In function `arp_send':
arpspoof.c:49: warning: passing arg 1 of `libnet_get_hwaddr' from incompatible p
ointer type
arpspoof.c:49: too many arguments to function `libnet_get_hwaddr'
arpspoof.c:60: warning: passing arg 6 of `libnet_build_ethernet' from incompatib
le pointer type
arpspoof.c:60: too few arguments to function `libnet_build_ethernet'
arpspoof.c:64: `ETH_H' undeclared (first use in this function)
arpspoof.c:64: (Each undeclared identifier is reported only once
arpspoof.c:64: for each function it appears in.)
arpspoof.c:64: too few arguments to function `libnet_build_arp'
arpspoof.c:67: warning: passing arg 1 of `ether_ntoa' from incompatible pointer
type
arpspoof.c:71: warning: passing arg 1 of `ether_ntoa' from incompatible pointer
type
arpspoof.c:77: warning: passing arg 1 of `ether_ntoa' from incompatible pointer
type
arpspoof.c:80: warning: passing arg 1 of `ether_ntoa' from incompatible pointer
type
arpspoof.c: In function `arp_find':
arpspoof.c:114: warning: passing arg 2 of `arp_cache_lookup' from incompatible p
ointer type
arpspoof.c: In function `main':
arpspoof.c:181: warning: assignment makes pointer from integer without a cast
/usr/include/bits/socket.h: At top level:
arpspoof.c:29: storage size of `spoof_mac' isn't known
arpspoof.c:29: storage size of `target_mac' isn't known
make: *** [arpspoof.o] Error 1
[/PHP]
发表于 2004-4-25 18:30:52 | 显示全部楼层
我也想知道欧,怎么没有人回答?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表