Compiling gwenview fails with this error: /bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I/usr/include/libexif -I/usr/kde/3.4/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fvisibility=hidden -fvisibility-inlines-hidden -c -o jpegcontent.lo `test -f 'jpegcontent.cpp' || echo './'`jpegcontent.cpp jpegcontent.cpp:26:21: jpeglib.h: No such file or directory In file included from jpegcontent.cpp:27: transupp.h:92: error: `boolean' does not name a type transupp.h:93: error: `boolean' does not name a type transupp.h:97: error: ISO C++ forbids declaration of `jvirt_barray_ptr' with no type transupp.h:97: error: expected `;' before '*' token transupp.h:104: error: expected constructor, destructor, or type conversion before "jtransform_request_workspace" transupp.h:104: error: expected `,' or `;' before "jtransform_request_workspace" transupp.h:107: error: expected constructor, destructor, or type conversion before '(' token transupp.h:107: error: expected `,' or `;' before '(' token transupp.h:112: error: expected constructor, destructor, or type conversion before "jtransform_execute_transformation" transupp.h:112: error: expected `,' or `;' before "jtransform_execute_transformation" transupp.h:133: error: expected constructor, destructor, or type conversion before "jcopy_markers_setup" transupp.h:133: error: expected `,' or `;' before "jcopy_markers_setup" transupp.h:136: error: expected constructor, destructor, or type conversion before "jcopy_markers_execute" transupp.h:136: error: expected `,' or `;' before "jcopy_markers_execute" In file included from jpegcontent.cpp:48: ./../imageutils/jpegerrormanager.h:42: error: expected class-name before '{' token ./../imageutils/jpegerrormanager.h:50: error: `j_common_ptr' has not been declared ./../imageutils/jpegerrormanager.h:50: error: ISO C++ forbids declaration of `cinfo' with no type ./../imageutils/jpegerrormanager.h: In constructor `ImageUtils::JPEGErrorManager::JPEGErrorManager()': ./../imageutils/jpegerrormanager.h:43: error: class `ImageUtils::JPEGErrorManager' does not have any field named `jpeg_error_mgr' ./../imageutils/jpegerrormanager.h:44: error: `jpeg_std_error' undeclared (first use this function) ./../imageutils/jpegerrormanager.h:44: error: (Each undeclared identifier is reported only once for each function it appears in.) ./../imageutils/jpegerrormanager.h:45: error: `error_exit' undeclared (first use this function) ./../imageutils/jpegerrormanager.h: In static member function `static void ImageUtils::JPEGErrorManager::errorExitCallBack(int)': ./../imageutils/jpegerrormanager.h:51: error: base operand of `->' is not a pointer ./../imageutils/jpegerrormanager.h:52: error: `JMSG_LENGTH_MAX' undeclared (first use this function) ./../imageutils/jpegerrormanager.h:53: error: base operand of `->' is not a pointer ./../imageutils/jpegerrormanager.h:53: error: `buffer' undeclared (first use this function) jpegcontent.cpp: At global scope: jpegcontent.cpp:60: error: expected class-name before '{' token jpegcontent.cpp:64: error: variable or field `inmem_init_source' declared void jpegcontent.cpp:64: error: `j_decompress_ptr' was not declared in this scope jpegcontent.cpp:64: error: expected `,' or `;' before '{' token jpegcontent.cpp:74: error: `j_decompress_ptr' was not declared in this scope jpegcontent.cpp:74: error: expected `,' or `;' before '{' token jpegcontent.cpp:82: error: variable or field `inmem_skip_input_data' declared void jpegcontent.cpp:82: error: `j_decompress_ptr' was not declared in this scope jpegcontent.cpp:82: error: expected primary-expression before "long" jpegcontent.cpp:82: error: initializer expression list treated as compound expression jpegcontent.cpp:82: error: expected `,' or `;' before '{' token jpegcontent.cpp:89: error: variable or field `inmem_term_source' declared void jpegcontent.cpp:89: error: `j_decompress_ptr' was not declared in this scope jpegcontent.cpp:89: error: expected `,' or `;' before '{' token jpegcontent.cpp:98: error: expected class-name before '{' token jpegcontent.cpp: In member function `void ImageUtils::inmem_dest_mgr::dump()': jpegcontent.cpp:103: error: `next_output_byte' undeclared (first use this function) jpegcontent.cpp:104: error: `free_in_buffer' undeclared (first use this function) jpegcontent.cpp: At global scope: jpegcontent.cpp:109: error: variable or field `inmem_init_destination' declared void jpegcontent.cpp:109: error: `j_compress_ptr' was not declared in this scope jpegcontent.cpp:109: error: expected `,' or `;' before '{' token jpegcontent.cpp:119: error: `j_compress_ptr' was not declared in this scope jpegcontent.cpp:119: error: expected `,' or `;' before '{' token jpegcontent.cpp:129: error: variable or field `inmem_term_destination' declared void jpegcontent.cpp:129: error: `j_compress_ptr' was not declared in this scope jpegcontent.cpp:129: error: expected `,' or `;' before '{' token jpegcontent.cpp:155: error: `j_decompress_ptr' has not been declared jpegcontent.cpp:155: error: ISO C++ forbids declaration of `cinfo' with no type jpegcontent.cpp:172: error: `j_compress_ptr' has not been declared jpegcontent.cpp:172: error: ISO C++ forbids declaration of `cinfo' with no type jpegcontent.cpp: In member function `void ImageUtils::JPEGContent::Private::setupInmemSource(int)': jpegcontent.cpp:156: error: base operand of `->' is not a pointer jpegcontent.cpp:158: error: base operand of `->' is not a pointer jpegcontent.cpp:158: error: `j_common_ptr' undeclared (first use this function) jpegcontent.cpp:158: error: `JPOOL_PERMANENT' undeclared (first use this function) jpegcontent.cpp:160: error: base operand of `->' is not a pointer jpegcontent.cpp:162: error: 'struct ImageUtils::inmem_src_mgr' has no member named 'init_source' jpegcontent.cpp:163: error: 'struct ImageUtils::inmem_src_mgr' has no member named 'fill_input_buffer' jpegcontent.cpp:164: error: 'struct ImageUtils::inmem_src_mgr' has no member named 'skip_input_data' jpegcontent.cpp:165: error: 'struct ImageUtils::inmem_src_mgr' has no member named 'resync_to_restart' jpegcontent.cpp:165: error: `jpeg_resync_to_restart' undeclared (first use this function) jpegcontent.cpp:166: error: 'struct ImageUtils::inmem_src_mgr' has no member named 'term_source' jpegcontent.cpp: In member function `void ImageUtils::JPEGContent::Private::setupInmemDestination(int, QByteArray*)': jpegcontent.cpp:173: error: base operand of `->' is not a pointer jpegcontent.cpp:175: error: base operand of `->' is not a pointer jpegcontent.cpp:175: error: `j_common_ptr' undeclared (first use this function) jpegcontent.cpp:175: error: `JPOOL_PERMANENT' undeclared (first use this function) jpegcontent.cpp:177: error: base operand of `->' is not a pointer jpegcontent.cpp:179: error: 'struct ImageUtils::inmem_dest_mgr' has no member named 'init_destination' jpegcontent.cpp:180: error: 'struct ImageUtils::inmem_dest_mgr' has no member named 'empty_output_buffer' jpegcontent.cpp:181: error: 'struct ImageUtils::inmem_dest_mgr' has no member named 'term_destination' jpegcontent.cpp: In member function `bool ImageUtils::JPEGContent::Private::readJPEGInfo()': jpegcontent.cpp:186: error: aggregate `ImageUtils::jpeg_decompress_struct srcinfo' has incomplete type and cannot be defined jpegcontent.cpp:187: error: `jpeg_saved_marker_ptr' undeclared (first use this function) jpegcontent.cpp:187: error: expected `;' before "mark" jpegcontent.cpp:194: error: `jpeg_create_decompress' undeclared (first use this function) jpegcontent.cpp:204: error: `jcopy_markers_setup' undeclared (first use this function) jpegcontent.cpp:205: error: `jpeg_read_header' undeclared (first use this function) jpegcontent.cpp:206: error: `JPEG_HEADER_OK' undeclared (first use this function) jpegcontent.cpp:208: error: `jpeg_destroy_decompress' undeclared (first use this function) jpegcontent.cpp:214: error: `mark' undeclared (first use this function) jpegcontent.cpp:215: error: `JPEG_COM' undeclared (first use this function) jpegcontent.cpp: In member function `void ImageUtils::JPEGContent::transform(ImageUtils::Orientation, bool, const QString&)': jpegcontent.cpp:345: error: aggregate `ImageUtils::jpeg_decompress_struct srcinfo' has incomplete type and cannot be defined jpegcontent.cpp:346: error: aggregate `ImageUtils::jpeg_compress_struct dstinfo' has incomplete type and cannot be defined jpegcontent.cpp:347: error: `jvirt_barray_ptr' undeclared (first use this function) jpegcontent.cpp:347: error: `src_coef_arrays' undeclared (first use this function) jpegcontent.cpp:348: error: `dst_coef_arrays' undeclared (first use this function) jpegcontent.cpp:353: error: `jpeg_create_decompress' undeclared (first use this function) jpegcontent.cpp:362: error: `jpeg_create_compress' undeclared (first use this function) jpegcontent.cpp:372: error: `jcopy_markers_setup' undeclared (first use this function) jpegcontent.cpp:375: error: `jpeg_read_header' undeclared (first use this function) jpegcontent.cpp:380: error: 'struct jpeg_transform_info' has no member named 'force_grayscale' jpegcontent.cpp:381: error: 'struct jpeg_transform_info' has no member named 'trim' jpegcontent.cpp:382: error: `jtransform_request_workspace' undeclared (first use this function) jpegcontent.cpp:385: error: `jpeg_read_coefficients' undeclared (first use this function) jpegcontent.cpp:388: error: `jpeg_copy_critical_parameters' undeclared (first use this function) jpegcontent.cpp:395: error: `jtransform_adjust_parameters' undeclared (first use this function) jpegcontent.cpp:403: error: `jpeg_write_coefficients' undeclared (first use this function) jpegcontent.cpp:408: error: `JPEG_COM' undeclared (first use this function) jpegcontent.cpp:408: error: ISO C++ forbids declaration of `type name' with no type jpegcontent.cpp:408: error: ISO C++ forbids declaration of `type name' with no type jpegcontent.cpp:408: error: expected primary-expression before "const" jpegcontent.cpp:408: error: expected `)' before "const" jpegcontent.cpp:407: warning: unused variable 'data' jpegcontent.cpp:412: error: `jcopy_markers_execute' undeclared (first use this function) jpegcontent.cpp:417: error: `jtransform_execute_transformation' undeclared (first use this function) jpegcontent.cpp:420: error: `jpeg_finish_compress' undeclared (first use this function) jpegcontent.cpp:421: error: `jpeg_destroy_compress' undeclared (first use this function) jpegcontent.cpp:422: error: `jpeg_finish_decompress' undeclared (first use this function) jpegcontent.cpp:423: error: `jpeg_destroy_decompress' undeclared (first use this function) make[3]: *** [jpegcontent.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/gwenview-1.2.92/work/gwenview-1.2.92/src/imageutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gwenview-1.2.92/work/gwenview-1.2.92/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gwenview-1.2.92/work/gwenview-1.2.92' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge gwenview 2. 3. Actual Results: failure Expected Results: success Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686) ================================================================= System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.0_pre6 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.2.3-r6, 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/" USE="x86 X aalib aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts cdparanoia cdr codecs crypt cups curl curlwrappers directfb dvd dvdr dvdread eds emboss encode esd ethereal evo exif fam flac flash foomaticdb fortran ftp gd gdbm gif gpm gstreamer gtk gtk2 guile imagemagick imap imlib innodb jabber java joystick jpeg kde kdeenablefinal libg++ libwww mad mikmod mime mmx mng motif mozilla mp3 mpeg msn ncurses network nls nptl nvidia offensive ogg oggvorbis opengl oscar oss pam pdflib perl png python qt readline samba scanner sdl slang sndfile spell sse sse2 ssl svg svga tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts usb videos vorbis wmf xine xml xml2 xmms xpm xv xvid yahoo zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Fails for me too.. but not in the same place (as far as I can tell).. never had ANY problems compiling this until this ebuild. I am upgrading from 1.2.0 to 1.2.92... I am on AMD64 /bin/sh ../../libtool --silent --mode=link --tag=CXX x86_64-pc-linux-gnu-g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -fomit-frame-pointer -ffast-math -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fvisibility=hidden -fvisibility-inlines-hidden -o libgvimagepart.la -rpath /usr/lib64/kde3 -L/usr/kde/3.4/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib64 -R /usr/kde/3.4/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 gvimagepart.lo -lkparts ../gvcore/libgwenviewcore.la .libs/gvimagepart.o(.text+0x350): In function `Gwenview::GVImagePart::partActivateEvent(KParts::PartActivateEvent*)': : undefined reference to `Gwenview::Cache::instance()' .libs/gvimagepart.o(.text+0x35e): In function `Gwenview::GVImagePart::partActivateEvent(KParts::PartActivateEvent*)': : undefined reference to `Gwenview::Cache::readConfig(KConfig*, QString const&)' .libs/gvimagepart.o(.text+0x4f4): In function `Gwenview::GVImagePart::prefetchDone()': : undefined reference to `Gwenview::ImageLoader::release(QObject const*)' .libs/gvimagepart.o(.text+0x596): In function `Gwenview::GVImagePart::print()': : undefined reference to `Gwenview::PrintDialogPage::PrintDialogPage(Gwenview::Document*, QWidget*, char const*)' .libs/gvimagepart.o(.text+0x5dd): In function `Gwenview::GVImagePart::print()': : undefined reference to `Gwenview::Document::print(KPrinter*)' .libs/gvimagepart.o(.text+0xc2c): In function `Gwenview::GVImagePart::previousURL() const': : undefined reference to `Gwenview::Document::filename() const' .libs/gvimagepart.o(.text+0xce8): In function `Gwenview::GVImagePart::previousURL() const': : undefined reference to `Gwenview::Document::dirURL() const' .libs/gvimagepart.o(.text+0xdde): In function `Gwenview::GVImagePart::nextURL() const': : undefined reference to `Gwenview::Document::filename() const' .libs/gvimagepart.o(.text+0xe6f): In function `Gwenview::GVImagePart::nextURL() const': : undefined reference to `Gwenview::Document::dirURL() const' .libs/gvimagepart.o(.text+0xf9d): In function `Gwenview::GVImagePart::loaded(KURL const&)': : undefined reference to `Gwenview::Document::image() const' .libs/gvimagepart.o(.text+0xfc3): In function `Gwenview::GVImagePart::loaded(KURL const&)': : undefined reference to `Gwenview::Document::image() const' .libs/gvimagepart.o(.text+0x10fb): In function `Gwenview::GVImagePart::loaded(KURL const&)': : undefined reference to `Gwenview::ImageLoader::loader(KURL const&, QObject const*, Gwenview::BusyLevel)' .libs/gvimagepart.o(.text+0x11a2): In function `Gwenview::GVImagePart::updateNextPrevious()': : undefined reference to `Gwenview::Document::filename() const' .libs/gvimagepart.o(.text+0x1504): In function `Gwenview::GVImagePart::openURL(KURL const&)': : undefined reference to `Gwenview::Document::url() const' .libs/gvimagepart.o(.text+0x1530): In function `Gwenview::GVImagePart::openURL(KURL const&)': : undefined reference to `Gwenview::Document::setURL(KURL const&)' .libs/gvimagepart.o(.text+0x1548): In function `Gwenview::GVImagePart::openURL(KURL const&)': : undefined reference to `Gwenview::Document::dirURL() const' .libs/gvimagepart.o(.text+0x15d8): In function `Gwenview::GVImagePart::openURL(KURL const&)': : undefined reference to `Gwenview::Document::reload()' .libs/gvimagepart.o(.text+0x177c): In function `Gwenview::GVImagePart::GVImagePart(QWidget*, char const*, QObject*, char const*, QStringList const&)': : undefined reference to `Gwenview::Document::Document(QObject*)' .libs/gvimagepart.o(.text+0x1e95): In function `Gwenview::GVImagePart::GVImagePart(QWidget*, char const*, QObject*, char const*, QStringList const&)': : undefined reference to `Gwenview::Document::Document(QObject*)' .libs/gvimagepart.o(.text+0x61d): In function `Gwenview::GVImagePart::rotateRight()': : undefined reference to `Gwenview::Document::transform(ImageUtils::Orientation)' collect2: ld returned 1 exit status make[3]: *** [libgvimagepart.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/gwenview-1.2.92/work/gwenview-1.2.92/src/gvimagepart' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gwenview-1.2.92/work/gwenview-1.2.92/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gwenview-1.2.92/work/gwenview-1.2.92' make: *** [all] Error 2 Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r9 x86_64) ================================================================= System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 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 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="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -ffast-math" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-mirror.internap.com/pub/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/temp/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac aalib adns alsa apache2 arts artswrappersuid atk avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdr crypt cups curl dvd dvdread eds encode esd ffmpeg firefox flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib java jikes jpeg junit kde libwww lzw lzw-tiff mad maildir mbox mikmod mozcalendar mozilla mozsvg mp3 mpeg mysql mythtv nas ncurses nfsv4 nls nptl nvidia offensive ogg oggvorbis opengl oss pam pdflib perl png ppds python qt readline real ruby samba sasl sdl server slang speex spell sqlite ssl subtitles subversion svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xinerama xml xml2 xmms xpm xprint xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I re-emerged jpeg and then it compiled without a hitch. I'm not sure what happened to jpeg (revdep-rebuild didn't complain about it). It now works for me on x86. I also have an AMD64 machine that I haven't tried to emerge gwenview on, but I'll give it a shot later and see what happens. Should probably open a new bug for that since it's a different problem, I'm marking this one as invalid based on my original problem being a non-problem.