problem compiling xorg7 modular

joe mistelbauer j.mistelbauer at gmx.net
Sun Jul 2 06:39:46 PDT 2006


GNU ld version 2.15

thx joe

-------- Original-Nachricht --------
Datum: Sun, 02 Jul 2006 12:20:29 +0100
Von: Nix <nix at esperi.org.uk>
An: Donnie Berkholz <spyderous at gentoo.org>
Betreff: Re: problem compiling xorg7 modular

> On Sun, 02 Jul 2006, Donnie Berkholz whispered secretively:
> > joe mistelbauer wrote:
> >> /bin/sh ../libtool --tag=CC --mode=link gcc
> -I/home/mf/compile/modular/include   -DMALLOC_0_RETURNS_NULL -g -O2   -o libXxf86dga.la -rpath
> /home/mf/compile/modular/lib -version-number 1:0:0 XF86DGA.lo XF86DGA2.lo
> -L/home/mf/compile/modular/lib -lX11 -lXext
> >> gcc -shared  .libs/XF86DGA.o .libs/XF86DGA2.o  -Wl,--rpath
> -Wl,/home/mf/compile/modular/lib -Wl,--rpath -Wl,/home/mf/compile/modular/lib
> -L/home/mf/compile/modular/lib /home/mf/compile/modular/lib/libX11.so
> /home/mf/compile/modular/lib/libXext.so  -Wl,-soname -Wl,libXxf86dga.so.1 -o
> .libs/libXxf86dga.so.1.0.0
> >>
> /usr/lib/libc_nonshared.a(atexit.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx':
> >> : multiple definition of `__i686.get_pc_thunk.bx'
> > 
> > Are you on some sort of hardened toolchain? That's where I've seen a
> > similar issue before.
> 
> It looks like an out-and-out binutils bug to me. It's complaining about
> the PC thunk, which is always emitted in a linkonce section (if you
> don't have linkonce, the thunks are given unique names to avoid
> precisely this error).
> 
> The whole point of linkonce is that multiple identically-named
> definitions are OK, and all but one are discarded; the linker is
> wrong. I've only seen an error even vaguely like this when I broke the
> linker badly or when trying to run old-style-XFree86-loader modules
> compiled with -fPIC (that loader did *not* eliminate duplicate thunks,
> so you got a module load failure at runtime).
> 
> To be honest I can't see how *anything* could link with that toolchain;
> maybe the problem only arises with linkonce sections in .a files, in
> which case he'd only have trouble linking with anything using functions
> >from libc_nonshared.a. Functions like, well, the various forwarders for
> stat()...
> 
> 
> Joe, what version of GNU ld is this?
> 
> -- 
> `She *is*, however, one of the few sf authors with a last name ending in
> O,
>  which adds some extra appeal to those of us who obsess about things like
>  having a book review of an author for each letter in the alphabet.' --
> rra

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the xorg mailing list