Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361277 - x11-libs/qt-gui-4.7.2: takes -I/usr/include/qt4/QtGui but shouldn't
Summary: x11-libs/qt-gui-4.7.2: takes -I/usr/include/qt4/QtGui but shouldn't
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Qt Bug Alias
Depends on:
Reported: 2011-03-30 11:57 UTC by Serg Truf
Modified: 2011-04-14 22:00 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Serg Truf 2011-03-30 11:57:23 UTC
There is already sed command for removing -I/usr/include/qt4/

118: sed "s:-I/usr/include/qt4 ::" -i src/gui/Makefile 
but during comilation he uses system includes (-I/usr/include/qt4/QtGui)


>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-libs/qt-gui-4.7.2/work/qt-everywhere-opensource-src-4.7.2 ...
make -j3 CC=i686-pc-linux-gnu-gcc CXX=i686-pc-linux-gnu-g++ LINK=i686-pc-linux-gnu-g++ 
uic dialogs/qprintsettingsoutput.ui
uic dialogs/qpagesetupwidget.ui
uic dialogs/qprintwidget.ui
uic dialogs/qfiledialog.ui
i686-pc-linux-gnu-g++ -O2 -march=pentium4 -fforce-addr -fomit-frame-pointer -pipe -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 -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -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_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 -x c++-header -c kernel/qt_gui_pch.h -o .pch/re

my workaround is to move /usr/include/qt4 to another place

Reproducible: Always

Steps to Reproduce:
1. emerge -av --sync
2. emerge -av @qt-all-4.7
Comment 1 Johannes Rauh 2011-04-11 19:03:30 UTC
I also had this problem.  As a result, qt-gui did not emerge when moving from 4.6.3 to 4.7.2.  The workaround did work for me.

I quote the error messages; maybe it helps someone else to find this bug:

In file included from ../../include/QtGui/private/qpaintengineex_p.h:1,
                 from image/qpixmapfilter.cpp:53:
../../include/QtGui/private/../../../src/gui/painting/qpaintengineex_p.h:200: Fehler: expected unqualified-id before »*« token
../../include/QtGui/private/../../../src/gui/painting/qpaintengineex_p.h:200: Fehler: expected »)« before »*« token
../../include/QtGui/private/../../../src/gui/painting/qpaintengineex_p.h:200: Fehler: expected »;« before »*« token
Comment 2 Alex Alexander (RETIRED) gentoo-dev 2011-04-14 22:00:24 UTC
the ebuild seds out -I/usr/include/qt4/QtGui now, so this should be fixed.

thanks for reporting!