perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rude Yak <>
Subject [mp2] mod_perl 1.99-14, apache 2.0.(49|50), solaris 8, gcc 3.2.3 referenced symbol not found
Date Thu, 01 Jul 2004 18:34:34 GMT
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

I'm trying to get mod_perl and Apache 2.0.49 (I guess now 50 in the last 24
hours :-) built on my Solaris 8 machine but I'm running into various problems
and I'm hoping someone on the list can point me in the right direction.  I'm
using gcc 3.3.2 and I've successfully built both perl 5.8.0, mod_perl 1.99_14,
and Apache 2.0.50 independent of each other.  I built mod_perl 1.99_14 using
the following setting:

 perl Makefile.PL MP_APXS=/apps/apache/2.0.50/bin/apxs MP_INST_APACHE2=1; make;
make install

However, when I try to run Apache, I get this error:

# bin/httpd -C "LoadModule perl_module modules/" -t
Syntax error in -C/-c directive:\nCannot load
/apps/apache/2.0.50/modules/ into server: bin/httpd: fatal:
relocation error: file /apps/apache/2.0.50/modules/ symbol PL_op:
referenced symbol not found

Running Apache without mod_perl or with other add-on modules seems to work OK. 
I've gotten the specific error above with both apache 2.0.49 and 2.0.50.  When
I try "ldd -r modules/", I get the following: =>		  /apps/perl/5.8.0/lib/5.8.0/sun4-solaris/CORE/ =>		  /usr/lib/ =>		  /usr/lib/ =>		  /usr/lib/ =>		  /usr/lib/ =>		  /usr/lib/ =>		  /usr/lib/
		 symbol not found: PL_op         (modules/
		 symbol not found: PL_op         (modules/
		 symbol not found: PL_op         (modules/
		 symbol not found: PL_op         (modules/
		 symbol not found: PL_curpad         (modules/
		 symbol not found: PL_curpad         (modules/
		 symbol not found: PL_curpad         (modules/
		 symbol not found: PL_curpad         (modules/
		 symbol not found: PL_sv_yes         (modules/
		 symbol not found: PL_sv_yes         (modules/
		 symbol not found: main         (modules/
                 [... and so on ...]

PL_op, PL_curpad, etc., seem to be in libperl.a (but not  

  I've tried linking mod_perl statically per the instructions at but
that doesn't actually add mod_perl.a to any of the makefiles as far as I can
tell.  I would have expected something to reference mod_perl in
build/ but it's not there; manually adding
modules/perl/mod_perl.a doesn't seem to do quite what I expect.

2. Used Components and their Configuration:

*** mod_perl version 1.9914

*** using lib/Apache/
*** Makefile.PL options:
  MP_APXS         => /apps/apache/2.0.50/bin/apxs
  MP_COMPAT_1X    => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1

*** /apps/apache/2.0.50/bin/httpd -V
Server version: Apache/2.0.50
Server built:   Jul  1 2004 09:48:47
Server's Module Magic Number: 20020903:8
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/apps/apache/2.0.50"
 -D SUEXEC_BIN="/apps/apache/2.0.50/bin/suexec"
 -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"

*** /apps/perl/5.8.0/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos l98udfw8 5.8 generic_108528-14 sun4u sparc sunw,ultraax-i2 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='gcc', ccflags ='-fno-strict-aliasing -m32 -mcpu=ultrasparc
    cppflags='-fno-strict-aliasing -m32 -mcpu=ultrasparc'
    ccversion='', gccversion='3.1', gccosandvers='solaris2.8'
    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',
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc -m32 -mcpu=ultrasparc', ldflags =' -L/usr/local/lib '
    libpth=/usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lsocket -lnsl -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-m32
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Jul 21 2003 09:26:39

*** Packages of interest status:

Apache::Request: -
CGI            : 3.00
LWP            : 5.65
mod_perl       : 1.29, 1.9914

3. This is the core dump trace: (if you get a core dump):


This report was generated by t/REPORT on Thu Jul  1 18:31:50 2004 GMT.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message