Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60961 - imlib failing to detect libgif due to linkage failure
Summary: imlib failing to detect libgif due to linkage failure
Status: RESOLVED DUPLICATE of bug 40453
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 16:35 UTC by Paul Thompson
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Thompson 2004-08-19 16:35:19 UTC
During the configure phase building imlib-1.9.14-r1, it fails it test program
linking against -lgif with stuff like:

/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../libgif.so: undefined reference to `XDestroyImage'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../libgif.so: undefined reference to `XGetWindowAttributes'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../libgif.so: undefined reference to `XGetImage'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../libgif.so: undefined reference to `XGetPixel'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../libgif.so: undefined reference to `XQueryColors'

If, however, you also have libungif installed, it will test against that, and
succeed, never testing libgif. I noticed this on a box with only giflib
installed. (a fresh 2004.2) I then made a little hello.c program (main with
only a printf, and 'gcc -o hello hello.c -lgif' results in the same undefined
references. I then tried the same program on my other box, and it linked without
complaint. Then I re-merged giflib-- same version,4.1.0-r3 and the result is
that the test program now fails to link under both boxes now...

I dont know if imlib is just not compiling their test program correctly, or
what. (Those are Xlib symbols, so it will compile with -L/usr/X11R6 -lX11 )

my USE variables include 'X' and 'gif'.
Comment 1 Mystilleef 2004-08-22 12:24:09 UTC
I'm having the same problem.
Comment 2 foser (RETIRED) gentoo-dev 2004-08-26 05:54:45 UTC

*** This bug has been marked as a duplicate of 40453 ***