httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Cannot successfully build Apache 2.049 on Solaris 9
Date Fri, 18 Jun 2004 08:19:56 GMT
Plain text please...

Looks like a library which was on the LD_LIBRARY_PATH of the shell you
compiled apache with is not on the LD_LIBRARY_PATH of the shell you
start apache with.

Set the LD_LIBRARY_PATH in the start-up shell to match that of the
compile shell or set LDFLAGS during compilation and avoid using
LD_LIBRARY_PATH altogether.

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


When you compile a program, the code frequently calls routines in
external libraries. To find those libs, the shell will look in the
directories listed on its LD_LIBRARY_PATH (do "echo $LD_LIBRARY_PATH" to
see it). When you then run the compiled binary (probably in a different
shell), it will encounter the reference to the lib and look in its
LD_LIBRARY_PATH for the lib. If the LD_LIBRARY_PATHs are different
across the two shells, you'll get the kind of error you see. This is
typical for apache where you might compile under your own userid but run
httpd as root. Setting both LD_LIBRARY_PATHs the same should fix it.

Alternatively, before you compile, set the shell environment variable
"LDFLAGS" to point to the dirs with the libs (ie, same as
LD_LIBRARY_PATH). This causes the path to the lib to be stored along
with the symbol reference so that when the binary is executed, it will
have the path built in and so will find the lib without having to

-----Original Message-----
From: Delaporte, Olivier []
Sent: Donnerstag, 17. Juni 2004 22:08
Subject: [users@httpd] Cannot successfully build Apache 2.049 on Solaris

I am trying to build Apache 2.049 on Solaris 9 using gcc 3.1. I use the
following command to configure the server: 
./configure --prefix=/usr/local/apache --enable-mods-shared=most 
Make install. 
When I try to start the Apache server, I get the following error
# ./apachectl start 
Syntax error on line 237 of 
Cannot load /apps/apache2/modules/ 
into server: /apps/apache2/bin/httpd: fatal: relocation error:
/apps/apache2/modules/ symbol 
__floatdidf: referenced symbol not found 
Any ideas as to what I am missing. 
Thank you 

Olivier Delaporte 
Unix Systems Administrator 
IDT  M/S C9-070 
2975 Stender Way 
Santa Clara, CA 95054 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message