Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338298 - x11-libs/qt-gui-4.7.0: compile error in member function ‘QString QFont::defaultFamily() const’
Summary: x11-libs/qt-gui-4.7.0: compile error in member function ‘QString QFont::defau...
Status: RESOLVED DUPLICATE of bug 336801
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-21 20:08 UTC by Tassilo Horn
Modified: 2010-09-26 18:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (1285146903-install-x11-libs_qt-gui-4.7.0:4::gentoo.out,264.67 KB, text/plain)
2010-09-22 09:50 UTC, Jakub Caban
Details
The build log of the last emerge run with -egl and -pch (build.log,579.37 KB, text/plain)
2010-09-22 15:01 UTC, Tassilo Horn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tassilo Horn 2010-09-21 20:08:47 UTC
Emerging x11-libs/qt-gui-4.7.0 fails with:

x86_64-pc-linux-gnu-g++ -c -include .pch/release-shared/QtGui -march=native -O2 -pipe -fomit-frame-pointer -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qfontengine_x11.o text/qfontengine_x11.cpp
text/qfont_x11.cpp: In member function ‘QString QFont::defaultFamily() const’:
text/qfont_x11.cpp:284: error: ‘Monospace’ is not a member of ‘QFont’
text/qfont_x11.cpp:287: error: ‘Cursive’ is not a member of ‘QFont’
text/qfont_x11.cpp:290: error: ‘Fantasy’ is not a member of ‘QFont’
make: *** [.obj/release-shared/qfont_x11.o] Error 1
make: *** Waiting for unfinished jobs....
emake failed

# emerge -upv qt-gui
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] x11-libs/qt-gui-4.7.0 [4.7.0_rc1] USE="accessibility cups dbus egl* exceptions glib gtk mng pch* qt3support raster tiff xinerama (-aqua) -debug -nas -nis -private-headers -trace" 0 kB [?=>0]
...

Reproducible: Always




# emerge --info                                         /home/horn
Portage 2.2_rc85 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.12.1-r1, 2.6.36-rc4+ x86_64)
=================================================================
System uname: Linux-2.6.36-rc4+-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 21 Sep 2010 17:30:20 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FSF-APPROVED @OSI-APPROVED ANTLR freedist TeX LGPL-2 BitstreamVera BZIP2 FLEX FDL-1.1 LPPL-1.3c OFL libstdc++ GPL-2-with-linking-exception fontconfig sun-j2sl-6 popt Info-ZIP MOTIF adobe-ps libgcc gcc-runtime-library-exception-3.1 gsm nosell FDL-1.3 w3m LPPL-1.3 GPL-1 ZSH FDL-1.2 CRACKLIB DB OpenSoftware PAM tcp_wrappers_license Subversion POSTGRESQL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://64.50.236.52/ http://mirror.opteamax.de/gentoo/ http://ftp.gentoo.bg/ rsync://mirror.leaseweb.com/gentoo/ http://gentoo.mneisen.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/emacs /var/lib/layman/sunrise /var/lib/layman/kde /var/lib/layman/x11 /usr/local/overlays/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi akonadi alsa amd64 aspell avahi berkdb bluetooth branding bzip2 cairo caps cdda cdr cleartype cli consolekit cracklib crypt cups curl cxx dbus device-mapper dhcpcd djvu dri dts dvd dvdr dvi egl emacs emboss encode exif ffmpeg firefox flac fontconfig fontforge fortran fuse gallium gdbm gif gmp gnutls gpg gpm gs gstreamer gtk hal iconv idn imagemagick inotify ioctl ipv6 jpeg kde kpathsea lame laptop lastfm lcms ldap lzma mad mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib musicbrainz mysql nautilus ncurses networkmanager nls nptl nptlonly nsplugin ntp ogg opengl openmp openvg pam pango pch pcre pdf perl phonon png policykit ppds pppd pulseaudio python qt3support qt4 raw readline reflection samba schroedinger sdl semantic-desktop session slp smp sqlite sse sse2 ssh ssl ssse3 startup-notification svg sysfs syslog t1lib taglib tcpd theora threads tiff truetype udev unicode upnp usb vorbis webkit wifi x264 xcb xcomposite xft xine xinerama xml xmp xorg xpm xrandr xv xvid zeroconf zlib zsh-completion" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tassilo Horn 2010-09-21 21:02:41 UTC
When disabling the pch USE flag, the build errors with:

x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fomit-frame-pointer -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qeglproperties.o egl/qeglproperties.cpp
egl/qegl.cpp: In static member function ‘static void QEglContextTracker::deref()’:
egl/qegl.cpp:67: error: ‘eglTerminate’ was not declared in this scope
egl/qegl.cpp: In constructor ‘QEglContext::QEglContext()’:
egl/qegl.cpp:91: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:93: error: ‘EGL_NO_SURFACE’ was not declared in this scope
egl/qegl.cpp: In member function ‘bool QEglContext::isValid() const’:
egl/qegl.cpp:114: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp: In function ‘EGLConfig QEgl::defaultConfig(int, QEgl::API, QEgl::ConfigOptions)’:
egl/qegl.cpp:215: error: ‘EGL_CONFIG_ID’ was not declared in this scope
egl/qegl.cpp:219: error: ‘eglChooseConfig’ was not declared in this scope
egl/qegl.cpp:231: error: ‘EGL_WINDOW_BIT’ was not declared in this scope
egl/qegl.cpp:234: error: ‘EGL_PIXMAP_BIT’ was not declared in this scope
egl/qegl.cpp:237: error: ‘EGL_PBUFFER_BIT’ was not declared in this scope
egl/qegl.cpp:249: error: ‘EGL_SURFACE_TYPE’ was not declared in this scope
egl/qegl.cpp:263: error: ‘EGL_ALPHA_MASK_SIZE’ was not declared in this scope
egl/qegl.cpp:267: error: ‘EGL_STENCIL_SIZE’ was not declared in this scope
egl/qegl.cpp:268: error: ‘EGL_SAMPLE_BUFFERS’ was not declared in this scope
egl/qegl.cpp:271: error: ‘EGL_DEPTH_SIZE’ was not declared in this scope
egl/qegl.cpp:276: error: ‘EGL_ALPHA_SIZE’ was not declared in this scope
egl/qegl.cpp: In function ‘EGLConfig QEgl::chooseConfig(const QEglProperties*, QEgl::PixelFormatMatch)’:
egl/qegl.cpp:292: error: ‘eglChooseConfig’ was not declared in this scope
egl/qegl.cpp:298: error: ‘eglChooseConfig’ was not declared in this scope
egl/qegl.cpp:308: error: ‘eglChooseConfig’ was not declared in this scope
egl/qegl.cpp:311: error: ‘EGL_RED_SIZE’ was not declared in this scope
egl/qegl.cpp:311: error: ‘eglGetConfigAttrib’ was not declared in this scope
egl/qegl.cpp:312: error: ‘EGL_GREEN_SIZE’ was not declared in this scope
egl/qegl.cpp:313: error: ‘EGL_BLUE_SIZE’ was not declared in this scope
egl/qegl.cpp:314: error: ‘EGL_ALPHA_SIZE’ was not declared in this scope
egl/qegl.cpp: In member function ‘bool QEglContext::createContext(QEglContext*, const QEglProperties*)’:
egl/qegl.cpp:385: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:388: error: ‘eglCreateContext’ was not declared in this scope
egl/qegl.cpp:389: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:396: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:397: error: ‘eglCreateContext’ was not declared in this scope
egl/qegl.cpp: In member function ‘void QEglContext::destroySurface(EGLSurface)’:
egl/qegl.cpp:410: error: ‘EGL_NO_SURFACE’ was not declared in this scope
egl/qegl.cpp:413: error: ‘eglDestroySurface’ was not declared in this scope
egl/qegl.cpp: In member function ‘void QEglContext::destroyContext()’:
egl/qegl.cpp:420: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:421: error: ‘eglDestroyContext’ was not declared in this scope
egl/qegl.cpp:422: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp: In member function ‘bool QEglContext::makeCurrent(EGLSurface)’:
egl/qegl.cpp:428: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:433: error: ‘EGL_NO_SURFACE’ was not declared in this scope
egl/qegl.cpp:461: error: ‘eglMakeCurrent’ was not declared in this scope
egl/qegl.cpp: In member function ‘bool QEglContext::doneCurrent()’:
egl/qegl.cpp:471: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:475: error: ‘EGL_NO_SURFACE’ was not declared in this scope
egl/qegl.cpp:490: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:490: error: ‘eglMakeCurrent’ was not declared in this scope
egl/qegl.cpp: In member function ‘bool QEglContext::swapBuffers(EGLSurface)’:
egl/qegl.cpp:509: error: ‘EGL_NO_CONTEXT’ was not declared in this scope
egl/qegl.cpp:512: error: ‘eglSwapBuffers’ was not declared in this scope
egl/qegl.cpp: In member function ‘int QEglContext::configAttrib(int) const’:
egl/qegl.cpp:546: error: ‘eglGetConfigAttrib’ was not declared in this scope
egl/qegl.cpp:550: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qegl.cpp: In function ‘EGLDisplay QEgl::display()’:
egl/qegl.cpp:566: error: ‘EGL_NO_DISPLAY’ was not declared in this scope
egl/qegl.cpp:568: error: ‘eglGetDisplay’ was not declared in this scope
egl/qegl.cpp:572: error: ‘EGL_DEFAULT_DISPLAY’ was not declared in this scope
egl/qegl.cpp:579: error: ‘eglInitialize’ was not declared in this scope
egl/qegl.cpp:587: error: ‘eglGetProcAddress’ was not declared in this scope
egl/qegl.cpp:593: error: ‘eglGetProcAddress’ was not declared in this scope
egl/qegl.cpp: In function ‘void QEgl::dumpAllConfigs()’:
egl/qegl.cpp:712: error: ‘eglGetConfigs’ was not declared in this scope
egl/qegl.cpp:715: error: ‘eglGetConfigs’ was not declared in this scope
egl/qegl.cpp: In function ‘QString QEgl::extensions()’:
egl/qegl.cpp:725: error: ‘EGL_EXTENSIONS’ was not declared in this scope
egl/qegl.cpp:725: error: ‘eglQueryString’ was not declared in this scope
egl/qegl.cpp: In function ‘bool QEgl::hasExtension(const char*)’:
egl/qegl.cpp:733: error: ‘EGL_EXTENSIONS’ was not declared in this scope
egl/qegl.cpp:733: error: ‘eglQueryString’ was not declared in this scope
make: *** [.obj/release-shared/qegl.o] Error 1
make: *** Waiting for unfinished jobs....
egl/qeglproperties.cpp: In constructor ‘QEglProperties::QEglProperties(EGLConfig)’:
egl/qeglproperties.cpp:61: error: ‘eglGetConfigAttrib’ was not declared in this scope
egl/qeglproperties.cpp:64: error: ‘eglGetError’ was not declared in this scope
egl/qeglproperties.cpp: In member function ‘int QEglProperties::value(int) const’:
egl/qeglproperties.cpp:78: error: ‘EGL_BUFFER_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:79: error: ‘EGL_RED_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:80: error: ‘EGL_GREEN_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:81: error: ‘EGL_BLUE_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:82: error: ‘EGL_ALPHA_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:98: error: ‘EGL_CONFIG_CAVEAT’ was not declared in this scope
egl/qeglproperties.cpp:98: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:99: error: ‘EGL_CONFIG_ID’ was not declared in this scope
egl/qeglproperties.cpp:100: error: ‘EGL_DEPTH_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:101: error: ‘EGL_LEVEL’ was not declared in this scope
egl/qeglproperties.cpp:102: error: ‘EGL_NATIVE_RENDERABLE’ was not declared in this scope
egl/qeglproperties.cpp:103: error: ‘EGL_NATIVE_VISUAL_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:104: error: ‘EGL_MAX_SWAP_INTERVAL’ was not declared in this scope
egl/qeglproperties.cpp:105: error: ‘EGL_MIN_SWAP_INTERVAL’ was not declared in this scope
egl/qeglproperties.cpp:109: error: ‘EGL_SAMPLE_BUFFERS’ was not declared in this scope
egl/qeglproperties.cpp:110: error: ‘EGL_SAMPLES’ was not declared in this scope
egl/qeglproperties.cpp:111: error: ‘EGL_STENCIL_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:112: error: ‘EGL_SURFACE_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:112: error: ‘EGL_WINDOW_BIT’ was not declared in this scope
egl/qeglproperties.cpp:113: error: ‘EGL_TRANSPARENT_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:114: error: ‘EGL_TRANSPARENT_RED_VALUE’ was not declared in this scope
egl/qeglproperties.cpp:115: error: ‘EGL_TRANSPARENT_GREEN_VALUE’ was not declared in this scope
egl/qeglproperties.cpp:116: error: ‘EGL_TRANSPARENT_BLUE_VALUE’ was not declared in this scope
egl/qeglproperties.cpp:123: error: ‘EGL_MAX_PBUFFER_HEIGHT’ was not declared in this scope
egl/qeglproperties.cpp:124: error: ‘EGL_MAX_PBUFFER_WIDTH’ was not declared in this scope
egl/qeglproperties.cpp:125: error: ‘EGL_MAX_PBUFFER_PIXELS’ was not declared in this scope
egl/qeglproperties.cpp:126: error: ‘EGL_NATIVE_VISUAL_ID’ was not declared in this scope
egl/qeglproperties.cpp: In member function ‘void QEglProperties::setDeviceType(int)’:
egl/qeglproperties.cpp:170: error: ‘EGL_SURFACE_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:170: error: ‘EGL_PIXMAP_BIT’ was not declared in this scope
egl/qeglproperties.cpp:172: error: ‘EGL_SURFACE_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:172: error: ‘EGL_PBUFFER_BIT’ was not declared in this scope
egl/qeglproperties.cpp:174: error: ‘EGL_SURFACE_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:174: error: ‘EGL_WINDOW_BIT’ was not declared in this scope
egl/qeglproperties.cpp: In member function ‘void QEglProperties::setPixelFormat(QImage::Format)’:
egl/qeglproperties.cpp:210: error: ‘EGL_RED_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:211: error: ‘EGL_GREEN_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:212: error: ‘EGL_BLUE_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:213: error: ‘EGL_ALPHA_SIZE’ was not declared in this scope
egl/qeglproperties.cpp: In member function ‘bool QEglProperties::reduceConfiguration()’:
egl/qeglproperties.cpp:244: error: ‘EGL_SWAP_BEHAVIOR’ was not declared in this scope
egl/qeglproperties.cpp:244: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:262: error: ‘EGL_BUFFER_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:266: error: ‘EGL_SAMPLE_BUFFERS’ was not declared in this scope
egl/qeglproperties.cpp:267: error: ‘EGL_SAMPLES’ was not declared in this scope
egl/qeglproperties.cpp:270: error: ‘EGL_ALPHA_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:277: error: ‘EGL_STENCIL_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:279: error: ‘EGL_DEPTH_SIZE’ was not declared in this scope
egl/qeglproperties.cpp: In member function ‘QString QEglProperties::toString() const’:
egl/qeglproperties.cpp:304: error: ‘EGL_CONFIG_ID’ was not declared in this scope
egl/qeglproperties.cpp:305: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:338: error: ‘EGL_RED_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:339: error: ‘EGL_GREEN_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:340: error: ‘EGL_BLUE_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:341: error: ‘EGL_ALPHA_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:342: error: ‘EGL_BUFFER_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:369: error: ‘EGL_DEPTH_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:375: error: ‘EGL_STENCIL_SIZE’ was not declared in this scope
egl/qeglproperties.cpp:381: error: ‘EGL_SURFACE_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:382: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:385: error: ‘EGL_WINDOW_BIT’ was not declared in this scope
egl/qeglproperties.cpp:387: error: ‘EGL_PIXMAP_BIT’ was not declared in this scope
egl/qeglproperties.cpp:389: error: ‘EGL_PBUFFER_BIT’ was not declared in this scope
egl/qeglproperties.cpp:399: error: ‘EGL_WINDOW_BIT’ was not declared in this scope
egl/qeglproperties.cpp:399: error: ‘EGL_PIXMAP_BIT’ was not declared in this scope
egl/qeglproperties.cpp:399: error: ‘EGL_PBUFFER_BIT’ was not declared in this scope
egl/qeglproperties.cpp:412: error: ‘EGL_CONFIG_CAVEAT’ was not declared in this scope
egl/qeglproperties.cpp:413: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:417: error: ‘EGL_SLOW_CONFIG’ was not declared in this scope
egl/qeglproperties.cpp:419: error: ‘EGL_NON_CONFORMANT_CONFIG’ was not declared in this scope
egl/qeglproperties.cpp:425: error: ‘EGL_LEVEL’ was not declared in this scope
egl/qeglproperties.cpp:432: error: ‘EGL_MAX_PBUFFER_WIDTH’ was not declared in this scope
egl/qeglproperties.cpp:433: error: ‘EGL_MAX_PBUFFER_HEIGHT’ was not declared in this scope
egl/qeglproperties.cpp:434: error: ‘EGL_MAX_PBUFFER_PIXELS’ was not declared in this scope
egl/qeglproperties.cpp:435: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:446: error: ‘EGL_NATIVE_RENDERABLE’ was not declared in this scope
egl/qeglproperties.cpp:447: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:454: error: ‘EGL_NATIVE_VISUAL_ID’ was not declared in this scope
egl/qeglproperties.cpp:455: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:460: error: ‘EGL_NATIVE_VISUAL_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:461: error: ‘EGL_DONT_CARE’ was not declared in this scope
egl/qeglproperties.cpp:476: error: ‘EGL_SAMPLES’ was not declared in this scope
egl/qeglproperties.cpp:482: error: ‘EGL_SAMPLE_BUFFERS’ was not declared in this scope
egl/qeglproperties.cpp:488: error: ‘EGL_TRANSPARENT_TYPE’ was not declared in this scope
egl/qeglproperties.cpp:489: error: ‘EGL_TRANSPARENT_RGB’ was not declared in this scope
egl/qeglproperties.cpp:491: error: ‘EGL_TRANSPARENT_RED_VALUE’ was not declared in this scope
egl/qeglproperties.cpp:493: error: ‘EGL_TRANSPARENT_GREEN_VALUE’ was not declared in this scope
egl/qeglproperties.cpp:495: error: ‘EGL_TRANSPARENT_BLUE_VALUE’ was not declared in this scope
make: *** [.obj/release-shared/qeglproperties.o] Error 1
emake failed

I'm going to try without egl now...
Comment 2 Tassilo Horn 2010-09-22 05:00:13 UTC
Even with -egl and -pch it fails:

x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fomit-frame-pointer -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/moc_qgtkstyle_p.o .moc/release-shared/moc_qgtkstyle_p.cpp
.moc/release-shared/moc_qgtkstyle_p.cpp:12:2: error: #error "The header file 'qgtkstyle_p.h' doesn't include <QObject>."
.moc/release-shared/moc_qgtkstyle_p.cpp:43: error: ‘QMetaObject’ does not name a type
.moc/release-shared/moc_qgtkstyle_p.cpp:52: error: expected initializer before ‘*’ token
.moc/release-shared/moc_qgtkstyle_p.cpp:57: error: ‘QGtkStyleUpdateScheduler’ has not been declared
.moc/release-shared/moc_qgtkstyle_p.cpp: In function ‘void* qt_metacast(const char*)’:
.moc/release-shared/moc_qgtkstyle_p.cpp:60: error: ‘strcmp’ was not declared in this scope
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: expected type-specifier before ‘QGtkStyleUpdateScheduler’
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: expected ‘>’ before ‘QGtkStyleUpdateScheduler’
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: expected ‘(’ before ‘QGtkStyleUpdateScheduler’
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: ‘QGtkStyleUpdateScheduler’ was not declared in this scope
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: expected primary-expression before ‘>’ token
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: invalid use of ‘this’ in non-member function
.moc/release-shared/moc_qgtkstyle_p.cpp:61: error: expected ‘)’ before ‘;’ token
.moc/release-shared/moc_qgtkstyle_p.cpp:62: error: ‘QObject’ has not been declared
.moc/release-shared/moc_qgtkstyle_p.cpp: At global scope:
.moc/release-shared/moc_qgtkstyle_p.cpp:65: error: ‘QGtkStyleUpdateScheduler’ has not been declared
.moc/release-shared/moc_qgtkstyle_p.cpp:65: error: ‘QMetaObject’ has not been declared
.moc/release-shared/moc_qgtkstyle_p.cpp:65: error: expected primary-expression before ‘int’
.moc/release-shared/moc_qgtkstyle_p.cpp:65: error: expected primary-expression before ‘void’
.moc/release-shared/moc_qgtkstyle_p.cpp:65: error: initializer expression list treated as compound expression
.moc/release-shared/moc_qgtkstyle_p.cpp:66: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [.obj/release-shared/moc_qgtkstyle_p.o] Error 1
make: *** Waiting for unfinished jobs....
.moc/release-shared/moc_qgtkstyle.cpp:48: error: ‘QGtkStyle’ has not been declared
.moc/release-shared/moc_qgtkstyle.cpp:57: error: ‘QGtkStyle’ has not been declared
.moc/release-shared/moc_qgtkstyle.cpp:57: error: non-member function ‘const QMetaObject* metaObject()’ cannot have cv-qualifier
/usr/include/qt4/QtCore/qobject.h: In function ‘const QMetaObject* metaObject()’:
/usr/include/qt4/QtCore/qobject.h:296: error: ‘QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > QObject::d_ptr’ is protected
.moc/release-shared/moc_qgtkstyle.cpp:59: error: within this context
/usr/include/qt4/QtCore/qobject.h:296: error: invalid use of non-static data member ‘QObject::d_ptr’
.moc/release-shared/moc_qgtkstyle.cpp:59: error: from this location
/usr/include/qt4/QtCore/qobject.h:296: error: ‘QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > QObject::d_ptr’ is protected
.moc/release-shared/moc_qgtkstyle.cpp:59: error: within this context
/usr/include/qt4/QtCore/qobject.h:296: error: invalid use of non-static data member ‘QObject::d_ptr’
.moc/release-shared/moc_qgtkstyle.cpp:59: error: from this location
.moc/release-shared/moc_qgtkstyle.cpp: At global scope:
.moc/release-shared/moc_qgtkstyle.cpp:62: error: ‘QGtkStyle’ has not been declared
.moc/release-shared/moc_qgtkstyle.cpp: In function ‘void* qt_metacast(const char*)’:
.moc/release-shared/moc_qgtkstyle.cpp:66: error: expected type-specifier before ‘QGtkStyle’
.moc/release-shared/moc_qgtkstyle.cpp:66: error: expected ‘>’ before ‘QGtkStyle’
.moc/release-shared/moc_qgtkstyle.cpp:66: error: expected ‘(’ before ‘QGtkStyle’
.moc/release-shared/moc_qgtkstyle.cpp:66: error: ‘QGtkStyle’ was not declared in this scope
.moc/release-shared/moc_qgtkstyle.cpp:66: error: expected primary-expression before ‘>’ token
.moc/release-shared/moc_qgtkstyle.cpp:66: error: invalid use of ‘this’ in non-member function
.moc/release-shared/moc_qgtkstyle.cpp:66: error: expected ‘)’ before ‘;’ token
.moc/release-shared/moc_qgtkstyle.cpp:67: error: cannot call member function ‘virtual void* QCleanlooksStyle::qt_metacast(const char*)’ without object
.moc/release-shared/moc_qgtkstyle.cpp: At global scope:
.moc/release-shared/moc_qgtkstyle.cpp:70: error: ‘QGtkStyle’ has not been declared
.moc/release-shared/moc_qgtkstyle.cpp: In function ‘int qt_metacall(QMetaObject::Call, int, void**)’:
.moc/release-shared/moc_qgtkstyle.cpp:72: error: cannot call member function ‘virtual int QCleanlooksStyle::qt_metacall(QMetaObject::Call, int, void**)’ without object
.moc/release-shared/moc_qgtkstyle.cpp:77: error: expected type-specifier before ‘StandardPixmap’
.moc/release-shared/moc_qgtkstyle.cpp:77: error: expected ‘>’ before ‘StandardPixmap’
.moc/release-shared/moc_qgtkstyle.cpp:77: error: expected ‘(’ before ‘StandardPixmap’
.moc/release-shared/moc_qgtkstyle.cpp:77: error: expected primary-expression before ‘)’ token
.moc/release-shared/moc_qgtkstyle.cpp:77: error: ‘StandardPixmap’ was not declared in this scope
.moc/release-shared/moc_qgtkstyle.cpp:79: error: expected type-specifier before ‘StandardPixmap’
.moc/release-shared/moc_qgtkstyle.cpp:79: error: expected ‘>’ before ‘StandardPixmap’
.moc/release-shared/moc_qgtkstyle.cpp:79: error: expected ‘(’ before ‘StandardPixmap’
.moc/release-shared/moc_qgtkstyle.cpp:79: error: expected primary-expression before ‘)’ token
.moc/release-shared/moc_qgtkstyle.cpp:79: error: ‘StandardPixmap’ was not declared in this scope
make: *** [.obj/release-shared/moc_qgtkstyle.o] Error 1
emake failed
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-09-22 08:03:57 UTC
Attach a full build.log please
Comment 4 Jakub Caban 2010-09-22 09:50:35 UTC
Created attachment 248340 [details]
Build log

~amd64 build log fail here

Package Manager Information:
    Package Name              paludis
    Package Version           0.54.3
    Build Date                2010-09-20T03:45:32+0200
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.5.1
    Built with CXXFLAGS        -march=k8 -msse3 -O2 -pipe -fomit-frame-pointer -pedantic
    Built with LDFLAGS        -Wl,-O1 -Wl,--as-needed -Wl,-O2

Environment Information:
    Format                    paludis
    Config dir                /etc/paludis
    Root                      /
    World file                /var/db/pkg/world

Repository layman:
    format                    unavailable
    location                  /var/db/paludis/repositories/layman
    sync                      tar+http://git.exherbo.org/layman_repositories.tar.bz2
    sync_options              

Repository installed-virtuals:
    format                    installed_virtuals
    root                      /

Repository virtuals:
    format                    virtuals

Repository gentoo:
    format                    e
    location                  /usr/portage
    builddir                  /var/tmp/paludis
    cache                     /usr/portage/metadata/cache
    distdir                   /usr/portage/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /usr/portage/eclass
    layout                    traditional
    names_cache               /usr/portage/.cache/names
    newsdir                   /usr/portage/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /usr/portage/profiles/default/linux/amd64/10.0/desktop/kde
    securitydir               /usr/portage/metadata/glsa
    setsdir                   /usr/portage/sets
    sync                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options              
    use_manifest              use
    write_cache               /var/cache/paludis/metadata
    Package information
        app-admin/eselect-compiler (none)
        app-shells/bash       4.1_p7
        dev-java/java-config  2.1.11
        dev-lang/python       2.6.5-r3 3.1.2-r4
        dev-util/ccache       2.4-r8
        dev-util/cmake        2.8.1-r2
        dev-util/confcache    (none)
        sys-apps/baselayout   2.0.1
        sys-apps/openrc       0.6.3
        sys-apps/sandbox      2.3-r1
        sys-devel/autoconf    2.13 2.67
        sys-devel/automake    1.10.3 1.11.1 1.8.5-r4 1.9.6-r3
        sys-devel/binutils    2.20.1-r1
        sys-devel/gcc         4.5.1
        sys-devel/gcc-config  1.4.1
        sys-devel/libtool     2.2.10
        sys-devel/make        3.81-r2
        virtual/os-headers    2.6.35 (for sys-kernel/linux-headers::installed)
Comment 5 Jakub Caban 2010-09-22 09:52:34 UTC
USE FLAGS:

accessibility (-aqua) cups dbus -debug -egl exceptions glib gtk mng -nas -nis pch -private-headers qt3support raster tiff -trace -xinerama build_options: -optional_tests split strip -trace -preserve_work
Comment 6 Tassilo Horn 2010-09-22 15:01:49 UTC
Created attachment 248365 [details]
The build log of the last emerge run with -egl and -pch
Comment 7 Jakub Caban 2010-09-23 18:16:15 UTC
Compiled fine after recompiling cairo with [-qt4]
Comment 8 Tassilo Horn 2010-09-26 16:24:38 UTC
(In reply to comment #7)
> Compiled fine after recompiling cairo with [-qt4]

Yes, that also works here.
Comment 9 Davide Pesavento gentoo-dev 2010-09-26 18:54:39 UTC

*** This bug has been marked as a duplicate of bug 336801 ***