httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Apache Errors
Date Wed, 02 Apr 2003 06:57:15 GMT
>-----Original Message-----
>From: Albert E. Whale, CISSP [mailto:aewhale@ABS-CompTech.com]
>
>After successfully compiling the Apache software, I get the 
>following on startup.  Here's my error:
>
>#  /usr/local/apache/bin/apachectl start
>Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
>Cannot load /usr/local/apache/libexec/mod_vhost_alias.so into 
>server: ld.so.1: /usr/local/apache/bin/httpd: fatal: 
>relocation error: file 
>/usr/local/apache/libexec/mod_vhost_alias.so: symbol 
>ap_os_is_path_absolute: referenced symbol not found
>/usr/local/apache/bin/apachectl start: httpd could not be started

Having followed your compilation saga, I think I see the problem...

When you compiled, you had to extend LD_LIBRARY_PATH to include the path
to certain libs. However, when apache compiled, the paths-to-libs were
loaded relative to LD_LIBRARY_PATH - i.e. the absolute paths were NOT
loaded (this improves the portability of the binary).

Now when you invoke apache in your login shell, apache tries to find the
libs relative to that shell's LD_LIBRARY_PATH. However, this will not
include path-to-lib-dir that you added to LD_LIBRARY_PATH when you
compiled. So it can't find the lib (which I think contains a module
loader..) and so can't start.

The quick solution is to set LD_LIBRARY_PATH in the startup shell to be
the same as that in the compile shell. For future reference, you might
like to set LD_RUN_PATH = path-to-libs when you compile. This loads the
absolute path into the binary and eliminates the need for
LD_LIBRARY_PATH (which is an evil thing anyway).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


Those libs are now required by apache at run-time, but since you 

>
>Here's the configure line:
>
>./configure --prefix=/usr/local/apache --enable-module=all 
>--enable-shared=max --enable-rule=EAPI --with-layout=Apache
>
>Any suggestions on how to resolve this? 
>
>
>-- 
>Albert E. Whale, CISSP
>http://www.abs-comptech.com
>----------------------------------------------------------------------
>ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
>Sr. Security, Network, and Systems Consultant
>Founding Board of Directors of Pittsburgh FBI - InfraGard
>
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message