ld.so.1: perl-static: fatal: relocation error: file /app/orc/mdscripts/PerlModules/lib/auto/Net/Pcap/Pcap.so: symbol pcap_open_live: referenced symbol not found Killed #### bash-3.00$ uname -a SunOS enocln99 5.10 Generic_137112-07 i86pc i386 i86pc bash-3.00$ #### bash-3.00$ perl -V Set up gcc environment - 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=solaris, osvers=2.10, archname=x86-solaris-thread-multi uname='sunos ginsu 5.10 generic_125101-10 i86pc i386 i86pc ' config_args='-ders -Dcc=cc -Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Ud_strerror_r -Ud_signbit -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPRIVLIB_LAST_IN_INC -Dprefix=/opt/ActivePerl-5.10 -Dprivlib=/opt/ActivePerl-5.10/lib -Darchlib=/opt/ActivePerl-5.10/lib -Dsiteprefix=/opt/ActivePerl-5.10/site -Dsitelib=/opt/ActivePerl-5.10/site/lib -Dsitearch=/opt/ActivePerl-5.10/site/lib -Dsed=/usr/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe', optimize='-O', cppflags='-D_REENTRANT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe' ccversion='', gccversion='3.4.3 (csl-sol210-3_4-branch+sol_rpath)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib ' libpth=/usr/lib /usr/ccs/lib /opt/SUNWspro/prod/lib /lib libs=-lsocket -lnsl -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /opt/ActivePerl-5.10/lib/CORE' cccdlflags='-fPIC', lddlflags='-G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_USE_SAFE_PUTENV USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1004 [287188] 33741 avoids segfaults invoking S_raise_signal() (on Linux) 32809 Load 'loadable object' with non-default file extension 32728 64-bit fix for Time::Local Built under solaris Compiled at Sep 3 2008 11:06:56 %ENV: PERL5LIB="/app/orc/mdscripts/PerlModules/lib" @INC: /app/orc/mdscripts/PerlModules/lib /opt/ActivePerl-5.10/site/lib /opt/ActivePerl-5.10/lib . bash-3.00$ #### bash-3.00$ find /usr/local -name \*cap\*|egrep -v share /usr/local/bin/captoinfo /usr/local/bin/infotocap /usr/local/bin/pcap-config /usr/local/doc/ncurses/doc/html/ada/terminal_interface-curses-termcap__adb.htm /usr/local/doc/ncurses/doc/html/ada/terminal_interface-curses-termcap__ads.htm /usr/local/doc/ncurses/doc/html/man/captoinfo.1m.html /usr/local/doc/ncurses/doc/html/man/curs_termcap.3x.html /usr/local/doc/ncurses/doc/html/man/infotocap.1m.html /usr/local/doc/libpcap /usr/local/man/man1/captoinfo.1m /usr/local/man/man1/infotocap.1m /usr/local/man/man3/curs_termcap.3x /usr/local/lib/libpcap.a /usr/local/lib/libpcap.so /usr/local/include/ncurses/termcap.h /usr/local/include/pcap /usr/local/include/pcap/pcap.h /usr/local/include/pcap-bpf.h /usr/local/include/pcap-namedb.h /usr/local/include/pcap.h bash-3.00$ #### bash-3.00$ perl Makefile.PL PREFIX=~/mdscripts/PerlModules Set up gcc environment - 3.4.3 (csl-sol210-3_4-branch+sol_rpath) looking for -lpcap... yes checking for pcap_lib_version() in -lpcap... no - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - You appear to have an old version of the pcap library. This module need a recent version of the pcap library in order to provide access to all its features. You can still compile it with your old pcap library but some functions won't be available, and trying to use them in Perl programs will generate errors. Programs only using the old functions should perform as previously. If not, don't hesitate to fill a bug. You can get the latest sources of the pcap library at http://www.tcpdump.org/ If you install the pcap library using a system package, make sure to also install the corresponding -devel package, which contains the C headers needed to compile this module. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - trying to detect actually available functions... ok Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lpcap Writing Makefile for Net::Pcap bash-3.00$ bash-3.00$ bash-3.00$ make cp Pcap.pm blib/lib/Net/Pcap.pm AutoSplitting blib/lib/Net/Pcap.pm (blib/lib/auto/Net/Pcap) /opt/ActivePerl-5.10/bin/perl /opt/ActivePerl-5.10/lib/ExtUtils/xsubpp -typemap /opt/ActivePerl-5.10/lib/ExtUtils/typemap -typemap typemap Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c gcc -c -Wall -O -DVERSION=\"0.14\" -DXS_VERSION=\"0.14\" -fPIC "-I/opt/ActivePerl-5.10/lib/CORE" -DHAVE_BLANK -DHAVE_PCAP_ACTIVATE -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_CAN_SET_RFMON -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_CREATE -DHAVE_PCAP_DATALINK_EXT -DHAVE_PCAP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_DUMP_FOPEN -DHAVE_PCAP_DUMP_FTELL -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_FOPEN_OFFLINE -DHAVE_PCAP_FREEALLDEVS -DHAVE_PCAP_FREE_DATALINKS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_INJECT -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_LIST_DATALINKS -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETDIRECTION -DHAVE_PCAP_SETNONBLOCK -DHAVE_PCAP_SET_BUFFER_SIZE -DHAVE_PCAP_SET_DATALINK -DHAVE_PCAP_SET_PROMISC -DHAVE_PCAP_SET_RFMON -DHAVE_PCAP_SET_SNAPLEN -DHAVE_PCAP_SET_TIMEOUT -DHAVE_PCAP_STATUSTOSTR Pcap.c In file included from Pcap.xs:43: stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available" stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available" stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available" stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available" stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available" stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available" stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available" stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available" stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available" stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available" stubs.inc:499:2: warning: #warning "the function pcap_event() is not available" stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available" Pcap.c: In function `XS_Net__Pcap_strerror': Pcap.c:1574: warning: assignment discards qualifiers from pointer target type Running Mkbootstrap for Net::Pcap () chmod 644 Pcap.bs rm -f blib/arch/auto/Net/Pcap/Pcap.so gcc -G -L/usr/local/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib Pcap.o -o blib/arch/auto/Net/Pcap/Pcap.so \ \ chmod 755 blib/arch/auto/Net/Pcap/Pcap.so cp Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs chmod 644 blib/arch/auto/Net/Pcap/Pcap.bs cp bin/pcapinfo blib/script/pcapinfo /opt/ActivePerl-5.10/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/pcapinfo Set up gcc environment - 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Manifying blib/man1/pcapinfo.1 Manifying blib/man3/Net::Pcap.3 bash-3.00$ echo $? 0 bash-3.00$ bash-3.00$ #### ld.so.1: perl-static: fatal: relocation error: file /app/orc/mdscripts/PerlModules/lib/auto/Net/Pcap/Pcap.so: symbol pcap_open_live: referenced symbol not found Killed