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
|