Using USE=-exif doesn't include libexif and: tools.cpp:51:2: warning: #warning no HAVE_LIBEXIF tools.cpp: In static member function `static bool Tools::saveAs(const QImage*, const QString&, const QString&)': tools.cpp:1020: error: `ExifData' undeclared (first use this function) tools.cpp:1020: error: (Each undeclared identifier is reported only once for each function it appears in.) tools.cpp:1020: error: `old_ExifData' undeclared (first use this function) tools.cpp:1020: error: `exif_data_new_from_data' undeclared (first use this function) tools.cpp:1028: error: `JPEGData' undeclared (first use this function) tools.cpp:1028: error: `old_jpegData' undeclared (first use this function) tools.cpp:1028: error: `jpeg_data_new_from_data' undeclared (first use this function) tools.cpp:1051: error: `new_ExifData' undeclared (first use this function) tools.cpp:1058: error: `new_jpegData' undeclared (first use this function) tools.cpp:1068: error: `jpeg_data_set_exif_data' undeclared (first use this function) tools.cpp:1071: error: `jpeg_data_save_data' undeclared (first use this function) tools.cpp:1072: error: `jpeg_data_unref' undeclared (first use this function) make[4]: *** [tools.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/showimg-0.9.5/work/showimg-0.9.5/showimg/showimg' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/showimg-0.9.5/work/showimg-0.9.5/showimg/showimg' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/showimg-0.9.5/work/showimg-0.9.5/showimg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/showimg-0.9.5/work/showimg-0.9.5' make: *** [all] Error 2 Emerging libexif solves the problem. If it can be fixed to configure and build without exif altogether, like it tries to, all the better. = Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac acl adns alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt djbfft dts dvd dvdr eds emboss encode ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk2 hal idn imlib ipv6 java jpeg kde kdeenablefinal lcms libg++ libwww mad mikmod mmx mmxext mng motif mp3 mpeg nptl nvidia ogg oggvorbis openal opengl pam pcre pdflib perl png python qt quicktime readline spell sse ssl tcpd theora threads tiff truetype truetype-fonts type1-fonts udev urandom usb vorbis xine xml xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
*** Bug 125790 has been marked as a duplicate of this bug. ***
Actually, libexif is an hard dependency, it's libkexif that's optional.