You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eduardo Fujii <ef...@miis.edu> on 2000/03/24 00:43:39 UTC

Apache crashes loading mod_perl built with APXS

I've built mod_perl as a DSO. It compiles and installs OK. No error
messages. However, when I attempt to start Apache, it core-dumps with the
following message:

./apachectl start: httpd could not be started

I used the following arguments file to Makefile.PL (makepl_args.mod_perl):
EVERYTHING=1
USE_APXS=1
WITH_APXS=/usr3/local/apache/bin/apxs
PERL_TRACE=1
__END__


This is my environment:
1. Solaris 7 running on SPARC
2. Apache 1.3.6. I got a binary distribution. It was built with support for
DSO.
3. Perl 5.003_03. Also a binary distribution.
4. mod_perl 1.21
5. gcc version 2.8.1
6. I added the following line to the end of Apache's httpd.conf:
Include /usr3/local/apache/conf/mod_perl.conf
7. Contents of /usr3/local/apache/conf/mod_perl.conf:
LoadModule    perl_module    libexec/libperl.so
AddModule    mod_perl.c
8. Listing of ldd /usr3/local/apache/libexec/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
    libcrypt_i.so.1 =>    /usr/lib/libcrypt_i.so.1
    libmp.so.2 =>     /usr/lib/libmp.so.2
    libgen.so.1 =>    /usr/lib/libgen.so.1
9. Listing of ldd /usr/local/bin/perl (same as above):
    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
    libcrypt_i.so.1 =>    /usr/lib/libcrypt_i.so.1
    libmp.so.2 =>     /usr/lib/libmp.so.2
    libgen.so.1 =>    /usr/lib/libgen.so.1
10 Listing of ldd /usr3/local/apache/bin/httpd:
    libsocket.so.1 =>    /usr/lib/libsocket.so.1
    libnsl.so.1 =>    /usr/lib/libnsl.so.1
    libdl.so.1 =>    /usr/lib/libdl.so.1
    libc.so.1 =>    /usr/lib/libc.so.1
    libmp.so.2 =>     /usr/lib/libmp.so.2

I have no idea what's happening, so any help will be appreciated,
Thanks,
Eduardo Fujii
Monterey Institute of International Studies
efujii@miis.edu






Re: Apache crashes loading mod_perl built with APXS

Posted by Cliff Rayman <cl...@genwax.com>.
this is an old problem.

start your research here:
http://www.geocrawler.com/search/?config=182&words=solaris+dso+dump&SUBMIT=Search+modperl

cliff rayman
genwax.com

Eduardo Fujii wrote:

> I've built mod_perl as a DSO. It compiles and installs OK. No error
> messages. However, when I attempt to start Apache, it core-dumps with the
> following message:
>
> ./apachectl start: httpd could not be started
>
> I used the following arguments file to Makefile.PL (makepl_args.mod_perl):
> EVERYTHING=1
> USE_APXS=1
> WITH_APXS=/usr3/local/apache/bin/apxs
> PERL_TRACE=1
> __END__
>
> This is my environment:
> 1. Solaris 7 running on SPARC
> 2. Apache 1.3.6. I got a binary distribution. It was built with support for
> DSO.
> 3. Perl 5.003_03. Also a binary distribution.
> 4. mod_perl 1.21
> 5. gcc version 2.8.1
> 6. I added the following line to the end of Apache's httpd.conf:
> Include /usr3/local/apache/conf/mod_perl.conf
> 7. Contents of /usr3/local/apache/conf/mod_perl.conf:
> LoadModule    perl_module    libexec/libperl.so
> AddModule    mod_perl.c
> 8. Listing of ldd /usr3/local/apache/libexec/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
>     libcrypt_i.so.1 =>    /usr/lib/libcrypt_i.so.1
>     libmp.so.2 =>     /usr/lib/libmp.so.2
>     libgen.so.1 =>    /usr/lib/libgen.so.1
> 9. Listing of ldd /usr/local/bin/perl (same as above):
>     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
>     libcrypt_i.so.1 =>    /usr/lib/libcrypt_i.so.1
>     libmp.so.2 =>     /usr/lib/libmp.so.2
>     libgen.so.1 =>    /usr/lib/libgen.so.1
> 10 Listing of ldd /usr3/local/apache/bin/httpd:
>     libsocket.so.1 =>    /usr/lib/libsocket.so.1
>     libnsl.so.1 =>    /usr/lib/libnsl.so.1
>     libdl.so.1 =>    /usr/lib/libdl.so.1
>     libc.so.1 =>    /usr/lib/libc.so.1
>     libmp.so.2 =>     /usr/lib/libmp.so.2
>
> I have no idea what's happening, so any help will be appreciated,
> Thanks,
> Eduardo Fujii
> Monterey Institute of International Studies
> efujii@miis.edu