This ebuild tries to be smart with sed -i -e "s/-lungif/-lgif/g" but that's wrong, emacs is built successfully but is NOT linked with libgif. But something that seems dumber seems to work, at least emacs is built AND linked with libgif, namely sed -i -e "s/ungif/gif/g" . Reproducible: Always Steps to Reproduce: 1. 2. 3.
Could you paste the output of `emerge --info` and `ldd /usr/bin/emacs-21` ? My emacs is liked with libgif. usata@rico ~ % ldd /usr/bin/emacs-21 linux-gate.so.1 => (0xffffe000) libXaw3d.so.7 => /usr/lib/libXaw3d.so.7 (0xb7ecc000) libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7eb7000) libXt.so.6 => /usr/lib/libXt.so.6 (0xb7e65000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb7e5c000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb7e44000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb7e36000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb7de5000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7dc6000) libpng.so.3 => /usr/lib/libpng.so.3 (0xb7d93000) libz.so.1 => /lib/libz.so.1 (0xb7d83000) libm.so.6 => /lib/tls/libm.so.6 (0xb7d60000) libgif.so.4 => /usr/lib/libgif.so.4 (0xb7d58000) libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7d47000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c7b000) libncurses.so.5 => /lib/libncurses.so.5 (0xb7c39000) libc.so.6 => /lib/tls/libc.so.6 (0xb7b1e000) /lib/ld-linux.so.2 (0xb7f57000) libdl.so.2 => /lib/libdl.so.2 (0xb7b1a000)
Emacs is not linked to giflib on my box, either. And that even though the emerge log shows: checking for gif_lib.h... yes checking for EGifPutExtensionLast in -lungif... no use flags are +X -Xaw3d -gnome -leim +lesstif -motif +nls -nosendmail I guess the gif dependency will be triggerd by one of the toolkits I don't use.
My emacs is broken since I had to replace gif with ungif to build kdegraphics-3.4.3. And I cannot emerge emacs now because it needs gif. It bothers me that a text editor should need gif at all.
Erik: kdegraphics doesn't need libungif, have a look at bug 83238.
*** Bug 123446 has been marked as a duplicate of this bug. ***
Thanks for the note, fixed in CVS, bug for ~ keywords.
marking fixed.