Subject: Re: toolchain/32954: devel/glib2 fails to build under current/amd64 due to ld bug
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Klaus Klein <kleink@reziprozitaet.de>
List: netbsd-bugs
Date: 02/28/2006 20:25:03
The following reply was made to PR toolchain/32954; it has been noted by GNATS.

From: Klaus Klein <kleink@reziprozitaet.de>
To: martijnb@atlas.ipv6.stack.nl
Cc: gnats-bugs@netbsd.org
Subject: Re: toolchain/32954: devel/glib2 fails to build under current/amd64 due to ld bug
Date: Tue, 28 Feb 2006 21:21:52 +0100

 martijnb@atlas.ipv6.stack.nl wrote:
 
 > .libs/libglib-2.0.so.0.1000.0 ld: .libs/gconvert.o: relocation
 > R_X86_64_PC32 against `_g_charset_get_aliases' can not be used when
 > making a shared object; recompile with -fPIC ld: final link failed:
 > Bad value
 >
 >   However, gconvert.o *has* been compiled with -fPIC.
 
 The problem here is apparently caused by gconvert.c declaring 
 _g_charset_get_aliases() with attribute(visibility("hidden")),
 which doesn't match its definition (in a different source file).
 
 
 - Klaus