www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Horst H.G.Weber <web...@forwiss.tu-muenchen.de>
Subject general/2701: Test launch of apache fails with fatal ld.so error
Date Fri, 24 Jul 1998 17:09:54 GMT

>Number:         2701
>Category:       general
>Synopsis:       Test launch of apache fails with fatal ld.so error
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jul 24 10:10:03 PDT 1998
>Originator:     weberh@forwiss.tu-muenchen.de
>Release:        1.3.1
uname -a: SunOS sunforw0 5.6 Generic_105181-06 sun4u sparc SUNW,Ultra-1
gcc -v: gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
Apache configured with "--enable-module=most --enable-shared=max"
After compilation and installation I tried to test the new httpd with
'apachectl start' as described in the docs. But the launch failed with this 
error msg:

Syntax error on line 26 of /home/proj/www-1/Apache/etc/apache/httpd.conf:
Cannot load /home/proj/www-1/Apache/libexec/mod_env.so into server: ld.so.1: /home/proj/www-1/Apache/sbin/httpd:
fatal: relocation error: file /home/proj/www-1/Apache/libexec/mod_env.so: symbol ap_palloc:
referenced symbol not found
../../sbin/apachectl start: httpd could not be started

This line 26 is just the default entry:
LoadModule env_module         libexec/mod_env.so

Compiling the daemon with mod_env statically linked in (and the above line 
commented out) just let it fail on the next module (mod_log_config.so), this 
time with "symbol ap_psprintf: referenced symbol not found".

So -- what did I miss?
As far as I figured it out, these functions live in libmain.a, and it is called
by the linker. So everything should be in its place...

I have repeated it now for several times. Next thing would be to try it on a
different machine (but that's currently not available for me).

So, try:

configure --prefix=/bla --enable-module=most --enable-shared=max
make install
cd <to Apache-sbin-dir>
apachectl start

At least it does it for me. 
Currently -- no. I will try to create a version without DSO suppport.
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message