You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Kailden K <ka...@hotmail.com> on 2003/11/14 16:38:00 UTC
[mp2] AIX cannot load compiled libraries
1. Problem Description:
On AIX 4.3.3, for mod_perl version 1.99_12 (yesterday's CVS)
Compile seems to work but make test fails to load shared libraries,
outputting:
t/TEST -bugreport -verbose=0
/usr/local/apache2/bin/httpd -d /home/xxx/install-src/modperl-2.0/t -f
/home/xxx/install-src/modperl-2.0/t/conf/httpd.conf -DAPACHE2
-DPERL_USEITHREADS
using Apache/2.0.46 (worker MPM)
waiting 60 seconds for server to start: .....[Fri Nov 14 10:14:38 2003]
[error] Can't load
'/home/xx/install-src/modperl-2.0/blib/arch/auto/APR/Table/Table.so' for
module APR::Table: at
/usr/local/lib/perl5/5.8.0/aix-thread-multi/DynaLoader.pm line 229.
at /home/xxx/install-src/modperl-2.0/blib/lib/APR/XSLoader.pm line 16
Compilation failed in require at
/home/xxx/install-src/modperl-2.0/t/conf/modperl_extra.pl line 39.
BEGIN failed--compilation aborted at
/home/xxx/install-src/modperl-2.0/t/conf/modperl_extra.pl line 39.
Compilation failed in require at
/home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl line 17.
...propagated at
/home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl line 18.
BEGIN failed--compilation aborted at
/home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl line 20.
Compilation failed in require at (eval 1) line 1.
[Fri Nov 14 10:14:38 2003] [error] Can't load Perl file:
/home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl for server
loopback:8529, exiting...
2. Used Components and their Configuration:
*** mod_perl version 1.9912
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/local/apache2
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.46
Server built: Jun 17 2003 13:54:50
Server's Module Magic Number: 20020903:3
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-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_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=aix, osvers=4.3.3.0, archname=000920534C00-aix-thread-multi
uname='aix xxx 3 4 00002f0e4c00 '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=de
fine
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem
=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-I/usr/local/includ
e -q32 -D_LARGE_FILES -qlonglong',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSI
X_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -I
/usr/local/include -q32 -D_LARGE_FILES -qlonglong -D_ALL_SOURCE
-D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD
_INIT -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong'
ccversion='5.0.1.0', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize
=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -brtl -L/usr/local/lib -b32'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd
-lPW
perllibs=-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd -lPW
libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-bE:/usr/local/lib/
perl5/5.8.0/aix-thread-multi/CORE/perl.exp
-bE:/usr/local/lib/perl5/5.8.0/aix-th
read-multi/CORE/perl.exp
-bE:/usr/local/lib/perl5/5.8.0/aix-thread-multi/CORE/pe
rl.exp'
cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(B
ASEEXT).exp -bnoentry -lpthreads -lc_r -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_
CONTEXT
Built under aix
Compiled at Oct 21 2002 16:02:17
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/local/lib/perl5/5.8.0/aix-thread-multi
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/aix-thread-multi
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
.
This report was generated by t/REPORT on Fri Nov 14 15:17:43 2003 GMT.
_________________________________________________________________
MSN Shopping upgraded for the holidays! Snappier product search...
http://shopping.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: [mp2] AIX cannot load compiled libraries
Posted by Stas Bekman <st...@stason.org>.
Kailden K wrote:
>
> 1. Problem Description:
> On AIX 4.3.3, for mod_perl version 1.99_12 (yesterday's CVS)
> Compile seems to work but make test fails to load shared libraries,
> outputting:
>
> t/TEST -bugreport -verbose=0
> /usr/local/apache2/bin/httpd -d /home/xxx/install-src/modperl-2.0/t -f
> /home/xxx/install-src/modperl-2.0/t/conf/httpd.conf -DAPACHE2
> -DPERL_USEITHREADS
> using Apache/2.0.46 (worker MPM)
>
> waiting 60 seconds for server to start: .....[Fri Nov 14 10:14:38 2003]
> [error] Can't load
> '/home/xx/install-src/modperl-2.0/blib/arch/auto/APR/Table/Table.so' for
> module APR::Table: at
> /usr/local/lib/perl5/5.8.0/aix-thread-multi/DynaLoader.pm line 229.
> at /home/xxx/install-src/modperl-2.0/blib/lib/APR/XSLoader.pm line 16
> Compilation failed in require at
> /home/xxx/install-src/modperl-2.0/t/conf/modperl_extra.pl line 39.
> BEGIN failed--compilation aborted at
> /home/xxx/install-src/modperl-2.0/t/conf/modperl_extra.pl line 39.
> Compilation failed in require at
> /home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl line 17.
> ...propagated at
> /home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl line 18.
> BEGIN failed--compilation aborted at
> /home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl line 20.
> Compilation failed in require at (eval 1) line 1.
>
> [Fri Nov 14 10:14:38 2003] [error] Can't load Perl file:
> /home/xxx/install-src/modperl-2.0/t/conf/modperl_startup.pl for server
> loopback:8529, exiting...
Sorry, this email fell between the cracks in the floor. Do you have the same
problem with the prefork mpm?
Please take a look at modperl-2.0/todo/bugs_build. Last time I've messed with
the mp2 build on AIX I've cheated and used -berok to ignore linking errors,
hoping that they will resolve at run time. I guess this is where it bites
back. A proper solution, resolving symbols at build time, needs to be provided
instead. If you know the AIX linker or know someone who does, a patch to do it
properly would be very helpful.
__________________________________________________________________
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