httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Mangin" <>
Subject Re: [users@httpd] fatal: relocation error
Date Wed, 18 Feb 2004 15:20:54 GMT

----- Original Message ----- 
From: "Boyle Owen" <>
To: <>
Sent: Wednesday, February 18, 2004 3:20 AM
Subject: RE: [users@httpd] fatal: relocation error

> -----Original Message-----
> From: Jonathan Mangin []
> Trying to change from static mod_perl to DSO max with 1.3.29.
> apachectl start gives me:
> Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/ into
> server: /usr/local/apache/bin/httpd: fatal:
> relocation error: file /usr/local/apache/libexec/
> symbol ap_os_is_path_absolute: referenced symbol not found

This type of problem arises when you compile an application with
LD_LIBRARY_PATH set to allow the compiler to find the libraries, but
then try to run the binary from a shell where LD_LIBRARY_PATH is set
differently (or not set at all).

If you don't want to use LD_LIBRARY_PATH (some people think it is evil:, then set LDFLAGS before
compiling. This will build the paths into the binary so apache will
always be able to find its libs. Of course, if you later move the libs,
apache will be lost again. Example from my last compile:

# This avoids LD_LIBRARY_PATH by building in the paths so they are used 
# at runtime.
setenv LDFLAGS "-R/usr/lib:/usr/local/lib:${INSTALL_PREFIX}/lib"

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

Hmmm. I set LD_LIBRARY_PATH in /etc/profile. I got that error
immediately, though I did extend LLP into your scenario when
trying to _fix_ it. It appears, however, that mod_perl doesn't
want to be a DSO on my platform (Sol8x86). Thanks for the info,
I'll pay more attention next time.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message