You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rog F <r_...@hotmail.com> on 2001/10/01 15:42:00 UTC
Re: Can't load mod_perl in Solaris 8
Hi, I have just come across this thread and have the exact same problem
(http://aspn.activestate.com/ASPN/Mail/Message/modperl/677372)
I am trying to build perl 5.6.0, DBD-Oracle-1.12 with DSO Apache 1.3.20 and
mod_perl-1.26 on Solaris 7 (uname -r = 5.7?)
Everything builds fine, however when starting apache the following error
message is printed:
Syntax error on line 225 of /opt/www/apache/conf/httpd.conf:
Cannot load /opt/www/apache/libexec/libperl.so into server:
ld.so.1: /opt/www/apache/bin/httpd: fatal: relocation error:
file /opt/www/apache/libexec/libperl.so: symbol PL_markstack_ptr:
referenced symbol not found
/opt/www/apache/bin/apachectl start: httpd could not be started
Perl is not built to be binary compatible to 5005 (-Ubincompat5005) and I
have tried using both Perl's & Solaris's malloc.
Building as DSO should be possible I have this combination working fine on
HPUX.
Isn't this PL_markstack_ptr problem likely to be a missing linker flag or
something from the Perl build telling it to export the symbols into
libperl.so (or something..)? I'd appreciate any ideas/help on this
Many thanks
Roger Foskett
----------------------------------------------
## perl configuration
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos divine 5.7 generic_106541-12 sun4u sparc sunw,ultra-4 '
config_args='-des'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cc', optimize='-O', gccversion=
cppflags='-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
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, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib -L/opt/SUNWspro/SC5.0/lib'
libpth=/usr/local/lib /opt/SUNWspro/SC5.0/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec -lpthread
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R
/opt/www/perl5/lib/5.6.0/sun4-solaris/CORE'
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib
-L/opt/SUNWspro/SC5.0/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Oct 1 2001 13:14:30
@INC:
/opt/www/perl5/lib/5.6.0/sun4-solaris
/opt/www/perl5/lib/5.6.0
/opt/www/perl5/lib/site_perl/5.6.0/sun4-solaris
/opt/www/perl5/lib/site_perl/5.6.0
/opt/www/perl5/lib/site_perl
.
----------------------------------------------
## mod_perl configuration
perl Makefile.PL \
NO_HTTPD=1 \
USE_APXS=1 \
WITH_APXS=/opt/www/apache/bin/apxs \
EVERYTHING=1
----------------------------------------------
## apache configuration
LDFLAGS="-lm -lpthread" \
CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
./configure \
--prefix=/opt/www/apache \
--enable-shared=max \
--disable-rule=EXPAT \
--enable-module=info \
--enable-rule=SHARED_CORE
# also tried with env var LDFLAGS_SHLIB_EXPORT=""
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp