Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421133 - >=x11-libs/qt-gui-4.8.1 compile fails with error: 'ShapeInput' was not declared in this scope
Summary: >=x11-libs/qt-gui-4.8.1 compile fails with error: 'ShapeInput' was not declar...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-14 17:12 UTC by Tobias Weber
Modified: 2013-01-27 00:47 UTC (History)
0 users

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


Attachments
compiler output as requested qdnd_x11.ii (qdnd_x11.ii.gz,344.08 KB, application/x-gzip-compressed)
2012-06-18 13:39 UTC, Tobias Weber
Details
content of /usr/include/qt4/Gentoo/ (qt4stuff.tar.bz2,330 bytes, application/octet-stream)
2012-06-18 15:04 UTC, Tobias Weber
Details
build.log (build.log,561.79 KB, text/plain)
2012-06-18 20:55 UTC, Tobias Weber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Weber 2012-06-14 17:12:09 UTC
While upgrading 'world' emerge x11-libs/qt-gui-4.8.1-r1 fails because of missing 'ShapeInput' definition.

I did not find any work-arounds...

build.log:

i686-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fomit-frame-pointer -fpermissive -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -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_QSTRINGBUILDER -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 -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -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/qdnd_x11.o kernel/qdnd_x11.cpp
kernel/qapplication_x11.cpp: In function 'void qt_init(QApplicationPrivate*, int, Display*, Qt::HANDLE, Qt::HANDLE)':
kernel/qapplication_x11.cpp:2154:39: warning: invalid conversion from 'int (*)(XDeviceInfo*)' to 'void (*)(XDeviceInfo*)'
kernel/qdnd_x11.cpp: In function 'Window findRealWindow(const QPoint&, Window, int)':
kernel/qdnd_x11.cpp:1468:79: error: 'ShapeInput' was not declared in this scope
make: *** [.obj/release-shared/qdnd_x11.o] Error 1
make: *** Waiting for unfinished jobs....
kernel/qapplication_x11.cpp: At global scope:
kernel/qapplication_x11.cpp:470:14: warning: 'void* qt_load_library_runtime(const char*, int, int, const char*)' defined but not used
 * ERROR: x11-libs/qt-gui-4.8.1-r1 failed (compile phase):
 *   emake failed


emerge --info:

ortage 2.1.10.49 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.12-i686-Intel-R-_Pentium-R-_D_CPU_3.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 14 Jun 2012 07:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: embedded-cross gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de_DE"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/embedded-cross /usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa aoss asf avi beagle berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus device-mapper divx dri dts dv dvd dvdr dvdread eds emboss encode evo exif extensions extras fam fame firefox flac fortran gdbm gdu gif glitz gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv java jpeg kdrive kerberos lcms ldap libnotify mad mjpeg mng modules mono mp3 mp4 mpeg mudflap nautilus nautlius ncurses new-login nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio python qt3support qt4 quicktime readline sdl session snmp socialweb spell sqlite ssl startup-notification static-libs subtitles svg symlink tcpd threads tiff toolbar truetype udev udisks unicode upower usb vidix vorbis win32codecs winbind wxwidgets x264 x86 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de_DE" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tobias Weber 2012-06-14 17:14:27 UTC
used kernel sources are gentoo 3.2.12
Comment 2 Davide Pesavento gentoo-dev 2012-06-18 10:52:32 UTC
Do you have x11-proto/xextproto installed?
Comment 3 Davide Pesavento gentoo-dev 2012-06-18 10:54:36 UTC
And which version?
Comment 4 Tobias Weber 2012-06-18 11:40:34 UTC
Yes this is installed:

x11-proto/xextproto-7.2.0

Many thanks for your help!
Comment 5 Davide Pesavento gentoo-dev 2012-06-18 12:58:28 UTC
After emerge fails, cd to /var/tmp/portage/x11-libs/qt-gui-4.8.1-r1/work/qt-everywhere-opensource-src-4.8.1/src/gui/, then run the following command:

i686-pc-linux-gnu-g++ -E -march=native -O2 -pipe -fomit-frame-pointer -fpermissive -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -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_QSTRINGBUILDER -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 -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -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 kernel/qdnd_x11.cpp > qdnd_x11.ii

and attach the resulting qdnd_x11.ii file.
Comment 6 Tobias Weber 2012-06-18 13:39:12 UTC
Created attachment 315669 [details]
compiler output as requested  qdnd_x11.ii

output of: 

i686-pc-linux-gnu-g++ -E -march=native -O2 -pipe -fomit-frame-pointer -fpermissive -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -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_QSTRINGBUILDER -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 -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -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 kernel/qdnd_x11.cpp
Comment 7 Tobias Weber 2012-06-18 13:47:47 UTC
sorry, attachment had from MIME type plain/text instead of application/x-gzip.
the whole output was more than 1000MB so I needed to compress it with gzip.
Comment 8 Davide Pesavento gentoo-dev 2012-06-18 14:20:07 UTC
Please attach your /usr/include/qt4/Gentoo/gentoo-qconfig.h
I suspect QT_SHAPE is not defined.
Comment 9 Tobias Weber 2012-06-18 14:23:18 UTC
You're right. 

cat gentoo-qconfig.h

#define QT_ZLIB
#define QT_DBUS
#define QT_SCRIPT
Comment 10 Davide Pesavento gentoo-dev 2012-06-18 14:46:31 UTC
Ok, I believe the root cause is the same as bug 413789. I need your help to debug this. Create a tarball of the whole dir /usr/include/qt4/Gentoo/ and attach it here please.
Comment 11 Tobias Weber 2012-06-18 15:04:17 UTC
Created attachment 315677 [details]
content of /usr/include/qt4/Gentoo/
Comment 12 Davide Pesavento gentoo-dev 2012-06-18 17:57:35 UTC
mmm for some unknown reason gentoo-qt-gui-qconfig.h has not been installed.
What's the output of `qlist qt-gui`?
Comment 13 Davide Pesavento gentoo-dev 2012-06-18 20:04:07 UTC
Attach also the full build.log please.
Comment 14 Tobias Weber 2012-06-18 20:55:51 UTC
Created attachment 315713 [details]
build.log

Here's the build.log.

There is no output of `qlist qt-gui` because there is no qt-gui installed on this system. Before that, 4.7 was installed. I removed Qt-4.7 just to try out if this was the problem. I hade the same bug when 4.7 was installed.
Comment 15 Tobias Weber 2012-06-21 11:46:36 UTC
let me know if you have something to test. The system runs Qt-4.7 for the time being.
Comment 16 Davide Pesavento gentoo-dev 2012-07-04 13:40:53 UTC
This makes no sense... please try upgrading again and see if it's reproducible.
Comment 17 Tobias Weber 2012-07-09 08:49:08 UTC
Hi! just tried again upgrading from 4.7 to 4.8.1, but with the current --sync I get this error when updating (seems to be a temporary portage bug)

!!! A file is not listed in the Manifest: '/usr/portage/x11-libs/qt-qt3support/files/4.8.2-qatomic-x32.patch'
Comment 18 Tobias Weber 2012-07-09 16:54:50 UTC
Tried it a minute ago. This bug is still reproducible here: 

kernel/qdnd_x11.cpp:1468:79: error: 'ShapeInput' was not declared in this scope
Comment 19 Davide Pesavento gentoo-dev 2012-08-18 23:07:37 UTC
Still reproducible with Qt 4.8.2?
Comment 20 Tobias Weber 2012-08-20 08:53:39 UTC
Just downloaded the current sources today and again:


i686-pc-linux-gnu-g++ -c -march=native -O2 -pipe -fomit-frame-pointer -fpermissive -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -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_QSTRINGBUILDER -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 -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -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/qdnd_x11.o kernel/qdnd_x11.cpp
kernel/qapplication_x11.cpp: In function 'void qt_init(QApplicationPrivate*, int, Display*, Qt::HANDLE, Qt::HANDLE)':
kernel/qapplication_x11.cpp:2154:39: warning: invalid conversion from 'int (*)(XDeviceInfo*)' to 'void (*)(XDeviceInfo*)'
kernel/qdnd_x11.cpp: In function 'Window findRealWindow(const QPoint&, Window, int)':
kernel/qdnd_x11.cpp:1469:79: error: 'ShapeInput' was not declared in this scope
make: *** [.obj/release-shared/qdnd_x11.o] Error 1
make: *** Waiting for unfinished jobs....
kernel/qapplication_x11.cpp: At global scope:
kernel/qapplication_x11.cpp:470:14: warning: 'void* qt_load_library_runtime(const char*, int, int, const char*)' defined but not used
 * ERROR: x11-libs/qt-gui-4.8.2 failed (compile phase):
 *   emake failed
Comment 21 Davide Pesavento gentoo-dev 2013-01-02 01:30:15 UTC
This might be related to bug 449362, which was just fixed, so please try to emerge --sync in a couple of hours and rebuild qt-gui.