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'.
I'm having the same problem.
*** This bug has been marked as a duplicate of 40453 ***