You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jean-Sebastien Morisset <js...@jsm-mv.dyndns.org> on 2000/04/27 20:52:36 UTC

Trouble compiling mod_perl

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I first tried to compile mod_perl-1.22 using APXS, but whenever I would
load the module, the Apache child would die.

Here's the command line I used:

perl Makefile.PL NO_HTTPD=1 EVERYTHING=1
WITH_APXS=/opt/apache-1.3.12/bin/apxs USE_APXS=1

I then tried to compile mod_perl with Apache (not shared). When I do, the
make fails. Here's the mod_perl config I used:

perl Makefile.PL DO_HTTPD=1 EVERYTHING=1

And the configuration for Apache:

SSL_BASE=../openssl-0.9.5a
RSA_BASE=../rsaref-2.0/local
export SSL_BASE RSA_BASE

./configure \
- --prefix=/opt/apache-1.3.12 \
- --enable-rule=SHARED_CORE \
- --activate-module=src/modules/perl/libperl.a \
- --enable-module=ssl \
- --enable-module=unique_id \
- --enable-module=rewrite \
- --enable-module=expires \
- --enable-module=info \
- --enable-module=so \
- --enable-module=status \
- --enable-module=vhost_alias \
- --enable-shared=max \
- --disable-shared=perl \
- --disable-shared=vhost_alias \
- --disable-module=userdir \
- --disable-module=autoindex \
- --disable-module=imap

And here's the error which is generated by the make:

<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=2 -DMOD_SSL=206102 -DUSE_HSREGEX
- -DEAPI -DUSE_EXPAT -I./lib/expat-lite -fpic -DSHARED_CORE `./apaci`
modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=2 -DMOD_SSL=206102 -DUSE_HSREGEX
- -DEAPI -DUSE_EXPAT -I./lib/expat-lite -fpic -DSHARED_CORE `./apaci`
buildmark.c
gcc -shared -o libhttpd.so buildmark.o modules.o modules/perl/libperl.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a lib/expat-lite/libexpat.a  
gcc  -I./os/unix -I./include   -DLINUX=2 -DMOD_SSL=206102 -DUSE_HSREGEX
- -DEAPI -DUSE_EXPAT -I./lib/expat-lite -fpic -DSHARED_CORE `./apaci`
- -rdynamic \
      -o libhttpd.ep -DSHARED_CORE_TIESTATIC main/http_main.c \
          -L. -lhttpd  -lm -lcrypt -lndbm -ldl
./libhttpd.so: undefined reference to `PL_dowarn'
./libhttpd.so: undefined reference to `Perl_gv_stashpv'
./libhttpd.so: undefined reference to `perl_get_sv'
./libhttpd.so: undefined reference to `Perl_croak'
./libhttpd.so: undefined reference to `Perl_sv_free'
./libhttpd.so: undefined reference to `Perl_markstack_grow'
./libhttpd.so: undefined reference to `PL_gid'
.
.
.


Does anyone have any idea what could be wrong?

Thanks,
js.
- -- 
Jean-Sebastien Morisset, Sr. UNIX Admin <js...@jsm-mv.dyndns.org>
Personal Homepage <http://www.jsmoriss.dyndns.org/> 
UNIX, Internet, Homebrewing, Cigars, PCS, CP2020 and other Fun Stuff...
This is Linux Country. On a quiet night you can hear Windows NT reboot!

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i
Comment: Personal Home Page <http://jsm.montreal.qc.ca/>

iQA/AwUBOQiMc5xsiDnGGop4EQK8OQCeLJ8Gh5I1TI25aWVnQCVtsKEE1KcAoIZr
eZGPrCErESqVqlWXqwhd58oM
=KrJz
-----END PGP SIGNATURE-----

Re: Trouble compiling mod_perl

Posted by Doug MacEachern <do...@covalent.net>.
On Thu, 27 Apr 2000, Jean-Sebastien Morisset wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I first tried to compile mod_perl-1.22 using APXS, but whenever I would
> load the module, the Apache child would die.
> 
> Here's the command line I used:
> 
> perl Makefile.PL NO_HTTPD=1 EVERYTHING=1
> WITH_APXS=/opt/apache-1.3.12/bin/apxs USE_APXS=1

your perl -V might help spot the problem.  as would a stacktrace (see
SUPPORT for hints)
 
> I then tried to compile mod_perl with Apache (not shared). When I do, the
> make fails. Here's the mod_perl config I used:

try using the steps in INSTALL.simple.mod_ssl instead.