Bug#542365: [binutils-gold]

2009-11-02 Thread Peter Fritzsche
> So why does the regular ld not require the -lX11 ? It also requires -lX11. The only difference is that the old linker has --add- needed as default behavior and binutils-gold --no-add-needed. This means that it tries to search for missing symbols in libraries which are linked by libraries which

Bug#542365: binutils-gold: Fails without -lX11, however regular ld works

2009-08-19 Thread Kurt Roeckx
On Wed, Aug 19, 2009 at 10:26:03AM +0100, Kai Hendry wrote: > So why does the regular ld not require the -lX11 ? The regular ld will try to figure out missing libraries based on the libraries you do link to, and then claim you linked to it. > Shouldn't xscrnsaver.pc include -X11 like other .pcs?

Bug#542365: binutils-gold: Fails without -lX11, however regular ld works

2009-08-19 Thread Kai Hendry
So why does the regular ld not require the -lX11 ? Shouldn't xscrnsaver.pc include -X11 like other .pcs? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#542365: binutils-gold: Fails without -lX11, however regular ld works

2009-08-19 Thread Sune Vuorela
Hi As I read your sources, you are using the XOpenDisplay and XCloseDisplay functions in your code. This means you should a) include the right X headers and don't rely on the screensaver headers to pull them in and b) make sure you link with the library containing these symbols. In this case X

Bug#542365: binutils-gold: Fails without -lX11, however regular ld works

2009-08-19 Thread Kai Hendry
Package: binutils-gold Version: 2.19.51.20090805-1 Severity: normal With gold: LD idleseconds /usr/bin/ld: idle.o: in function main:idle.c(.text+0x4c): error: undefined reference to 'XOpenDisplay' /usr/bin/ld: idle.o: in function main:idle.c(.text+0xd2): error: undefined reference to 'XCloseDis