You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jie Gao <J....@isu.usyd.edu.au> on 2004/09/18 13:35:03 UTC

[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


Re: [mp2] linking problem.

Posted by Stas Bekman <st...@stason.org>.
Jie Gao wrote:

>>>>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
>>
>>run
>>
>>ldd -r /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0
>>
>>since that's where your problem is:
>>
>>/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.
> 
> 
>>ldd -r /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0
> 
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         symbol not found: apr_pool_cleanup_null
> (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)

Sorry it was not the right advice, libaprutil has lots of unresolved 
symbols, since it requires libapr to be loaded, even though it's not 
linked against it. (same on my linux box). Actually I'm not sure that's 
good at all.

But your error:

db_strerror: referenced symbol not found

originates from some other missing library. Certainly, unrelated to 
mod_perl. Have you tried scratching your existing libapr thing and install 
Apache from scratch? Have you possibly removed some packages from your 
system post install? You didn't have this problem before.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
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


Re: [mp2] linking problem.

Posted by Jie Gao <J....@isu.usyd.edu.au>.


On Sat, 18 Sep 2004, Stas Bekman wrote:

> Date: Sat, 18 Sep 2004 09:40:24 -0400
> From: Stas Bekman <st...@stason.org>
> To: Jie Gao <J....@isu.usyd.edu.au>
> Cc: modperl@perl.apache.org
> Subject: Re: [mp2] linking problem.
>
> Jie Gao wrote:
> > 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
>
> run
>
> ldd -r /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0
>
> since that's where your problem is:
>
> /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.

> ldd -r /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        symbol not found: apr_pool_cleanup_null
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
        symbol not found: gdbm_errno            (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_mmap_create
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_flags_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_name_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_open         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_seek         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_read         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_pool_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_is_ancestor
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_setaside
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_cleanup_kill
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_cleanup_register
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_mmap_offset
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_mmap_delete
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_mmap_dup          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_socket_timeout_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_socket_timeout_set
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_socket_recv
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_pipe_timeout_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_pipe_timeout_set
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_close
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_palloc            (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_vformatter
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_allocator_free
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_allocator_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_allocator_alloc
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_cpystrn           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_generate_random_bytes
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_time_now          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_unlock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pstrcat           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_cleanup_run
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_write_full
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_read_full
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_lock         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_file_info_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: db_strerror           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: db_create             (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pmemdup           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pstrdup           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_strerror         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_open             (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_close            (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_fetch            (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_store            (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_delete           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_exists           (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_firstkey         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: gdbm_nextkey          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_create_ex
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_array_make
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_array_push
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_hash_get          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_hash_make         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_hash_set          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pstrmemdup
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pstrndup          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_ParserFree
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_ParserCreate
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_pool_get_abort
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_SetUserData
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_SetElementHandler
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_SetCharacterDataHandler
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_Parse             (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_GetErrorCode
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: XML_ErrorString
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_snprintf          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_psprintf          (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_time_exp_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_time_exp_gmt_get
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_mutex_lock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_proc_mutex_lock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_rwlock_rdlock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_rwlock_wrlock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_mutex_unlock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_proc_mutex_unlock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_rwlock_unlock
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_mutex_destroy
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_cond_destroy
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_cond_signal
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_mutex_create
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_cond_create
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_cond_wait
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_thread_cond_broadcast
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_os_default_encoding
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: apr_os_locale_encoding
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: libiconv_close
(/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: libiconv              (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)
        symbol not found: libiconv_open         (/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0)



>  ls -l /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0
lrwxrwxrwx   1 root     other         21 Sep 18 10:52
/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0 -> libaprutil-0.so.0.9.5
root@guppy/usr/local/wasm/usyd_modules/Usyd/Usyd-AuthCookieHandler-2.01:913>  ls -l
/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0*
lrwxrwxrwx   1 root     other         21 Sep 18 10:52
/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0 -> libaprutil-0.so.0.9.5
-rwxrwxr-x   1 root     other     351044 Sep 18 10:52
/usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0.9.5





Jie

-- 
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


Re: [mp2] linking problem.

Posted by Stas Bekman <st...@stason.org>.
Jie Gao wrote:
> 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

run

ldd -r /usr/local/apache_2.0.51_prefork/lib/libaprutil-0.so.0

since that's where your problem is:

/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.



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
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


Re: [mp2] linking problem.

Posted by Jie Gao <J....@isu.usyd.edu.au>.
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 <J....@isu.usyd.edu.au>
> To: modperl@perl.apache.org
> 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