Summary: | >=x11-libs/qt-gui-4.8.1 compile fails with error: 'ShapeInput' was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tobias Weber <tobiw> |
Component: | [OLD] Library | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
compiler output as requested qdnd_x11.ii
content of /usr/include/qt4/Gentoo/ build.log |
Description
Tobias Weber
2012-06-14 17:12:09 UTC
used kernel sources are gentoo 3.2.12 Do you have x11-proto/xextproto installed? And which version? Yes this is installed: x11-proto/xextproto-7.2.0 Many thanks for your help! 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. 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
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. Please attach your /usr/include/qt4/Gentoo/gentoo-qconfig.h I suspect QT_SHAPE is not defined. You're right. cat gentoo-qconfig.h #define QT_ZLIB #define QT_DBUS #define QT_SCRIPT 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. Created attachment 315677 [details]
content of /usr/include/qt4/Gentoo/
mmm for some unknown reason gentoo-qt-gui-qconfig.h has not been installed. What's the output of `qlist qt-gui`? Attach also the full build.log please. 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.
let me know if you have something to test. The system runs Qt-4.7 for the time being. This makes no sense... please try upgrading again and see if it's reproducible. 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' 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 Still reproducible with Qt 4.8.2? 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 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. |