标题: net::pcap
ki_d
新生入学
Rank: 1
注册用户



UID 176242
精华 0
积分 0(积分有什么用?)
帖子 2
阅读权限 10
注册 2006-12-11
状态 离线
发表于 2006-12-11 14:41  资料  个人空间  短消息  加为好友 
net::pcap

我想安装,net::pcap模块,可是老是报错。
[root@localhost Net-Pcap-0.15_01]# perl Makefile.PL
looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... no
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to have an old version of the pcap library.
我 是装的最新的libpcap阿,我都要疯了。make 后报的错:
gcc -c   -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"0.15_01\" -DXS_VERSION=\"0.15_01\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"  -DHAVE_BLANK Pcap.c
在包含自 Pcap.xs:43 的文件中:
stubs.inc:71:2: 警告:#warning "the function pcap_lib_version() is not available, but will be emulated"
stubs.inc:85:2: 警告:#warning "the function pcap_findalldevs() is not available, but will be emulated"
In file included from Pcap.xs:43:
stubs.inc:91: 错误:‘struct pcap_if’ 重定义
stubs.inc:113:2: 警告:#warning "the function pcap_breakloop() is not available"stubs.inc:127:2: 警告:#warning "the function pcap_setnonblock() is not available"
stubs.inc:142:2: 警告:#warning "the function pcap_getnonblock() is not available"
stubs.inc:157:2: 警告:#warning "the function pcap_dump_file() is not available"stubs.inc:172:2: 警告:#warning "the function pcap_dump_flush() is not available"
stubs.inc:187:2: 警告:#warning "the function pcap_list_datalinks() is not available"
stubs.inc:202:2: 警告:#warning "the function pcap_set_datalink() is not available"
stubs.inc:217:2: 警告:#warning "the function pcap_datalink_name_to_val() is not available"
stubs.inc:232:2: 警告:#warning "the function pcap_datalink_val_to_name() is not available"
stubs.inc:247:2: 警告:#warning "the function pcap_datalink_val_to_description() is not available"
stubs.inc:262:2: 警告:#warning "the function pcap_compile_nopcap() is not available"
stubs.inc:277:2: 警告:#warning "the function pcap_get_selectable_fd() is not available"
stubs.inc:292:2: 警告:#warning "the function pcap_next_ex() is not available"
stubs.inc:307:2: 警告:#warning "the function pcap_sendpacket() is not available"
stubs.inc:322:2: 警告:#warning "the function pcap_createsrcstr() is not available"
stubs.inc:337:2: 警告:#warning "the function pcap_parsesrcstr() is not available"
stubs.inc:352:2: 警告:#warning "the function pcap_open() is not available"
stubs.inc:373:2: 警告:#warning "the function pcap_setbuff() is not available"
stubs.inc:388:2: 警告:#warning "the function pcap_setuserbuffer() is not available"
stubs.inc:403:2: 警告:#warning "the function pcap_setmode() is not available"
stubs.inc:418:2: 警告:#warning "the function pcap_setmintocopy() is not available"
stubs.inc:433:2: 警告:#warning "the function pcap_sendqueue_alloc() is not available"
stubs.inc:455:2: 警告:#warning "the function pcap_sendqueue_destroy() is not available"
stubs.inc:469:2: 警告:#warning "the function pcap_sendqueue_queue() is not available"
stubs.inc:484:2: 警告:#warning "the function pcap_sendqueue_transmit() is not available"
stubs.inc:499:2: 警告:#warning "the function pcap_event() is not available"
stubs.inc:514:2: 警告:#warning "the function pcap_setsampling() is not available"
Pcap.xs: 在函数 ‘callback_wrapper’ 中:
Pcap.xs:55: 警告:传递参数 2 (属于 ‘Perl_newSVpv’) 给指针时目标与指针有/无符号不一致
Pcap.xs: 在函数 ‘XS_Net__Pcap_next_ex’ 中:
Pcap.xs:496: 警告:传递参数 2 (属于 ‘Perl_newSVpv’) 给指针时目标与指针有/无符号 不一致
Pcap.xs: 在函数 ‘XS_Net__Pcap_dump’ 中:
Pcap.xs:555: 警告:传递参数 3 (属于 ‘pcap_dump’) 给指针时目标与指针有/无符号不一致
Pcap.xs: 在函数 ‘XS_Net__Pcap_sendpacket’ 中:
Pcap.xs:965: 警告:传递参数 2 (属于 ‘pcap_sendpacket’) 给指针时目标与指针有/无符号不一致
make: *** [Pcap.o] 错误 1
what can I do... I need your help...thanks

顶部
Roc.Ken
版主
Rank: 7Rank: 7Rank: 7



UID 47703
精华 86
积分 66(积分有什么用?)
帖子 5926
阅读权限 100
注册 2003-6-6
来自 hostpry.org
状态 离线
发表于 2006-12-11 19:19  资料  个人空间  主页 短消息  加为好友  ICQ 状态
rpm -qa | grep -i pcap 是什么结果, 应该是你没有装 libpcap 包的原因

顶部
不容错过的IBM 集群技术资源汇总
ki_d
新生入学
Rank: 1
注册用户



UID 176242
精华 0
积分 0(积分有什么用?)
帖子 2
阅读权限 10
注册 2006-12-11
状态 离线
发表于 2006-12-12 23:25  资料  个人空间  短消息  加为好友 
我装了的,而且是最新版本.....

顶部
不容错过的IBM 集群技术资源汇总
 



当前时区 GMT+8, 现在时间是 2008-5-17 09:38

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.094904 second(s), 5 queries

清除 Cookies - 联系我们 - Linux伊甸园 - Archiver - WAP