Addtional info:

mod_perl itself actually failes when "make test"; adding env
LD_LIBRARY_PATH=/usr/local/lib to include where gdbm lib is got around
this problem. However, the same measure does not work with my modules.


> ldd /usr/local/perl-5.8.4/lib/site_perl/5.8.4/sun4-solaris/auto/APR/APR.so
        libapr-0.so.0 =>         /usr/local/apache_2.0.51_prefork/lib/libapr-0.so.0
        libsendfile.so.1 =>      /usr/lib/libsendfile.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libaprutil-0.so.0 =>     /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0
        libgdbm.so.3 =>  /usr/local/lib/libgdbm.so.3
        libexpat.so.0 =>         /usr/local/apache_2.0.51_prefork/lib/libexpat.so.0
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libc.so.1 =>     /usr/lib/libc.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libthread.so.1 =>        /usr/lib/libthread.so.1
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
        /usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1


On Sat, 18 Sep 2004, Jie Gao wrote:

> Date: Sat, 18 Sep 2004 21:35:03 +1000 (EST)
> From: Jie Gao <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [mp2] linking problem.
>
> Hi All,
>
> I am getting the same error for all my modules:
>
> > gmake test
> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" 
> "test_harness(0, 'blib/lib',
> 'blib/arch')" t/*.t
> t/1....#     Failed test (t/1.t at line 9)
> t/1....NOK 1#     Tried to use 'Usyd::AuthCookieHandler'.
> #     Error:  Can't load 
> '/usr/local/perl-5.8.4/lib/site_perl/5.8.4/sun4-solaris/auto/APR/APR.so' for
> module APR: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file
> /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0: symbol db_strerror: 
> referenced symbol not found
> at /usr/local/perl-5.8.4/lib/5.8.4/sun4-solaris/DynaLoader.pm line 230.
> #  at /usr/local/perl-5.8.4/lib/site_perl/5.8.4/sun4-solaris/APR/URI.pm line 23
> # Compilation failed in require at 
> /usr/local/perl-5.8.4/lib/site_perl/5.8.4/sun4-solaris/APR/URI.pm line
> 23.
> # BEGIN failed--compilation aborted at 
> /usr/local/perl-5.8.4/lib/site_perl/5.8.4/sun4-solaris/APR/URI.pm
> line 23.
> # Compilation failed in require at
> /opt/local/wasm-3.0/usyd_modules/Usyd/Usyd-AuthCookieHandler-2.01/blib/lib/Usyd/AuthCookieHandler.pm
>  line
> 21.
> # BEGIN failed--compilation aborted at
> /opt/local/wasm-3.0/usyd_modules/Usyd/Usyd-AuthCookieHandler-2.01/blib/lib/Usyd/AuthCookieHandler.pm
>  line
> 21.
> # Compilation failed in require at (eval 1) line 2.
> # Looks like you failed 1 tests of 1.
> t/1....dubious
>         Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 1
>         Failed 1/1 tests, 0.00% okay
> Failed Test Stat Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------
> t/1.t          1   256     1    1 100.00%  1
> Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
> gmake: *** [test_dynamic] Error 2
>
> If I "make install", the modules will actually work.
>
> Something changed?
>
> Regards,
>
>
>
> Jie
>
>
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>
>   [DESCRIBE THE PROBLEM HERE]
>
> 2. Used Components and their Configuration:
>
> *** mod_perl version 1.9916
>
> *** using /opt/local/src/mod_perl-1.99_16/lib/Apache/BuildConfig.pm
>
> *** Makefile.PL options:
>   MP_APR_LIB     => aprext
>   MP_APXS        => /usr/local/apache_2.0.51_prefork/bin/apxs
>   MP_COMPAT_1X   => 1
>   MP_DEBUG       => 1
>   MP_GENERATE_XS => 1
>   MP_LIBNAME     => mod_perl
>   MP_TRACE       => 1
>   MP_USE_DSO     => 1
>
>
> *** /usr/local/apache_2.0.51_prefork/bin/httpd -V
> Server version: Apache/2.0.51
> Server built:   Sep 18 2004 10:49:07
> Server's Module Magic Number: 20020903:9
> Architecture:   32-bit
> Server compiled with....
>  -D APACHE_MPM_DIR="server/mpm/prefork"
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_USE_FCNTL_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D HTTPD_ROOT="/usr/local/apache_2.0.51_prefork"
>  -D SUEXEC_BIN="/usr/local/apache_2.0.51_prefork/bin/suexec"
>  -D DEFAULT_PIDLOG="logs/httpd.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_LOCKFILE="logs/accept.lock"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
>
> *** (apr|apu)-config linking info
>
>  -L/usr/local/apache_2.0.51_prefork/lib -lapr-0 -lsendfile -lrt -lm -lsocket -lnsl 
> -lresolv  -lpthread
> -ldl
>  -L/usr/local/apache_2.0.51_prefork/lib -laprutil-0 -lgdbm -ldb-4.2 -lexpat -liconv
>
> *** /usr/local/perl-5.8.4/bin/perl -V
> Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
>   Platform:
>     osname=solaris, osvers=2.9, archname=sun4-solaris
>     uname='sunos guppy 5.9 generic_112233-12 sun4u sparc sunw,sun-fire-v210 '
>     config_args='-Dcc=gcc -B/usr/ccs/bin/ -Doptimize=-O3 -Uinstallusrbinperl
> -Dprefix=/usr/local/perl-5.8.4 -Ui_db -Uusemymalloc -Dl
> ocincpth=/usr/local/include /opt/local/include /include /usr/include /opt/sfw/include
> -Dloclibpth=/usr/local/lib /opt/local/lib /usr
> /lib /usr/ccs/lib /opt/sfw/lib'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -I/usr/local/include 
> -I/opt/local/include
> -I/opt/sfw/include -D_LARGEFI
> LE_SOURCE -D_FILE_OFFSET_BITS=64',
>     optimize='-O3',
>     cppflags='-fno-strict-aliasing -I/usr/local/include -I/opt/local/include 
> -I/opt/sfw/include'
>     ccversion='', gccversion='3.4.0', gccosandvers='solaris2.9'
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
>     alignbytes=8, prototype=define
>   Linker and Libraries:
>     ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib -L/opt/local/lib 
> -L/usr/lib -L/usr/ccs/lib
> -L/opt/sfw/lib '
>     libpth=/usr/local/lib /opt/local/lib /usr/lib /usr/ccs/lib /opt/sfw/lib
>     libs=-lsocket -lnsl -lgdbm -ldl -lm -lc
>     perllibs=-lsocket -lnsl -ldl -lm -lc
>     libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
>     gnulibc_version=''
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
>     cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/local/lib -L/usr/lib 
> -L/usr/ccs/lib
> -L/opt/sfw/lib'
>
>
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_LARGE_FILES
>   Built under solaris
>   Compiled at May 14 2004 15:53:55
>   %ENV:
>     PERL_LWP_USE_HTTP_10="1"
>   @INC:
>     /usr/local/perl-5.8.4/lib/5.8.4/sun4-solaris
>     /usr/local/perl-5.8.4/lib/5.8.4
>     /usr/local/perl-5.8.4/lib/site_perl/5.8.4/sun4-solaris
>     /usr/local/perl-5.8.4/lib/site_perl/5.8.4
>     /usr/local/perl-5.8.4/lib/site_perl
>     .
>
> *** Packages of interest status:
> Apache::Request: -
> CGI            : 3.04
> LWP            : 5.79
> mod_perl       : 1.9916
>
>
> 3. This is the core dump trace: (if you get a core dump):
>
>   [CORE TRACE COMES HERE]
>
> This report was generated by t/REPORT on Sat Sep 18 11:31:54 2004 GMT.
>
> -------------8<---------- End Bug Report --------------8<----------
>
>
>
>
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to