Did you compile apache with -KPIC (or -fPIC for gcc)? Automake found
that option for me, but sometime you must use it explicitly for DSO's on
Solaris.
>From the INSTALL doc...
Additionally OpenSSL has problems under DSO situations on some
platforms. For instance under smart ix86 platforms like Linux
and FreeBSD when you compile a the standard OpenSSL
libcrypto.a/libssl.a libraries and link those to a mod_ssl DSO
libssl.so all works fine. While on other platforms like Solaris
2.6 on a SPARC OpenSSL's code will dump core under run-time.
When this is the case for you, then try to recompile OpenSSL
with Position Independent Code (PIC) by adding a `-fPIC' (for
GCC) or `-KPIC' (for SVR4-style compilers) to the platform
configuration line in OpenSSL's `Configure' script. The
-fPIC option above when you build OpenSSL.
-Brian
Xiaohua Cheng wrote:
>
> I am configuring a new apache server on Solaris. Apache can start up
> without SSL, but fails with SSL. The error I got is:
>
> ---------------------
>
> Syntax error on line 208 of /xxx/s4/apache/conf/httpd.conf:
>
> Cannot load /xxx/s4/apache/libexec/libssl.so into server: ld.so.1:
> /xxx/s4/apache/bin/httpd: fatal: relocation error: file
> /xxx/s4/apache/libexec/libssl.so: symbol ap_user_id: referenced symbol
> not found
>
> .//apachectl startssl: httpd could not be started
>
> -----------
>
> And I configured apache as following:
>
> ----------------------
>
> SSL_BASE="/xxx/s4/openssl-0.9.6" \
>
> ./configure \
>
> "--with-layout=Apache" \
>
> "--prefix=/xxx/s4/apache" \
>
> "--enable-shared=ssl" \
>
> "--enable-rule=EAPI" \
>
> "--enable-module=ssl" \
>
> -------------------------
>
> Can anyone give me some suggestions?
>
> Thanks,
>
> hua
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]