errors with hidden symbols and apache
Edward Peschko
esp5@pge.com
Fri Sep 3 23:25:00 GMT 2004
On Fri, Sep 03, 2004 at 04:08:53PM -0700, Richard Henderson wrote:
> On Fri, Sep 03, 2004 at 03:35:45PM -0700, Edward Peschko wrote:
> > I'm trying to compile apache/mod_perl with DSO, on solaris 5.8, and am getting
> >
> > /opt/tools/mdss/dev/2.8/bin/ld: libhttpd.ep: hidden symbol `__floatdisf' in /opt/tools/install/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/libgcc.a(_floatdisf.oS) is referenced by DSO
>
> I suspect that you linked using ld, and not with the gcc driver.
> Which would be incorrect.
>
> r~
given that the command to do the linking was:
/opt/tools/install/bin/gcc -I. -I/opt/tools/mdss/test/2.8/lib/perl5/5.8.5/sun4-sol
aris-64int/CORE -I./os/unix -I./include -DSOLARIS2=280 -DMOD_PERL -DUSE_PERL_SSI -fno-st
rict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DSHARED_CORE -fno-st
rict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `./apaci` \
-o libhttpd.ep -DSHARED_CORE_TIESTATIC main/http_main.c \
-L. -lhttpd -lsocket -lnsl -lpthread -Wl,-E -L/opt/tools/mdss/test/2.
8/lib -R/opt/tools/mdss/test/2.8/lib -L/usr/local/lib /opt/tools/mdss/test/2.8/lib/perl5/
5.8.5/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a -L/opt/tools/mdss/test/2.8/lib/perl5
/5.8.5/sun4-solaris-64int/CORE -lperl -lsocket -lnsl -ldl -lm -lc
/opt/tools/mdss/dev/2.8/bin/ld: libhttpd.ep: hidden symbol `__floatdisf' in /opt/t
ools/install/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/libgcc.a(_floatdisf.oS) is refe
renced by DSO
I don't see how this could have happened. Its a gcc call, right? So the correct gcc
driver should have been used to do the linking automatically.. And if not, why not?
Ed
More information about the Gcc
mailing list