Dear mailinglist,
Can someone please enlighten me. I am researching this problem for a while and
running out of ideas. also i searched the web, faq, mailinglist, dejanews etc.
without finding a hint.
I am trying to compile apache with mod_perl using APACI on 2 machines,
machine 1 is running Solaris 2.6 and machine 2 is running solaris 2.7.
Both machines using the same configuration script, and the same apache-source
and mod_perl-source through NFS. its not even a copy, its the same.
Both machines have perl installed in /www/apps/perl.
Each Perl was configured and installed statically (libperl.a) (perl
-V output is below), and differs only in their libpath directorys.
NONE OF THE LIBDIRS WHICH ARE NOT USED ON MACHINE 2 CONTAIN EITHER LIBPERL.SO OR
LIBPERL.A.
Now the Problem:
When configuring and making on machine 1, everything runs fine.
When configuring and making on machine 2, (gnu-) make errors:
ld.so.1: ./gen_test_char: fatal: libperl.so: open failed: No such file or directory
(full output below)
I really cant figure out why libperl.so is needed on machine 2.
It was my intention to build it with libperl.a,
and I believe that I provided configure with all necessary options to do so.
Id really appreciate any help in this matter.
let me know if you need any additional information.
Thanks in advance
omar
Below is the output of apache|mod-perl|perl -V on both machines|gnu make error.
The mod_perl-configure-script (used on both machines)
=====================================================
#!/bin/sh
cd ../modules/mod_perl
echo "Configuring mod_perl in:"
pwd
/www/apps/perl/bin/perl Makefile.PL \
APACHE_SRC=../../apache/apache/src \
DO_HTTPD=0 \
USE_APACI=1 \
EVERYTHING=1
#USE_DSO=0
The apache-configure script
===========================
#!/bin/sh
LIBS='-lgdbm'
export LIBS
CFLAGS='-R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0'
export CFLAGS
INCLUDES='-I/park/pub/include'
export INCLUDES
cd ../apache/apache
echo "Configuring Apache in:"
pwd
./configure --prefix=/www \
--bindir=/www/bin \
--sbindir=/www/bin \
--libexecdir=/www/lib \
--mandir=/www/man \
--sysconfdir=/www/conf \
--datadir=/www/htdocs \
--includedir=/www/include \
--localstatedir=/www/logs \
--runtimedir=/www/logs \
--logfiledir=/www/logs \
--proxycachedir=/www/logs \
--enable-module=most \
--enable-module=log_agent\
--enable-module=log_referer\
--disable-module=ssl \
--disable-module=define \
--disable-module=mime_magic \
--disable-module=speling \
--disable-module=proxy \
--disable-module=digest \
--disable-module=usertrack \
--disable-module=unique_id \
--activate-module=src/modules/perl/libperl.a \
--with-perl=/www/bin/perl
PERL -V OUTPUT ON MACHINE 1
===========================
[westerland:/home/aboudeif] /www/apps/perl/bin/perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos westerland 5.6 generic_105181-13 sun4u sparc sunw,ultra-4 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=2.95.1 19990816 (release)
cppflags='-I/opt/local/include -I/opt/gnu/include'
ccflags ='-I/opt/local/include -I/opt/gnu/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags =' -L/opt/local/lib -L/opt/gnu/lib'
libpth=/opt/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib /www/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/opt/local/lib -L/opt/gnu/lib'
Characteristics of this binary (from libperl):
Built under solaris
Compiled at Sep 10 1999 18:29:47
@INC:
/www/apps/perl/lib/5.00503/sun4-solaris
/www/apps/perl/lib/5.00503
/www/apps/perl/lib/site_perl/5.005/sun4-solaris
/www/apps/perl/lib/site_perl/5.005
PERL -V OUTPUT ON MACHINE 2
===========================
[gotland:/park/pub/source/www/apache/apache] /www/apps/perl/bin/perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos gotland 5.7 generic_106541-07 sun4u sparc sunw,ultra-4 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=2.95.1 19990816 (release)
cppflags=''
ccflags =''
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
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags ='-L/www/lib -R/www/lib'
libpth=/www/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/www/lib'
Characteristics of this binary (from libperl):
Built under solaris
Compiled at Oct 20 1999 16:38:51
@INC:
/www/apps/perl/lib/5.00503/sun4-solaris
/www/apps/perl/lib/5.00503
/www/apps/perl/lib/site_perl/5.005/sun4-solaris
/www/apps/perl/lib/site_perl/5.005
THE FULL ERROR ON MACHINE 2:
============================
[gotland:/park/pub/source/www/apache/apache] gmake
===> src
gmake[1]: Entering directory `/park/pub/source/www/apache/apache_1.3.9'
gmake[2]: Entering directory `/park/pub/source/www/apache/apache_1.3.9/src'
===> src/os/unix
gmake[3]: Entering directory `/park/pub/source/www/apache/apache_1.3.9/src/os/unix'
gcc -c -I../.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../../os/unix
-I../../include -I/park/pub/include -DSOLARIS2=270 -DMOD_PERL - DUSE_PERL_SSI
-DUSE_EXPAT -I../../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0
`../../apaci` os.c
gcc -c -I../.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../../os/unix
-I../../include -I/park/pub/include -DSOLARIS2=270 -DMOD_PERL - DUSE_PERL_SSI
-DUSE_EXPAT -I../../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0
`../../apaci` os-inline.c
rm -f libos.a
ar cr libos.a os.o os-inline.o
ranlib libos.a
gmake[3]: Leaving directory `/park/pub/source/www/apache/apache_1.3.9/src/os/unix'
<=== src/os/unix
===> src/ap
gmake[3]: Entering directory `/park/pub/source/www/apache/apache_1.3.9/src/ap'
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_cpystrn.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_execve.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_fnmatch.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_getpass.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci` ap_md5c.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_signal.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_slack.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_snprintf.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci` ap_sha1.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_checkpass.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
ap_base64.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci` ap_hook.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci` ap_ctx.c
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL _SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci` ap_mm.c
rm -f libap.a
ar cr libap.a ap_cpystrn.o ap_execve.o ap_fnmatch.o ap_getpass.o ap_md5c.o ap_signal.o
ap_slack.o ap_snprintf.o ap_sha1.o ap_checkpass.o ap_base 64.o ap_hook.o
ap_ctx.o ap_mm.o
ranlib libap.a
gmake[3]: Leaving directory `/park/pub/source/www/apache/apache_1.3.9/src/ap'
<=== src/ap
===> src/main
gmake[3]: Entering directory `/park/pub/source/www/apache/apache_1.3.9/src/main'
gcc -c -I.. -I/www/apps/perl/lib/5.00503/sun4-solaris/CORE -I../os/unix -I../include
-I/park/pub/include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL_SSI -DUSE_EXPAT
-I../lib/expat-lite -R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci`
gen_test_char.c
gcc -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL_SSI -DUSE_EXPAT -I../lib/expat-lite
-R/www/lib -L/www/lib -DDYNAMIC_MODULE_LIMIT=0 `../apaci` -o gen_test_char
gen_test_char.o -lgdbm -lsocket -lnsl -L/www/lib -R/www/lib
/www/apps/perl/lib/5.00503/sun4-solaris/auto/DynaLoader/DynaLoader.a
-L/www/apps/perl/lib/5.00503/sun4-solaris/CORE -lperl -lsocket -lnsl -lgdbm -ldl -lm
-lc -lcrypt
./gen_test_char >test_char.h
ld.so.1: ./gen_test_char: fatal: libperl.so: open failed: No such file or directory
Killed
gmake[3]: *** [test_char.h] Error 137
gmake[3]: Leaving directory `/park/pub/source/www/apache/apache_1.3.9/src/main'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/park/pub/source/www/apache/apache_1.3.9/src'
gmake[1]: *** [build-std] Error 2
gmake[1]: Leaving directory `/park/pub/source/www/apache/apache_1.3.9'
gmake: *** [build] Error 2
cheers,
()mar /\bou |)eif