fyi there are problems with compilation of lyx package with qt 4.4 rc1. it seems that its not qt bug, but some problem in gentoo emerging. attaching minimal example which can be compiled with qt 4.4 rc1 sources locally compiled and installed, but not when emerged via portage. this is the error: $ g++ -I/usr/include/qt4 -I/usr/include/qt4/QtGui main.cpp main.cpp: In member function 'void MyApp::commitData(QSessionManager&)': main.cpp:10: error: invalid use of undefined type 'struct QSessionManager' /usr/include/qt4/QtGui/qapplication.h:63: error: forward declaration of 'struct QSessionManager' having main.cpp containing only #include <QSessionManager>: $ g++ -E -I/usr/include/qt4 -I/usr/include/qt4/QtGui main.cpp |grep -i qsessio # 1 "/usr/include/qt4/QtGui/QSessionManager" 1 # 1 "/usr/include/qt4/QtGui/qsessionmanager.h" 1 # 40 "/usr/include/qt4/QtGui/qsessionmanager.h" # 41 "/usr/include/qt4/QtGui/qsessionmanager.h" 2 # 42 "/usr/include/qt4/QtGui/qsessionmanager.h" 2 # 44 "/usr/include/qt4/QtGui/qsessionmanager.h" 2 # 1 "/usr/include/qt4/QtGui/QSessionManager" 2 $ g++ -E -I/usr/include/qt4/QtGui main.cpp |grep -i qsessio In file included from /usr/include/qt4/QtGui/QSessionManager:1, from main.cpp:1: /usr/include/qt4/QtGui/qsessionmanager.h:40:28: error: QtCore/qobject.h: No such file or directory /usr/include/qt4/QtGui/qsessionmanager.h:41:31: error: QtGui/qwindowdefs.h: No such file or directory /usr/include/qt4/QtGui/qsessionmanager.h:42:28: error: QtCore/qstring.h: No such file or directory /usr/include/qt4/QtGui/qsessionmanager.h:43:32: error: QtCore/qstringlist.h: No such file or directory # 1 "/usr/include/qt4/QtGui/QSessionManager" 1 # 1 "/usr/include/qt4/QtGui/qsessionmanager.h" 1 # 47 "/usr/include/qt4/QtGui/qsessionmanager.h" class QSessionManagerPrivate; class Q_GUI_EXPORT QSessionManager : public QObject Q_DECLARE_PRIVATE(QSessionManager) QSessionManager(QApplication *app, QString &id, QString &key); ~QSessionManager(); # 1 "/usr/include/qt4/QtGui/QSessionManager" 2 you see - when i wipe -I/usr/include/qt4 out, the *.h are not found _AND_ definition of QSessionManager miraculously appears. more experimenting shows that deleting include lines in qsessionmanager.h helps and inclusion any of them brings the problem back.
Created attachment 145095 [details] example file
This is already known and being worked on; please note that the ebuilds are package.masked for a good reason, not intended for users at all ATM.
(In reply to comment #2) > This is already known and being worked on; please note that the ebuilds are > package.masked for a good reason, not intended for users at all ATM. Yes, with the help of the KDE team, I've been working on ebuilds for the recent beta release, this is currently the one problem that's stopping me from committing them, because it renders the ebuilds effectively unusable. I would highly appreciate *clean* suggestions on how to fix this.
Fixed in beta1
btw was this problem qt 4.4 related only or was it part of dividing qt into modules? there is a report on bug with the same err logs but with some older qt version (on some freebsd system though) on lyx list and nobody knew whats goin on there or how the fix should be.
(In reply to comment #5) > btw was this problem qt 4.4 related only or was it part of dividing qt into > modules? there is a report on bug with the same err logs but with some older qt > version (on some freebsd system though) on lyx list and nobody knew whats goin > on there or how the fix should be. It was a bug in the way we split Qt into seperate modules. qconfig.h (which we is installed by x11-libs/qt-core) contains the features that your Qt build has enabled. The problem, simply put, was that when installing other Qt split ebuilds, this specific file wasn't updated to reflect that. Also see bug 206975, if you're interested, which is fixed in a similar way.
hello, reopening becaause the same error is here again with ~4.5.2
I can't reproduce with the attached testcase...
what qt libs do you have installed? here i see: qt-core qt-dbus qt-gui qt-script
I dont even understand the bug. Can somebody elaborate please? This works for me hwoarang@Raptor ~ $ g++ -I/usr/include/qt4 -I/usr/include/qt4/QtGui -L/usr/lib64/qt4 -lQtGui main.cpp hwoarang@Raptor ~ $ If I remove /usr/include/qt4 then QtCore/qobject.h and friends cant be found but thats normal since we dont include QtCore headers :/
maybe this is dependent on how qt is emerged. after masking qt meta package i unmerged all qt libs and merged only those listed above. after this lyx stopped to compile and trying this minimal example shows: g++ -I/usr/include/qt4 -I/usr/include/qt4/QtGui -L/usr/lib64/qt4 -lQtGui main.cpp main.cpp: In member function 'void MyApp::commitData(QSessionManager&)': main.cpp:10: error: invalid use of undefined type 'struct QSessionManager' /usr/include/qt4/QtGui/qapplication.h:68: error: forward declaration of 'struct QSessionManager'
(i forgot to add - i unmerged 4.5.1 and emerged 4.5.2 libs)
emerge --info, and attach your /usr/share/qt4/mkspecs/qconfig.pri too.
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.19-suspend2-r3 i686) ================================================================= System uname: Linux-2.6.19-suspend2-r3-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0 Timestamp of tree: Wed, 01 Jul 2009 20:30:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/" LANG="cs_CZ" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde latex ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" 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 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="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 196528 [details] qconfig.pri
Please attach also the preprocessed sources of the test case: g++ -E -I/usr/include/qt4 -I/usr/include/qt4/QtGui main.cpp and: g++ -E -I/usr/include/qt4/QtGui main.cpp
Created attachment 196538 [details] first.out
Created attachment 196539 [details] second.out
Try compiling with qmake (qmake -project && qmake && make)
Created attachment 196545 [details] Session Manager test Please try this small test: post the output of g++ -I/usr/include/qt4 test.cpp && ./a.out
$ g++ -I/usr/include/qt4 test.cpp && ./a.out PASS
if it is helpful for you the order of emerging packages was: qt-core-4.5.2 qt-dbus-4.5.2 qt-script-4.5.2 qt-gui-4.5.2
*** Bug 276864 has been marked as a duplicate of this bug. ***
This is fixed in qt-gui-4.5.2-r1, please sync soon and re-emerge. Thank you for the report, and to Ingmar for the solution :)