Is anyone else able to compile mod_ssl and mod_perl?

Is anyone else able to compile mod_ssl and mod_perl?

Post by Brian Knot » Tue, 09 Feb 1999 04:00:00



I cannot make these two modules play nice. I always get a problem
with unresolved symbols while linking. I tried removing libphp3.a, just
to make sure it wasn't part of the problem, but still had the identical
problem. Maybe it's just my compiler? Everything links fine, until
I throw mod_perl into the mix.

I'm using Linux kernel 2.0.35, egcs-1.1b, glibc 2.0.7, mod_ssl-2.1.7,
apache_1.3.4, php-3.0.6.

<=== src/modules
cc -c -I.  -I/usr/lib/perl5/5.00502/i686-linux/CORE  -I./os/unix -I./include  
-DLINUX=2 -DMOD_SSL=201107 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL
-I/usr/local/include -DUSE_HSREGEX -DEAPI `./apaci` modules.c
cc -c -I.  -I/usr/lib/perl5/5.00502/i686-linux/CORE  -I./os/unix -I./include  
-DLINUX=2 -DMOD_SSL=201107 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL
-I/usr/local/include -DUSE_HSREGEX -DEAPI `./apaci` buildmark.c
cc  -DLINUX=2 -DMOD_SSL=201107 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char
-DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX -DEAPI `./apaci`
-L/usr/local/ssl/lib   \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/ssl/libssl.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a
ap/libap.a regex/libregex.a  -lm -lcrypt  -lssl -lcrypto -rdynamic  
-L/usr/local/lib
/usr/lib/perl5/5.00502/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.00502/i686-linux/CORE -lperl -lnsl -lgdbm -ldb -ldl -lm -
lc -lposix -lcrypt
modules/ssl/libssl.a(ssl_engine_kernel.o): In function
`ssl_hook_NewConnection':
ssl_engine_kernel.o(.text+0x34e): undefined reference to `ERR_GET_REASON'
modules/ssl/libssl.a(ssl_engine_pphrase.o): In function
`ssl_pphrase_Handle_CB':
ssl_engine_pphrase.o(.text+0x748): undefined reference to `PEMerr'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/apache_1.3.4/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/apache_1.3.4'
make: *** [build] Error 2

--
-----------------------------------------------------------------------------

 
 
 

Is anyone else able to compile mod_ssl and mod_perl?

Post by Philip Hallstro » Wed, 10 Feb 1999 04:00:00



> I cannot make these two modules play nice. I always get a problem
> with unresolved symbols while linking. I tried removing libphp3.a, just
> to make sure it wasn't part of the problem, but still had the identical
> problem. Maybe it's just my compiler? Everything links fine, until
> I throw mod_perl into the mix.

> I'm using Linux kernel 2.0.35, egcs-1.1b, glibc 2.0.7, mod_ssl-2.1.7,
> apache_1.3.4, php-3.0.6.

It is... I didn't get the errors you have below, but I did get it
working on FreeBSD 2.2.8, and you're configs.  I also got mod-perl in
there as well...

I just followed all the instructions for each module (building using the
APACI way).  I started with ssl, then php, then perl.

My final configure for apache looked like:

SSL_BASE=../SSLeay-0.9.0b \
RSA_BASE=../rsaref-2.0/local \
./configure --prefix=/local/www \
        --enable-shared=unique_id \
        --enable-shared=mime_magic \
        --enable-shared=rewrite \
        --enable-shared=auth_dbm \
        --enable-shared=auth_db \
        --enable-shared=auth_anon \
        --enable-shared=headers \
        --enable-shared=info \
        --enable-module=usertrack \
        --enable-module=unique_id \
        --enable-module=mime_magic \
        --enable-module=rewrite \
        --enable-module=auth_dbm \
        --enable-module=auth_db \
        --enable-module=auth_anon \
        --enable-module=headers \
        --enable-module=info \
        --enable-module=usertrack \
        --activate-module=src/modules/php3/libphp3.a \
        --activate-module=src/modules/perl/libperl.a \
        --enable-shared=ssl \
        --enable-module=ssl \
        --activate-module=src/modules/auth_mysql/libauth_mysql.a \

Follow the SSL stuff really really closely... I had problems, but not
the ones you mentioned.  Mine had to do with finding the libraries which
I fixed by playing with ldconfig.

Also - be sure to do a basic "configure --prefix=/local/www" in your
apache tree first or all sorts of strange things happen.

Good luck!