This doesn't seem like the same issue as bug 37312. My best guess is that it's an issue with the version of qt I have installed? I have qt-4.1.2 with USE="cups gif jpeg opengl png zlib" I've tried re-emerging both emilia-pinball and emilia-pinedit, and keep getting this same error. Here are the relevant lines from the compile: i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libltdl -I/usr/qt/3/include -O2 -pipe -fomit-frame-pointer -march=pentium4 -I/usr/include/SDL -D_REENTRANT -I/usr/include/pinball -c -o moc_glengine.o `test -f 'moc_glengine.cpp' || echo './'`moc_glengine.cpp moc_glengine.cpp:12:2: #error "The header file 'glengine.h' doesn't include <QObject>." moc_glengine.cpp:36: error: `const QMetaObject GLEngine::staticMetaObject' is not a static member of `class GLEngine' moc_glengine.cpp:36: error: variable `const QMetaObject GLEngine::staticMetaObject' has initializer but incomplete type moc_glengine.cpp:42: error: prototype for `const QMetaObject* GLEngine::metaObject() const' does not match any in class `GLEngine' glengine.h:34: error: candidate is: virtual QMetaObject* GLEngine::metaObject() const moc_glengine.cpp:42: error: `const QMetaObject* GLEngine::metaObject() const' and `virtual QMetaObject* GLEngine::metaObject() const' cannot be overloaded moc_glengine.cpp: In member function `const QMetaObject* GLEngine::metaObject() const': moc_glengine.cpp:43: error: cannot convert `QMetaObject*(*)()' to `const QMetaObject*' in return moc_glengine.cpp: At global scope: moc_glengine.cpp:47: error: no `void* GLEngine::qt_metacast(const char*)' member function declared in class `GLEngine' moc_glengine.cpp: In member function `void* GLEngine::qt_metacast(const char*)': moc_glengine.cpp:53: error: `qt_metacast' is not a member of `QGLWidget' moc_glengine.cpp: At global scope: moc_glengine.cpp:56: error: `int GLEngine::qt_metacall' is not a static member of `class GLEngine' moc_glengine.cpp:56: error: incomplete type `QMetaObject' used in nested name specifier moc_glengine.cpp:56: error: expected primary-expression before "int" moc_glengine.cpp:56: error: expected primary-expression before "void" moc_glengine.cpp:57: error: initializer expression list treated as compound expression moc_glengine.cpp:57: error: expected `,' or `;' before '{' token make[2]: *** [moc_glengine.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/emilia-pinedit-0.3.1/work/pinedit-0.3.1/pinedit' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/emilia-pinedit-0.3.1/work/pinedit-0.3.1' make: *** [all] Error 2 % emerge --info Portage 2.1.1_pre1-r4 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6. 16-gentoo-r13 i686) ================================================================= System uname: 2.6.16-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable d] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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-r1 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.12-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium4" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shu tdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms / /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/ distributions/gentoo" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/java-experimental /usr/portage/local/layman/java-migration-packages /usr/portage/local/layman/sunr ise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr cli crypt css cups dlloader dri dvd dvdr dvdread eds emacs emboss encode esd ethereal foomatic db fortran gdbm gif gpm gstreamer gtk2 ieee1394 imlib ipv6 isdnlog jack java jpe g kde libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nsplugin ogg opengl oss pam pcmcia pcre pdflib perl png pppd python qt qt3 qt4 quicktime read line reflection sdl session smp spell spl sse sse2 ssl tcpd truetype truetype-fo nts type1-fonts udev vorbis win32codecs xml xmms xorg xv zlib elibc_glibc input_ devices_keyboard input_devices_mouse input_devices_evdev input_devices_synaptics kernel_linux lirc_devices_sir userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU AS, PORTAGE_RSYNC_EXTRA_OPTS
It needs qt3. Doesn't work with qt4.
Fixed, thanks. Added RESTRICT="userpriv" as well because it needs libs from GAMES_LIBDIR.