httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John P. Dodge" <do...@cruciate.ca.boeing.com>
Subject Re: AW: [users@httpd] Apache 2 on Solaris 5.8: Can not load modules
Date Wed, 28 Apr 2004 19:00:35 GMT

On Tue, 27 Apr 2004, Skladovs, Victor wrote:

>
>
> > Cannot load /usr/local/apache2/modules/mod_cache.so into server:
> > ld.so.1: /usr/l
> >
> > ocal/apache2/bin/httpd: fatal: relocation error: file
> > /usr/local/apache2/modules
> >
> > /mod_cache.so: symbol __floatdidf: referenced symbol not found

This is a common problem with GCC/GCCLIB:

You need to relink the offending objects with the static GCCLIB and all of
those pesky GCC symbols will be sucked in.

Here is what I did (from a previous build):

Relink mod_cache.so and mod_status.so to link in __float* from libgcc.a.

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

cd ./modules/experimental
(from modules.mk)

ld -G -o mod_cache.so mod_cache.lo \
        cache_storage.lo \
        cache_util.lo \
        /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/libgcc.a

cp mod_cache.so /opt/apache_2.0.44/modules/

cd ./modules/generators
(from modules.mk)

ld -G -o mod_status.so mod_status.lo
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/libgcc.a

cp mod_status.so /opt/apache_2.0.44/modules/

apachectl configtest - Syntax OK

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


Mime
View raw message