Hello,
On Thu, 15 Dec 2011, Greg Freemyer wrote:
- /usr/bin/perl Makefile.PL PREFIX=/usr
looking for -lpcap... - - - - - - - - - - - - - - - - - - - -
You appear to lack the pcap(3) library.
I've narrowed it down a bit, while testing for the lib it fails loading the Conftest.so:
# Using Test.pm version 1.25_02 DynaLoader.pm loaded (blib/lib blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl ., /lib /usr/lib /usr/local/lib) DynaLoader::bootstrap for Conftest (auto/Conftest/Conftest.so) Not a CODE reference at /usr/lib/perl5/5.14.2/i586-linux-thread-multi/DynaLoader.pm line 213.
That line in dynaloader might be misleading (see comments in DynaLoader.pm). I couldn't figure out what is failing there.
But patching Makefile.PL so it ignores the failed test, Net::Pcap builds ok and also the test for the libpcap version works, i.e. the test files (Net/Pcap.so) could be loaded and access libpcap.so:
[..] # libpcap version 1.1.1 t/17-lib_version.t ......... 1..2 ok 1 - lib_version() ok 2 - - checking version string (libpcap version 1.1.1) ok [..]
Also, most tests requiring root are ok (patched /etc/sudoers in the buildroot and using sudo in the .spec). Stuff requiring a device still fail obviously.
So, maybe "just build it" and find someone on a 12.1/32bit install to test it. Have a look:
https://build.opensuse.org/package/show?package=perl-Net-Pcap&project=ho...
FWIW & HTH, -dnh