On Tue, Feb 20, 2001 at 07:10:03AM +0000, [EMAIL PROTECTED] wrote:
> I am trying to compile apache_1.3.17 on HP-UX 10.20 and I am getting 
> the following problem when running make, can anyone give me an idea 
> what is the problem here:
> 
> 
> My configure command looks like this (I have tried it without the 
> CFLAGS line as well):
> 
> SSL_BASE=../openssl-0.9.6 \
> EAPI=../mm-1.1.3 \
> CFLAGS='-fPIC' \
> ./configure \
> --prefix=/opt/perl5/apache \
> --target=apache_1.3.17 \
> --enable-module=ssl \
> --enable-shared=ssl \
> --disable-rule=SSL_COMPAT \
> --activate-module=src/modules/perl/libperl.a \
> --enable-module=perl \
> --enable-module=proxy \
> --enable-module=so \
> --disable-module=actions \
> --disable-module=asis \
> --disable-module=imap \
> --disable-module=include \
> --disable-module=negotiation
> 
> 
> [ snip ]
> 
> ===> src/modules/ssl
> rm -f libssl.so
> ld -L/opt/apache/src/openssl-0.9.6 -b -o libssl.so mod_ssl.lo 
> ssl_engine_config.lo ssl_engine_compat.lo ssl_engine_ds.lo 
> ssl_engine_dh.lo ssl_engine_init.lo ssl_engine_kernel.lo 
> ssl_engine_rand.lo ssl_engine_io.lo ssl_engine_log.lo 
> ssl_engine_mutex.lo ssl_engine_pphrase.lo ssl_engine_vars.lo 
> ssl_engine_ext.lo ssl_scache.lo ssl_scache_dbm.lo ssl_scache_shmht.lo 
> ssl_scache_shmcb.lo ssl_expr.lo ssl_expr_scan.lo ssl_expr_parse.lo 
> ssl_expr_eval.lo ssl_util.lo ssl_util_ssl.lo ssl_util_sdbm.lo 
> ssl_util_table.lo  -ldbm -lssl -lcrypto 
> -L/var/iefadmn/gnu/usr/lib/gcc-lib/hppa1.0-hp-hpux10.20/2.8.1 -lgcc  
> 
> ld: Data Linkage Table (+z) overflow in file ssl_engine_config.lo - 
> use +Z option to recompile
>    Reference from:  ssl_engine_config.lo(0x24)
[More of these message deleted]
Unfortunately you omit the line used for compiling, since CFLAGS is set
to -fPIC the necessary condition should however be met (I assume you are
using gcc instead of HP's ANSI C). In a certain sense I am surprised
that -fPIC is not automatically set when using --enable-shared...

I see another problem (which I assume to be the real problem) in that
you link against -lgcc when building the shared library. -lgcc will
reference libgcc.a, of which no shared version exists and the modules
of which are normally not compiled relocatable (missing -fPIC). You cannot
link a shared library against a static library.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to