> 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
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?
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
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
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
5 matches
Mail list logo