Every time when I tried to compile kdevelop-3.3.5 it fails with: makewidget.cpp:45:33: error: private/qrichtext_p.h: No such file or directory /bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o libkdevappview.la -rpath /usr/lib/kde3 -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -L/usr/kde/3.5/lib -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib -R /usr/kde/3.5/lib appoutputviewpart.lo appoutputwidget.lo directorystatusmessagefilter.lo outputfilter.lo compileerrorfilter.lo commandcontinuationfilter.lo makeitem.lo makeactionfilter.lo otherfilter.lo filterdlg.lo ../../lib/widgets/libkdevwidgets.la ../../lib/interfaces/extensions/dcop/libkdevdcopextensions.la ../../lib/libkdevelop.la -lkhtml ../../lib/interfaces/extensions/libkdevextensions.la makewidget.cpp: In member function 'QString MakeWidget::guessFileName(const QString&, int) const': makewidget.cpp:486: warning: 'canonicalPath' is deprecated (declared at ../../lib/util/urlutil.h:171) makewidget.cpp:486: warning: 'canonicalPath' is deprecated (declared at ../../lib/util/urlutil.h:171) makewidget.cpp: In member function 'bool MakeWidget::scanErrorForward(int)': makewidget.cpp:836: error: invalid use of undefined type 'struct QTextDocument' /usr/qt/3/include/qstylesheet.h:52: error: forward declaration of 'struct QTextDocument' makewidget.cpp: In member function 'bool MakeWidget::scanErrorBackward(int)': makewidget.cpp:854: error: invalid use of undefined type 'struct QTextDocument' /usr/qt/3/include/qstylesheet.h:52: error: forward declaration of 'struct QTextDocument' distcc[10032] ERROR: compile makewidget.cpp on localhost failed make[3]: *** [makewidget.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.3.5/work/kdevelop-3.3.5/parts/outputviews' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.3.5/work/kdevelop-3.3.5/parts' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.3.5/work/kdevelop-3.3.5' make: *** [all] Error 2 !!! ERROR: dev-util/kdevelop-3.3.5 failed. Call stack: ebuild.sh, line 1611: Called dyn_compile ebuild.sh, line 968: Called qa_call 'src_compile' environment, line 4785: Called src_compile kdevelop-3.3.5.ebuild, line 58: Called kde_src_compile kde.eclass, line 170: Called kde_src_compile 'all' kde.eclass, line 340: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 336: Called die Reproducible: Always
emerge --info : Portage 2.1.2-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r1 i686) ================================================================= System uname: 2.6.19-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.9 Timestamp of tree: Fri, 19 Jan 2007 05:59:02 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 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 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19.2-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" 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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.lug.md/pub/mirrors/gentoo/ http://gentoo.inode.at/ http://ftp.rhnet.is/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="ro_RO.UTF-8" LINGUAS="ro" MAKEOPTS="-j11" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY=" " SYNC="rsync://ibalan.cd/gentoo-portage" USE="7zip X aiglx alsa asf asm bash-completion berkdb bitmap-fonts cairo canvas cdr cli cracklib crypt cups dga directfb djvu dlloader dri eds encode evolution fbcon firefox flash foomaticdb fortran gaim gdbm glitz gmail gnome gpm gstreamer gtalk gtk gtk2 gtkhtml hal i810 iconv imap imlib ipv6 isdnlog jabber java jpeg kde kerberos ldap libg++ libnotify live lm_sensors mad mesa mmx mono mp3 mplayer musicbrainz mysql ncurses nls no-seamonkey nptl nptlonly ntpl ocaml ofx ogg opengl pam pcre pdf perl png posix ppds pppd python qt qt3 qt4 readline real realmedia reflection samba session sftp smp spell spl sse sse2 ssl svg svga tcpd threads truetype-fonts type1-fonts udev unicode userlocales utf8 v4l v4l2 vorbis win32codecs x86 xine xorg yahoo zlib" ALSA_CARDS="intel8x0 intel8x0m" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro" USERLAND="GNU" VIDEO_CARDS="i810 i915" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I don't know why, but /usr/qt/3/include/private/qrichtext_p.h was a directory in my file system. Removing /usr/qt/3/include/private/ and re-emerging qt3 solve the problem.