Can't emerge kdegraphics-3.2.0_beta2. Tried everything, played around with USE and CFLAGS, downloaded a fresh CVS copy... no success. The missing file 'part.h' seems to exist: # find /usr -name part.h /usr/kde/3.1/include/kparts/part.h /usr/kde/3.1/include/korganizer/part.h /usr/kde/3.2/include/kparts/part.h Reproducible: Always Steps to Reproduce: 1.--- USUAL PREPARATIONS FOR UNSTABLE BUILDS --- 2.emerge -U kdegraphics 3. Actual Results: /usr/qt/3/bin/moc ./kpdf_shell.h -o kpdf_shell.moc g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I../../kpdf/goo -I../../kpdf/xpdf -I/usr/kde/3.2/ include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon -virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPE N_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fPIC -Wformat-security -Wmissing-forma t-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_C AST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kpdf_shell.o `test -f 'kpdf_shell .cpp' || echo './'`kpdf_shell.cpp kpdf_shell.cpp:9:18: part.h: No such file or directory kpdf_shell.cpp: In constructor `KPDF::Shell::Shell()': kpdf_shell.cpp:71: error: invalid static_cast from type `QWidget*' to type ` PDFPartView*' kpdf_shell.cpp:72: error: invalid use of undefined type `struct PDFPartView' kpdf_part.h:29: error: forward declaration of `struct PDFPartView' make[3]: *** [kpdf_shell.o] Error 1 make[3]: *** Waiting for unfinished jobs.... Session management error: Could not open network socket make[3]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0_beta2/work/kdegraphics-3.1.9 4/kpdf/kpdf' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0_beta2/work/kdegraphics-3.1.9 4/kpdf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0_beta2/work/kdegraphics-3.1.9 4' make: *** [all] Error 2 !!! ERROR: kde-base/kdegraphics-3.2.0_beta2 failed. !!! Function kde_src_compile, Line 123, Exitcode 2 !!! died running emake, kde_src_compile:make Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,2.3.2-r3, 2.4.22-gentoo-test-r1) ================================================================= System uname: 2.4.22-gentoo-test-r1 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="no" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fPIC" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acpi alsa apm arts avi berkdb crypt cups dga doc emacs encode ethereal foomaticdb gdbm gif gphoto2 gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby ruby18 sdl sip slang spell ssl svga tcltk tcpd tetex tiff truetype usb x86 xml xml2 xmms xv zlib"
some recent conversation on the kde mailing lists seems to suggest that kpdf is unmaintained and will most likely be removed before 3.2 is finalized. I would recommend trying this: DO_NOT_COMPILE="kpdf" emerge kdegraphics... as that should work around the compiler error. most likely it's due to it not supporting gcc 3.3
> most likely it's due to it not supporting gcc 3.3 That could be. Some time ago (on an older gentoo installation) I've emerged kdegraphics-3.2 without any problems.
> export DO_NOT_COMPILE="kpdf" && emerge kdegraphics Thanks god, that worked. This thing was driving me mad... Thanks for your help. Arent
I had this same problem when I tried to do emerge kdegraphics (3.2.0, release). I noticed that after the build failed on kpdf, that "part.h" did, indeed exist. I also noticed that when I started the emerge process, the file didn't exist. I figured that the file got unpacked as part of the build process. As a hokey workaround, I did the following: 1) emerge kdegraphics 2) Allow the build to fail, then copy kpdf/part.h to ~/ 3) restart emerge kdegraphics 4) copy ~/part.h to kpdf/part.h This seemed to work for, and the build completed.
It's probably a parallel make isue. Using "-j1" in the makeopts will most likely fix the problem for this ebuild as well.