in reply to Net::Pcap + Solaris10 x86 : runtime error madness

gcc -G -L/usr/local/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/pro +d/lib -L/lib Pcap.o -o blib/arch/auto/Net/Pcap/Pcap.so \ \

This shows that Pcap.so hasn't actually been linked against libpcap (no -lpcap on that command line, for whatever reason...).

In case you don't really want to solve the underlying problem with the older version apparently being found, no proper Makefile being written etc., but would rather just want to get it working this time for this build attempt, you could try to manually issue the proper link command (from the directory where Pcap.o lives):

gcc -G Pcap.o -o blib/arch/auto/Net/Pcap/Pcap.so /usr/local/lib/libpca +p.a

(and then run make test; make install)

Replies are listed 'Best First'.
Re^2: Net::Pcap + Solaris10 x86 : runtime error madness
by stevehicks (Sexton) on May 28, 2009 at 14:05 UTC
    I did the standard build steps for Net::Pcap and then issued this command :
    gcc -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib -L/app/ +orc/mdscripts/Binaries/lib -G Pcap.o -o blib/arch/auto/Net/Pcap/Pcap +.so /app/orc/mdscripts/Binaries/lib/libpcap.a
    then I copied the resultant shared library into place and it works a dream. Thankyou very much indeed, you guys are the BEST !!