You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Edward Hodges <hk...@stmail.staffs.ac.uk> on 2003/04/11 17:12:39 UTC

mp2:ap2.0.45: make test fails "undefined symbol: PL_localizing"

Hi,

Bug report attached below.

Anyone got any ideas what I have missed?

Many Thanks,

Ed

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

When i run make test it dies with:

/usr/local/apache2/bin/httpd  -d /home/edhod/mod_perl-1.99_08/t -f 
/home/edhod/mod_perl-1.99_08/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.45 (prefork MPM)

waiting for server to start: .Syntax error on line 12 of 
/home/edhod/mod_perl-1.99_08/t/conf/httpd.conf:
Cannot load /home/edhod/mod_perl-1.99_08/src/modules/perl/mod_perl.so into 
server: /home/edhod/mod_perl-1.99_08/src/modules/perl/mod_perl.so: undefined 
symbol: PL_localizing
!!!
server has died with status 1 (t/logs/error_log wasn't created, start the 
server in the debug mode)
make: *** [run_tests] Error 143

2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX    => /usr/local/apache2
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.45
Server built:   Apr 10 2003 17:57:39
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_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/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/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"


*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.19, archname=i386-linux
    uname='linux cyberhq 2.4.19 #1 smp sun aug 4 11:30:45 pdt 2002 i686 
unknown
'
    config_args='-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux 
-Dp
refix=/usr -Dprivlib=/usr/share/perl/5.6.1 -Darchlib=/usr/lib/perl/5.6.1 
-Dvendo
rprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 
-Dsitepref
ix=/usr/local -Dsitelib=/usr/local/share/perl/5.6.1 
-Dsitearch=/usr/local/lib/pe
rl/5.6.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 
-Dman1ext=1
 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio 
-Dusesh
rplib -Dlibperl=libperl.so.5.6.1 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=unde
f
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-DDEBIAN -fno-strict-aliasing -I/usr/local/include 
-D_LAR
GEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-DDEBIAN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', 
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, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldb -ldl -lm -lc -lcrypt
    perllibs=-ldl -lm -lc -lcrypt
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so.5.6.1
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Nov 30 2002 17:31:55
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/local/lib/perl/5.6.1
    /usr/local/share/perl/5.6.1
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.6.1
    /usr/share/perl/5.6.1
    /usr/local/lib/site_perl
    .


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 Fri Apr 11 14:37:17 2003 GMT.

-------------8<---------- End Bug Report --------------8<----------


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: mp2:ap2.0.45: make test fails "undefined symbol: PL_localizing"

Posted by Stas Bekman <st...@stason.org>.
Edward Hodges wrote:
> Hi,
> 
> Bug report attached below.
> 
> Anyone got any ideas what I have missed?

> /usr/local/apache2/bin/httpd  -d /home/edhod/mod_perl-1.99_08/t -f 
> /home/edhod/mod_perl-1.99_08/t/conf/httpd.conf -DAPACHE2
> using Apache/2.0.45 (prefork MPM)
> 
> waiting for server to start: .Syntax error on line 12 of 
> /home/edhod/mod_perl-1.99_08/t/conf/httpd.conf:
> Cannot load /home/edhod/mod_perl-1.99_08/src/modules/perl/mod_perl.so into 
> server: /home/edhod/mod_perl-1.99_08/src/modules/perl/mod_perl.so: undefined 
> symbol: PL_localizing

Looks like for some reason your libperl.so doesn't have this symbol. I get:

% nm /home/stas/perl/5.6.1/lib/5.6.1/i686-linux/CORE/libperl.so | grep localizing
001057d0 B PL_localizing

What do you get? (of course adjust the path)

You can run:

% ldd /home/edhod/mod_perl-1.99_08/src/modules/perl/mod_perl.so

to figure out which libperl.so it's linked against.


> *** /usr/bin/perl -V
> Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
>   Platform:
>     osname=linux, osvers=2.4.19, archname=i386-linux
>     uname='linux cyberhq 2.4.19 #1 smp sun aug 4 11:30:45 pdt 2002 i686 
> unknown
> '
>     config_args='-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux 
> -Dp
> refix=/usr -Dprivlib=/usr/share/perl/5.6.1 -Darchlib=/usr/lib/perl/5.6.1 
> -Dvendo
> rprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 
> -Dsitepref
> ix=/usr/local -Dsitelib=/usr/local/share/perl/5.6.1 
> -Dsitearch=/usr/local/lib/pe
> rl/5.6.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 
> -Dman1ext=1
>  -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio 
> -Dusesh
> rplib -Dlibperl=libperl.so.5.6.1 -Dd_dosuid -des'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef 
> usemultiplicity=unde
> f
>     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>   Compiler:
>     cc='cc', ccflags ='-DDEBIAN -fno-strict-aliasing -I/usr/local/include 
> -D_LAR
> GEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>     optimize='-O2',
>     cppflags='-DDEBIAN -fno-strict-aliasing -I/usr/local/include'
>     ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', 
> 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, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lgdbm -ldb -ldl -lm -lc -lcrypt
>     perllibs=-ldl -lm -lc -lcrypt
>     libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so.5.6.1
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
>     cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


__________________________________________________________________
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org