Compiling qt-3.3.8-r4 fails due to a name clash with xorg-server-1.4.0.90-r3. I could resolve the problem by adding -DQT_CLEAN_NAMESPACE to the configure call in the qt ebuild file. Error Output: ... D_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qtaddons_x11.o kernel/qtaddons_x11.cpp /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/moc kernel/qapplication_x11.cpp -o .moc/release-shared-mt/qapplication_x11.moc i686-pc-linux-gnu-g++ -c -pipe -fno-exceptions -Wall -W -O2 -march=prescott -pipe -fno-strict-aliasing -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qclipboard_x11.o kernel/qclipboard_x11.cpp i686-pc-linux-gnu-g++ -c -pipe -fno-exceptions -Wall -W -O2 -march=prescott -pipe -fno-strict-aliasing -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qcolor_x11.o kernel/qcolor_x11.cpp /usr/include/X11/Xmd.h:137: error: conflicting declaration 'typedef long int INT32' ../include/qglobal.h:706: error: 'INT32' has a previous declaration as 'typedef int INT32' make[1]: *** [.obj/release-shared-mt/qtaddons_x11.o] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/include/X11/Xmd.h:137: error: conflicting declaration 'typedef long int INT32' ../include/qglobal.h:706: error: 'INT32' has a previous declaration as 'typedef int INT32' /usr/include/X11/Xmd.h:137: error: conflicting declaration 'typedef long int INT32' ../include/qglobal.h:706: error: 'INT32' has a previous declaration as 'typedef int INT32' make[1]: *** [.obj/release-shared-mt/qcolor_x11.o] Error 1 make[1]: *** [.obj/release-shared-mt/qclipboard_x11.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/src' make: *** [sub-src] Error 2 * * ERROR: x11-libs/qt-3.3.8-r4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2430: Called die * The specific snippet of code: * emake src-qmake src-moc sub-src || die; * The die message: * (no error message) * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-3.3.8-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-3.3.8-r4/temp/environment'. * * Messages for package x11-libs/qt-3.3.8-r4: * * ERROR: x11-libs/qt-3.3.8-r4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2430: Called die * The specific snippet of code: * emake src-qmake src-moc sub-src || die; * The die message: * (no error message) * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-3.3.8-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-3.3.8-r4/temp/environment'. * Reproducible: Always Steps to Reproduce: 1. install xorg-server-1.4.0.90-r3 2. emerge =qt-3.3.8-r3 3. Actual Results: compiling qt fails and so also KDE cannot be installed/updated The Qt define QT_CLEAN_NAMESPACE fixes the problem.
*** This bug has been marked as a duplicate of bug 213052 ***