tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: net/p5-Net-Pcap build failure (DynaLoader problem?)
My problem is that net/p5-Net-Pcap detction logic fails to find net/libpcap's
libpcap.so.0. The one in base is too old.
The crucial step seems to be running a test.pl script that loads a Conftest.so
which in turn tries to link against libpcap, which fails:
Can't load 'blib/arch/auto/Conftest/Conftest.so' for module Conftest: Shared
object "libpcap.so.0" not found at
/usr/pkg/lib/perl5/5.16.0/x86_64-netbsd-thread-multi/DynaLoader.pm line 190.
OTOH, $Config{libpth} does contain /usr/pkg/lib, which contains libpcap.so.0:
$ perl -MConfig -e 'print $Config{libpth}, "\n";'
/lib /usr/lib /usr/local/lib /usr/pkg/lib
Tracing perl reveals that it only looks for /usr/lib/libpcap.so.0 and nowhere
else.
I'm completely stuck. Running the test script with LD_LIBRARY_PATH=/usr/pkg/lib
does work. Maybe I'm blind, but how is DynaLoader expected to work?
Thanks for any help. It's probably totally obvious for a Perl expert.
Home |
Main Index |
Thread Index |
Old Index