You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mark Wood-Patrick <ml...@pacbell.net> on 2007/05/28 16:29:33 UTC

problem installing mod_perl-2.0.3 on Apache2/2.2.4: Apache/Constants/Constants.so: undefined symbol: perl_require_module

1. Problem Description:

 On running the apache server I get:

   /usr/local/apache_2.2.4/bin/httpd: relocation error: 
/usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux/auto/Apache/Constants/Constants.so: 
undefined symbol: perl_require_module

  This appears to go away if I remove:

      PerlModule Apache::Registry

   make test had reported this one error

   *** The following error entry is expected and harmless ***

[Sat May 26 05:04:15 2007] [error] Process 3870 terminates itself\n

[Sat May 26 05:04:16 2007] [error] [client 127.0.0.1] Handler for 
modperl returned invalid result code 2

[Sat May 26 05:04:16 2007] [error] [client 127.0.0.1] Handler for 
modperl returned invalid result code 2

# Failed test 3 in 
/local/src/mod_perl-2.0.3/t/response/TestAPI/server_const.pm at line 39

Given the preceding comment it was not clear if this was ok or not? 
Looking at the failing line it shows

   ok t_cmp(Apache2::ServerUtil::get_server_version,

            $version,

            'Apache2::ServerUtil::get_server_version()');

2. Used Components and their Configuration:

*** mod_perl version 2.000003

*** using /local/src/mod_perl-2.0.3/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:

 MP_APR_LIB     => aprext

 MP_APXS        => /usr/local/apache_2.2.4/bin/apxs

 MP_COMPAT_1X   => 1

 MP_GENERATE_XS => 1

 MP_LIBNAME     => mod_perl

 MP_USE_DSO     => 1


*** /usr/local/apache_2.2.4/bin/httpd -V

Server version: Apache/2.2.4 (Unix)

Server built:   May 25 2007 17:38:35

Server's Module Magic Number: 20051115:4

Server loaded:  APR 1.2.8, APR-Util 1.2.8

Compiled using: APR 1.2.8, APR-Util 1.2.8

Architecture:   64-bit

Server MPM:     Prefork

 threaded:     no

   forked:     yes (variable process count)

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 DYNAMIC_MODULE_LIMIT=128

-D HTTPD_ROOT="/usr/local/apache_2.2.4"

-D SUEXEC_BIN="/usr/local/apache_2.2.4/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/ldd /usr/local/apache_2.2.4/bin/httpd

       libm.so.6 => /lib64/tls/libm.so.6 (0x0000002a95685000)

       libaprutil-1.so.0 => 
/usr/local/apache_2.2.4/lib/libaprutil-1.so.0 (0x0000002a9580d000)

       libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x0000002a95926000)

       libapr-1.so.0 => /usr/local/apache_2.2.4/lib/libapr-1.so.0 
(0x0000002a95a48000)

       libuuid.so.1 => /lib64/libuuid.so.1 (0x0000002a95b6f000)

       librt.so.1 => /lib64/tls/librt.so.1 (0x0000002a95c73000)

       libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000002a95d8d000)

       libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000002a95ec0000)

       libdl.so.2 => /lib64/libdl.so.2 (0x0000002a95fd5000)

       libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a960d8000)

       /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 
(0x0000002a95556000)


*** (apr|apu)-config linking info

-L/usr/local/apache_2.2.4/lib -laprutil-1 -lexpat

-L/usr/local/apache_2.2.4/lib -lapr-1 -luuid -lrt -lcrypt  -lpthread -ldl



*** /usr/local/bin/perl -V

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:

 Platform:

   osname=linux, osvers=2.4.21-27.el, archname=x86_64-linux

   uname='linux arch-perf3 2.4.21-27.el #1 smp mon feb 28 18:08:03 est 
2005 x86_64 x86_64 x86_64 gnulinux '

   config_args='-des -Duseshrplib'

   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=define use64bitall=define uselongdouble=undef

   usemymalloc=n, bincompat5005=undef

 Compiler:

   cc='cc', ccflags ='-fno-strict-aliasing -pipe 
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',

   optimize='-O2',

   cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-I/usr/local/include -I/usr/include/gdbm'

   ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-49)', 
gccosandvers=''

   intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678

   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16

   ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8

   alignbytes=8, prototype=define

 Linker and Libraries:

   ld='cc', ldflags =' -L/usr/local/lib'

   libpth=/usr/local/lib /lib /usr/lib

   libs=-lnsl -ldl -lm -lcrypt -lutil -lc

   perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc

   libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so

   gnulibc_version='2.3.2'

 Dynamic Linking:

   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/local/lib/perl5/5.8.8/x86_64-linux/CORE'

   cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):

 Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT

                       USE_LARGE_FILES USE_PERLIO

 Built under linux

 Compiled at Apr 21 2007 07:45:28

 %ENV:

   PERL_LWP_USE_HTTP_10="1"

 @INC:

   /usr/local/lib/perl5/5.8.8/x86_64-linux

   /usr/local/lib/perl5/5.8.8

   /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux

   /usr/local/lib/perl5/site_perl/5.8.8

   /usr/local/lib/perl5/site_perl

   .

*** Packages of interest status:

Apache2            : -

Apache2::Request   : -

CGI                : 3.15

ExtUtils::MakeMaker: 6.30

LWP                : 5.805

mod_perl           : 1.30

mod_perl2          : 2.000003


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 May 26 13:03:54 2007 GMT.