Hello,

Has anyone succeeded in installing Net::Pcap on MacOSX 10.1.*?

A couple of days ago, I installed nmap, which itself installed pcap.

Yesterday, I tried to install Net::Pcap, and got the errors listed below.

I tried to specify the path to nmap's pcap directory while running the
makefile (perl Makefile.PL
INC=-l/Users/philippe/Desktop/nmap-2.54BETA36/libpcap-possiblymodified),
but that made no difference.

Any help with this installation problem would be much appreciated.

Many thanks.

Best regards,

Philippe de Rochambeau


[localhost:~/Desktop/Net-Pcap-0.04] philippe% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Pcap
[localhost:~/Desktop/Net-Pcap-0.04] philippe% make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Net
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Net
mkdir blib/arch/auto/Net/Pcap
mkdir blib/lib/auto
mkdir blib/lib/auto/Net
mkdir blib/lib/auto/Net/Pcap
mkdir blib/man3
cp Pcap.pm blib/lib/Net/Pcap.pm
/usr/bin/perl -I/System/Library/Perl/darwin -I/System/Library/Perl
/System/Library/Perl/ExtUtils/xsubpp  -typemap
/System/Library/Perl/ExtUtils/typemap -typemap typemap Pcap.xs > Pcap.xsc
&& mv Pcap.xsc Pcap.c
cc -c  -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3     -DVERSION=\"0.04\"
-DXS_VERSION=\"0.04\"  -I/System/Library/Perl/darwin/CORE  Pcap.c
Pcap.xs:21: pcap.h: No such file or directory
Pcap.xs:44: warning: `struct pcap_pkthdr' declared inside parameter list
Pcap.xs:44: warning: its scope is only this definition or declaration,
which is probably not what you want.
Pcap.xs: In function `callback_wrapper':
Pcap.xs:46: invalid use of undefined type `struct pcap_pkthdr'
Pcap.xs:46: dereferencing pointer to incomplete type
Pcap.xs:54: invalid use of undefined type `struct pcap_pkthdr'
Pcap.xs:54: dereferencing pointer to incomplete type
Pcap.xs:55: invalid use of undefined type `struct pcap_pkthdr'
Pcap.xs:55: dereferencing pointer to incomplete type
Pcap.xs:56: invalid use of undefined type `struct pcap_pkthdr'
Pcap.xs:56: dereferencing pointer to incomplete type
Pcap.xs:57: invalid use of undefined type `struct pcap_pkthdr'
Pcap.xs:57: dereferencing pointer to incomplete type
Pcap.xs: In function `XS_Net__Pcap_lookupdev':
Pcap.xs:86: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
Pcap.xs:86: (Each undeclared identifier is reported only once
Pcap.xs:86: for each function it appears in.)
Pcap.xs:89: warning: assignment makes pointer from integer without a cast
Pcap.xs: In function `XS_Net__Pcap_lookupnet':
Pcap.xs:114: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_open_live':
Pcap.c:184: `pcap_t' undeclared (first use in this function)
Pcap.c:184: `RETVAL' undeclared (first use in this function)
Pcap.xs:157: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_open_offline':
Pcap.c:220: `pcap_t' undeclared (first use in this function)
Pcap.c:220: `RETVAL' undeclared (first use in this function)
Pcap.xs:185: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_dump_open':
Pcap.c:253: `pcap_t' undeclared (first use in this function)
Pcap.c:253: `p' undeclared (first use in this function)
Pcap.c:254: parse error before `char'
Pcap.c:255: `pcap_dumper_t' undeclared (first use in this function)
Pcap.c:255: `RETVAL' undeclared (first use in this function)
Pcap.c:259: parse error before `)'
Pcap.c:264: `fname' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_loop':
Pcap.c:277: `pcap_t' undeclared (first use in this function)
Pcap.c:277: `p' undeclared (first use in this function)
Pcap.c:278: parse error before `int'
Pcap.c:286: parse error before `)'
Pcap.xs:217: `callback' undeclared (first use in this function)
Pcap.xs:218: `user' undeclared (first use in this function)
Pcap.xs:220: `RETVAL' undeclared (first use in this function)
Pcap.xs:220: `cnt' undeclared (first use in this function)
Pcap.c:301: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_dispatch':
Pcap.c:312: `pcap_t' undeclared (first use in this function)
Pcap.c:312: `p' undeclared (first use in this function)
Pcap.c:313: parse error before `int'
Pcap.c:321: parse error before `)'
Pcap.xs:237: `callback' undeclared (first use in this function)
Pcap.xs:238: `user' undeclared (first use in this function)
Pcap.xs:240: `RETVAL' undeclared (first use in this function)
Pcap.xs:240: `cnt' undeclared (first use in this function)
Pcap.c:336: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_close':
Pcap.c:347: `pcap_t' undeclared (first use in this function)
Pcap.c:347: `p' undeclared (first use in this function)
Pcap.c:351: parse error before `)'
Pcap.c: In function `XS_Net__Pcap_dump_close':
Pcap.c:367: `pcap_dumper_t' undeclared (first use in this function)
Pcap.c:367: `p' undeclared (first use in this function)
Pcap.c:371: parse error before `)'
Pcap.c: In function `XS_Net__Pcap_datalink':
Pcap.c:387: `pcap_t' undeclared (first use in this function)
Pcap.c:387: `p' undeclared (first use in this function)
Pcap.c:388: parse error before `int'
Pcap.c:393: parse error before `)'
Pcap.c:398: `RETVAL' undeclared (first use in this function)
Pcap.c:399: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_snapshot':
Pcap.c:410: `pcap_t' undeclared (first use in this function)
Pcap.c:410: `p' undeclared (first use in this function)
Pcap.c:411: parse error before `int'
Pcap.c:416: parse error before `)'
Pcap.c:421: `RETVAL' undeclared (first use in this function)
Pcap.c:422: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_is_swapped':
Pcap.c:433: `pcap_t' undeclared (first use in this function)
Pcap.c:433: `p' undeclared (first use in this function)
Pcap.c:434: parse error before `int'
Pcap.c:439: parse error before `)'
Pcap.c:444: `RETVAL' undeclared (first use in this function)
Pcap.c:445: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_major_version':
Pcap.c:456: `pcap_t' undeclared (first use in this function)
Pcap.c:456: `p' undeclared (first use in this function)
Pcap.c:457: parse error before `int'
Pcap.c:462: parse error before `)'
Pcap.c:467: `RETVAL' undeclared (first use in this function)
Pcap.c:468: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_minor_version':
Pcap.c:479: `pcap_t' undeclared (first use in this function)
Pcap.c:479: `p' undeclared (first use in this function)
Pcap.c:480: parse error before `int'
Pcap.c:485: parse error before `)'
Pcap.c:490: `RETVAL' undeclared (first use in this function)
Pcap.c:491: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_geterr':
Pcap.c:502: `pcap_t' undeclared (first use in this function)
Pcap.c:502: `p' undeclared (first use in this function)
Pcap.c:503: parse error before `char'
Pcap.c:508: parse error before `)'
Pcap.c:513: `RETVAL' undeclared (first use in this function)
Pcap.c:514: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_strerror':
Pcap.c:529: warning: assignment makes pointer from integer without a cast
Pcap.c: In function `XS_Net__Pcap_compile':
Pcap.c:541: `pcap_t' undeclared (first use in this function)
Pcap.c:541: `p' undeclared (first use in this function)
Pcap.c:542: parse error before `*'
Pcap.c:545: `bpf_u_int32' undeclared (first use in this function)
Pcap.c:551: parse error before `)'
Pcap.xs:294: `fp' undeclared (first use in this function)
Pcap.xs:297: `RETVAL' undeclared (first use in this function)
Pcap.xs:297: `str' undeclared (first use in this function)
Pcap.xs:297: `optimize' undeclared (first use in this function)
Pcap.xs:297: `mask' undeclared (first use in this function)
Pcap.c:569: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_setfilter':
Pcap.c:580: `pcap_t' undeclared (first use in this function)
Pcap.c:580: `p' undeclared (first use in this function)
Pcap.c:581: parse error before `struct'
Pcap.c:587: parse error before `)'
Pcap.c:594: `fp' undeclared (first use in this function)
Pcap.c:599: `RETVAL' undeclared (first use in this function)
Pcap.c:600: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_fileno':
Pcap.c:611: `pcap_t' undeclared (first use in this function)
Pcap.c:611: `p' undeclared (first use in this function)
Pcap.c:612: parse error before `int'
Pcap.c:617: parse error before `)'
Pcap.c:622: `RETVAL' undeclared (first use in this function)
Pcap.c:623: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_perror':
Pcap.c:634: `pcap_t' undeclared (first use in this function)
Pcap.c:634: `p' undeclared (first use in this function)
Pcap.c:635: parse error before `char'
Pcap.c:639: parse error before `)'
Pcap.c:644: `prefix' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_stats':
Pcap.c:655: `pcap_t' undeclared (first use in this function)
Pcap.c:655: `p' undeclared (first use in this function)
Pcap.c:656: parse error before `*'
Pcap.c:662: parse error before `)'
Pcap.xs:330: `ps' undeclared (first use in this function)
Pcap.xs:331: storage size of `real_ps' isn't known
Pcap.xs:334: `RETVAL' undeclared (first use in this function)
Pcap.c:689: `targ' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_file':
Pcap.c:700: `pcap_t' undeclared (first use in this function)
Pcap.c:700: `p' undeclared (first use in this function)
Pcap.c:701: parse error before `*'
Pcap.c:705: parse error before `)'
Pcap.c:710: `RETVAL' undeclared (first use in this function)
Pcap.c: In function `XS_Net__Pcap_dump':
Pcap.c:729: `pcap_dumper_t' undeclared (first use in this function)
Pcap.c:729: `p' undeclared (first use in this function)
Pcap.c:730: parse error before `*'
Pcap.c:735: parse error before `)'
Pcap.xs:365: `h' undeclared (first use in this function)
Pcap.xs:366: storage size of `real_h' isn't known
Pcap.xs:397: request for member `sv_flags' in something not a structure or
union
Pcap.xs:397: request for member `sv_any' in something not a structure or
union
Pcap.xs:397: request for member `sv_any' in something not a structure or
union
Pcap.xs:397: warning: passing arg 1 of `Perl_sv_2pv' from incompatible
pointer type
Pcap.c: In function `XS_Net__Pcap_next':
Pcap.c:792: `pcap_t' undeclared (first use in this function)
Pcap.c:792: `p' undeclared (first use in this function)
Pcap.c:793: parse error before `*'
Pcap.c:798: parse error before `)'
Pcap.xs:411: `h' undeclared (first use in this function)
Pcap.xs:412: storage size of `real_h' isn't known
Pcap.xs:418: warning: assignment makes pointer from integer without a cast
Pcap.xs:433: `RETVAL' undeclared (first use in this function)
make: *** [Pcap.o] Erreur 1


Reply via email to