When i try to compile psi when qt-4 is installed i get the following error message: (root@hive)(212/pts/4)(05:32:08/24/05)- (#:/usr/portage/dev-php/mod_php)- emerge -v psi Calculating dependencies ...done! >>> emerge (1 of 1) net-im/psi-0.9.3-r4 to / cleansing builddir/var/tmp/portage/psi-0.9.3-r4 creating temp dir swapping processors for ['unpack', 'compile', 'test'] >>> Unpacking source... >>> Unpacking psi-0.9.3.tar.bz2 to /var/tmp/portage/psi-0.9.3-r4/work >>> Unpacking psi_pl-0.9.3-1.tar.bz2 to /var/tmp/portage/psi-0.9.3-r4/work * Applying psi-pathfix.patch ... [ ok ] * Applying psi-desktop.patch ... [ ok ] * Applying psi-desktop_file_and_icons_directories.patch ... [ ok ] * Applying psi-reverse_trayicon.patch ... [ ok ] * You are going to install the original psi version. You might want to * try the version with extra unsuported patches by adding 'extras' to * your use flags. * * Unpacking language files, you must have linguas_* in USE where * build-mac.txt build-win.txt certs ChangeLog configure COPYING csprepare cutestuff iconsets INSTALL iris iris.pri libpsi libpsi.pri mac makemac makewin. bat prepare psics.pri psi.desktop psi.pro psi.qc qcextra qcm qxml README sound src TODO win32 is the language files you wish. English is always available * >>> Source unpacked. >>> Compiling source ... Configuring Psi ... Verifying Qt 3.x Multithreaded (MT) build environment ... ok Checking for Qt >= 3.1 ... yes Checking for QCA 1.0 ... yes Checking for zlib ... yes Checking for the XScreenSaver extension ... yes Checking for Linux Directory Notification ... yes Checking for gethostbyname_r() ... yes Checking for KDE ... no Good, your configure finished. Now run 'make'. cd libpsi/psiwidgets && qmake psiwidgets.pro "QMAKE_CXXFLAGS_RELEASE=- march=athlon-xp -O2 -pipe -s -fomit-frame-pointer" "QMAKE_RPATH=" -o Makefile cd libpsi/psiwidgets && make -f Makefile make[1]: Entering directory `/var/tmp/portage/psi-0.9.3-r4/work/psi-0.9.3/ libpsi/psiwidgets' g++ -c -pipe -march=athlon-xp -O2 -pipe -s -fomit-frame-pointer -Wall -W - D_REENTRANT -fPIC -DWIDGET_PLUGIN -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB - DQT_GUI_LIB -DQT_SHARED -I/usr/share/doc/qt-4.0.1/mkspecs/linux-g++ -I. -I/usr/ include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I. -o psiwidgets.o psiwidgets.cpp In file included from psiwidgets.cpp:21: psiwidgets.h:24:27: qwidgetplugin.h: Nie ma takiego pliku ani katalogu In file included from psiwidgets.cpp:21: psiwidgets.h:26: error: invalid function declaration In file included from psiwidgets.cpp:25: iconwidget.h:24:22: qlistbox.h: Nie ma takiego pliku ani katalogu In file included from psiwidgets.cpp:25: iconwidget.h:36: error: expected class-name before '{' token iconwidget.h:36: warning: `class IconsetSelect' has virtual functions but non- virtual destructor iconwidget.h:60: error: expected class-name before '{' token iconwidget.h:63: error: expected `)' before '*' token iconwidget.h:72: error: expected class-name before '{' token iconwidget.h:72: warning: `class IconsetDisplay' has virtual functions but non- virtual destructor In file included from psiwidgets.cpp:26: psitextview.h:82: error: ISO C++ forbids declaration of `QPopupMenu' with no type psitextview.h:82: error: expected `;' before '*' token psitextview.h:83: error: ISO C++ forbids declaration of `QPopupMenu' with no type psitextview.h:83: error: expected `;' before '*' token psitextview.h:85: error: expected `;' before "private" psiwidgets.cpp:62: error: `PsiWidgetsPlugin' has not been declared psiwidgets.cpp:63: error: ISO C++ forbids declaration of `PsiWidgetsPlugin' with no type psiwidgets.cpp:66: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp:67: error: non-member function `QStringList keys()' cannot have `const' method qualifier psiwidgets.cpp:81: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp: In function `QWidget* create(const QString&, QWidget*, const char*)': psiwidgets.cpp:90: error: cannot convert `IconsetSelect*' to `QWidget*' in return psiwidgets.cpp:92: error: cannot convert `IconsetDisplay*' to `QWidget*' in return psiwidgets.cpp: At global scope: psiwidgets.cpp:104: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp:105: error: non-member function `QString includeFile(const QString&)' cannot have `const' method qualifier psiwidgets.cpp:117: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp:118: error: non-member function `QString group(const QString&)' cannot have `const' method qualifier psiwidgets.cpp:132: error: `QIconSet' does not name a type psiwidgets.cpp:155: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp:156: error: non-member function `QString toolTip(const QString&)' cannot have `const' method qualifier psiwidgets.cpp:178: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp:179: error: non-member function `QString whatsThis(const QString&)' cannot have `const' method qualifier psiwidgets.cpp:201: error: `PsiWidgetsPlugin' is not a class or namespace psiwidgets.cpp:202: error: non-member function `bool isContainer(const QString&) ' cannot have `const' method qualifier psiwidgets.cpp:206: error: expected constructor, destructor, or type conversion before '(' token psiwidgets.cpp:206: error: expected `,' or `;' before '(' token psiwidgets.cpp:28: warning: 'psiwidget_data' defined but not used make[1]: *** [psiwidgets.o] Błąd 1 make[1]: Leaving directory `/var/tmp/portage/psi-0.9.3-r4/work/psi-0.9.3/libpsi/ psiwidgets' make: *** [sub-libpsi-psiwidgets] Błąd 2 !!! ERROR: net-im/psi-0.9.3-r4 failed. !!! Function src_compile, Line 2402, Exitcode 2 !!! Make failed !!! If you need support, post the topmost build error, NOT this status message. phases failed (root@hive)(213/pts/4)(05:32:08/24/05)- (#:/usr/portage/dev-php/mod_php)- Reproducible: Always Steps to Reproduce: 1. emerge '>=qt-4' 2. emerge psi 3. Actual Results: psi compilation failed Expected Results: successfully compile psi Portage 1.589-cvs (default-linux/x86/2005.1, gcc-3.4.4-vanilla, glibc-2.3.5-r1, 2.6.12-ck4 i686) ================================================================= System uname: 2.6.12-ck4 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.12.0_pre6 Python: dev-lang/python-2.4.1-r1 [2.4.1 (#1, Aug 7 2005, 08:21:23 )] distcc: No such file or directory [disabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -s -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb / usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -s -fomit-frame-pointer" DISTDIR="/var/tmp/distfiles" FEATURES="autoconfig confcache digest distlocks parallel-fetch sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS=" http://gentoo.zie.pg.gda.pl http:// 62.93.34.55/gentoo http://src.gentoo.pl " LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="pl" MAKEOPTS="-j1" PKGDIR="/var/tmp/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext 7zip X aac alsa amarok apache2 apm avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdparanoia cdr clanJavaScript crypt css cups curl custom-cflags divx4linux dlloader dvd dvdread eds emboss encode exif extraicons extramodules fam flac font-server foomaticdb fortran gdbm gif glibc- omitfp glitz gpm gtk gtk2 gtkhtml hardened imagemagick imlib ipv6 ithreads java javascript jpeg jpeg2k kadu kde kdeenablefinal libg++ libwww mad mikmod mmx mmxext mng motif mozcalendar mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg musepack ncurses nethack nls nonfsv4 nowebdav nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam pdflib perl php png postgres psi python qt quicktime readline real ruby samba sdl sndfile spell sqlite sse ssl symlink sysfs tabs tcltk tcpd tga theora threads tiff truetype truetype-fonts type1 type1-fonts usb userlocales vcd vim vim-with-x visualization vorbis win32codecs xanim xine xml xml2 xmms xosd xv xvid zlib zsh linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS Config files: /etc/make.conf, /etc/portage/package.mask, /etc/portage/package. unmask, /etc/portage/package.keywords
Do you have qt3 installed, you should because psi will depend on it, but please double check.
i'm sure that i have qt-3 installed `--> emerge -pv '<qt-4' '>qt-4' These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] x11-libs/qt-3.3.4-r7 +cups -debug -doc -examples -firebird +gif - immqt -immqt-bc +ipv6 -mysql -nas -odbc +opengl +postgres +sqlite -xinerama +zlib 14,101 kB [ebuild R ] x11-libs/qt-4.0.1 -accessibility +cups -debug -doc -examples - firebird +gif +jpeg +mng -mysql -nas -nis -odbc +opengl +png +postgres +sqlite - xinerama +zlib
I have the same problem... http://forums.gentoo.org/viewtopic-p-2719628.html
I remove the ${QTDIR}/bin/qmake command and it works fine for me.
I can confirm the problem (qt3 and qt4 installed). The solution provided by Victor works for me.
I updated the ebuilds to a qmake scheme that should work. Please reopen if they're still broken.
simple and beauty one was made by Timo Paulssen here : https://bugs.gentoo.org/show_bug.cgi?id=118743 bug report contains updated ebuild to version 0.10 with new psi-gentoo patches Regards, Przemek