Greetings, mod_perl gurus.  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/mod_perl.so" -t
Syntax error in -C/-c directive:\nCannot load
/apps/apache/2.0.50/modules/mod_perl.so into server: ld.so.1: bin/httpd: fatal:
relocation error: file /apps/apache/2.0.50/modules/mod_perl.so: 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/mod_perl.so", I get the following:

                 libperl.so =>            
/apps/perl/5.8.0/lib/5.8.0/sun4-solaris/CORE/libperl.so
                 libsocket.so.1 =>                /usr/lib/libsocket.so.1
                 libnsl.so.1 =>           /usr/lib/libnsl.so.1
                 libdl.so.1 =>            /usr/lib/libdl.so.1
                 libm.so.1 =>             /usr/lib/libm.so.1
                 libc.so.1 =>             /usr/lib/libc.so.1
                 libmp.so.2 =>            /usr/lib/libmp.so.2
                 symbol not found: PL_op         (modules/mod_perl.so)
                 symbol not found: PL_op         (modules/mod_perl.so)
                 symbol not found: PL_op         (modules/mod_perl.so)
                 symbol not found: PL_op         (modules/mod_perl.so)
                 symbol not found: PL_curpad         (modules/mod_perl.so)
                 symbol not found: PL_curpad         (modules/mod_perl.so)
                 symbol not found: PL_curpad         (modules/mod_perl.so)
                 symbol not found: PL_curpad         (modules/mod_perl.so)
                 symbol not found: PL_sv_yes         (modules/mod_perl.so)
                 symbol not found: PL_sv_yes         (modules/mod_perl.so)
                 symbol not found: main         (modules/mod_perl.so)
                 [... and so on ...]

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

  I've tried linking mod_perl statically per the instructions at
http://perl.apache.org/docs/2.0/user/install/install.html#MP_USE_STATIC 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/config_vars.mk but it's not there; manually adding
modules/perl/mod_perl.a doesn't seem to do quite what I expect.

  So.... does anyone have a recipe for how to get mod_perl, either as a DSO or
baked into httpd directly, working with Apache 2.0.x on Solaris 8?  

  Much obliged...

  Erick.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to