You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Erin O'Neill <eo...@stanford.edu> on 2004/06/23 00:52:10 UTC

RE: [users@httpd] Cannot successfully build Apache 2.049 on Solar is 9

I'm using gcc 3.3.2. It may be that your version of gcc has this bug with 
__floatdidf: referenced symbol not found. It's documented on google (though 
a bit hard to find). Upgrade your gcc and see if that works.

good luck!
erin

At 03:21 PM 6/22/2004 -0700, you wrote:
>Hello
>
>Thank you for your reply: it makes perfect sense to me, but I do not know
>how to do it. I tried to start Apache with the bash shell and with including
>the apache/lib path in LD_LIBRARY_PATH, but still got the same error
>message.
>
>Regards
>
>Olivier Delaporte
>
>---------------------------------------------
>Olivier Delaporte
>Unix Systems Administrator
>IDT  M/S C9-070
>2975 Stender Way
>Santa Clara, CA 95054
>408-654-6443
>
>
>
>
>-----Original Message-----
>From: Boyle Owen [mailto:Owen.Boyle@swx.com]
>Sent: Friday, June 18, 2004 1:20 AM
>To: users@httpd.apache.org
>Subject: RE: [users@httpd] Cannot successfully build Apache 2.049 on Solaris
>9
>
>
>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.
>
>Rgds,
>Owen Boyle
>Disclaimer: Any disclaimer attached to this message may be ignored.
>
>
>Explanation:
>
>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 consult LD_LIBRARY_PATH.
>
>
>
>
>
>
>
>-----Original Message-----
>From: Delaporte, Olivier [mailto:olivier.delaporte@idt.com]
>Sent: Donnerstag, 17. Juni 2004 22:08
>To: users@httpd.apache.org
>Subject: [users@httpd] Cannot successfully build Apache 2.049 on Solaris 9
>
>
>Hello
>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
>Make install.
>When I try to start the Apache server, I get the following error
>message:
># ./apachectl start
>Syntax error on line 237 of
>/apps/apache2/conf/httpd.conf:
>Cannot load /apps/apache2/modules/mod_auth_digest.so
>into server: ld.so.1: /apps/apache2/bin/httpd: fatal: relocation error: file
>
>/apps/apache2/modules/mod_auth_digest.so: 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
>408-654-6443
>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: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
>
>---------------------------------------------------------------------
>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


---------------------------------------------------------------------
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


Re: [users@httpd] Cannot successfully build Apache 2.049 on Solar is 9

Posted by Milan Andric <ma...@eecs.berkeley.edu>.
Erin O'Neill wrote:

> I'm using gcc 3.3.2. It may be that your version of gcc has this bug 
> with __floatdidf: referenced symbol not found. It's documented on 
> google (though a bit hard to find). Upgrade your gcc and see if that 
> works.
>
> good luck!
> erin
>
I believe there's a couple of different solutions for this ... you have 
to manually fix the compilation. there's been a couple threads in the 
past. you're probably better off not relying on LD_LIBRARY_PATH.

http://thread.gmane.org/gmane.comp.apache.user/36835
http://search.gmane.org/search.php?query=floatdidf&email=&group=gmane.comp.apache.user&sort=date

--
Milan

> At 03:21 PM 6/22/2004 -0700, you wrote:
>
>> Hello
>>
>> Thank you for your reply: it makes perfect sense to me, but I do not 
>> know
>> how to do it. I tried to start Apache with the bash shell and with 
>> including
>> the apache/lib path in LD_LIBRARY_PATH, but still got the same error
>> message.
>>
>> Regards
>>
>> Olivier Delaporte
>>
>> ---------------------------------------------
>> Olivier Delaporte
>> Unix Systems Administrator
>> IDT  M/S C9-070
>> 2975 Stender Way
>> Santa Clara, CA 95054
>> 408-654-6443
>>
>>
>>
>>
>> -----Original Message-----
>> From: Boyle Owen [mailto:Owen.Boyle@swx.com]
>> Sent: Friday, June 18, 2004 1:20 AM
>> To: users@httpd.apache.org
>> Subject: RE: [users@httpd] Cannot successfully build Apache 2.049 on 
>> Solaris
>> 9
>>
>>
>> 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.
>>
>> Rgds,
>> Owen Boyle
>> Disclaimer: Any disclaimer attached to this message may be ignored.
>>
>>
>> Explanation:
>>
>> 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 consult LD_LIBRARY_PATH.
>>
>>
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Delaporte, Olivier [mailto:olivier.delaporte@idt.com]
>> Sent: Donnerstag, 17. Juni 2004 22:08
>> To: users@httpd.apache.org
>> Subject: [users@httpd] Cannot successfully build Apache 2.049 on 
>> Solaris 9
>>
>>
>> Hello
>> 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
>> Make install.
>> When I try to start the Apache server, I get the following error
>> message:
>> # ./apachectl start
>> Syntax error on line 237 of
>> /apps/apache2/conf/httpd.conf:
>> Cannot load /apps/apache2/modules/mod_auth_digest.so
>> into server: ld.so.1: /apps/apache2/bin/httpd: fatal: relocation 
>> error: file
>>
>> /apps/apache2/modules/mod_auth_digest.so: 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
>> 408-654-6443
>


---------------------------------------------------------------------
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


RE: [users@httpd] Cannot successfully build Apache 2.049 on Solar is 9

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Tue, 22 Jun 2004, Erin O'Neill wrote:

> I'm using gcc 3.3.2. It may be that your version of gcc has this bug with
> __floatdidf: referenced symbol not found. It's documented on google (though
> a bit hard to find). Upgrade your gcc and see if that works.
>
> good luck!
> erin
>
> >
> >Hello
> >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
> >Make install.
> >When I try to start the Apache server, I get the following error
> >message:
> ># ./apachectl start
> >Syntax error on line 237 of
> >/apps/apache2/conf/httpd.conf:
> >Cannot load /apps/apache2/modules/mod_auth_digest.so
> >into server: ld.so.1: /apps/apache2/bin/httpd: fatal: relocation error: file
> >
> >/apps/apache2/modules/mod_auth_digest.so: symbol
> >__floatdidf: referenced symbol not found
> >Any ideas as to what I am missing.
> >Thank you
> >

You can also relink the mod_auth_digets.so with the static gcc lib and it
will statically link in all the symbols it needs:


Find libgcc.a:
/usr/local/bin/gcc -print-libgcc-file-name

cd <srcdir>/modules/experimental
(from modules.mk)

ld -G -o mod_auth_digest.so mod_auth_digets.slo \
	mod_auth_digest.lo \
        /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/libgcc.a

cp mod_auth_digest.so <installdir>/modules


I haven't seen this issue with newer GCC's.


 ----------------------------------------
"Mon aéroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
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