You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Khachaturov, Vassilli" <Va...@comverse-in.com> on 2000/12/06 20:49:13 UTC

all DSO but STATIC MOD_PERL: apache1.3.4/modperl1.24_01/perl5.6.0 /Solaris 5.6

Hi!
Can someone point me to what I am missing? I tried guide & messed with the
following 1/2day, but still no clue.

1) If I configure Apache by itself:

solaris:~/src/apache_1.3.14 707# ./configure --enable-module=most
--enable-shared=max --enable-rule=SHARED_CORE

and then make install, I end up with a working Apache.

However, if I do it with mod_perl in as close way as possible, aiming for
*static* mod_perl, here is what goes on
(make distclean done in ~/src/apache_1.3.14 and  ~/src/mod_perl-1.24_01
prior to any configure invokations):

solaris:~/src/mod_perl-1.24_01 711# perl Makefile.PL
APACHE_SRC=../apache_1.3.14/src USE_APACI=1 EVERYTHING=1
APACI_ARGS='--enable-module=most --enable-shared=max --disable-shared=perl
--enable-rule=SHARED_CORE' 
Will configure via APACI
Configure mod_perl with ../apache_1.3.14/src ? [y]
Shall I build httpd in ../apache_1.3.14/src for you? [y]
...

make then succeds.

2) However, make test fails in the following way:
cp t/conf/mod_perl_srm.conf t/conf/srm.conf
./apaci/load_modules.pl ../apache_1.3.14/src
../apache_1.3.14/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
Syntax error on line 2 of
/home/vassilii/src/mod_perl-1.24_01/t/conf/httpd.conf:
Can't locate API module structure `httpd_module' in file
/home/vassilii/src/mod_perl-1.24_01/t/../../apache_1.3.14/src/libhttpd.so:
ld.so.1: ../apache_1.3.14/src/httpd: fatal: httpd_module: can't find symbol

I tried to do make install from ~/src/mod_perl-1.24_01 and/or from
~/src/apache_1.3.14, but the tests still don't run and my server is
inoperational that way.

3) W/o any DSO involved, everything goes just fine -- when configured with

solaris:~/src/mod_perl-1.24_01 711# perl Makefile.PL
APACHE_SRC=../apache_1.3.14/src USE_APACI=1 EVERYTHING=1
APACI_ARGS='--enable-module=most'

A) Misc versions numbers:
+ apache_1.3.4/mod_perl-1.24_01
+ all the prerequisite Perl modules (LWP etc.) are current (CPAN doesn't
suggest upgrade)
+ perl -V:
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
...
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E -R
/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE'
    cccdlflags='-fPIC', lddlflags=' -W,l-E -G -L/usr/local/lib
-L/opt/local/lib'
...
+ gcc 2.8.1
+ the compiler used for perl build is the very same compiler as for the
Apache/mod_perl build

Vassilii
http://www.tarunz.org/~vassilii/