Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37038 - emerge kdegraphics-3.2.0_beta2 failed: "kpdf_shell.cpp:9:18: part.h: No such file or directory"
Summary: emerge kdegraphics-3.2.0_beta2 failed: "kpdf_shell.cpp:9:18: part.h: No such ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 10:53 UTC by Arent Groebner
Modified: 2004-03-01 11:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arent Groebner 2004-01-02 10:53:39 UTC
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"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-01-03 06:08:05 UTC
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
Comment 2 Arent Groebner 2004-01-03 06:13:57 UTC
> 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.
Comment 3 Arent Groebner 2004-01-03 07:34:19 UTC
> export DO_NOT_COMPILE="kpdf" && emerge kdegraphics

Thanks god, that worked. This thing was driving me mad...

Thanks for your help.

Arent
Comment 4 Geoffrey Huang 2004-03-01 11:39:41 UTC
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.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-03-01 11:41:52 UTC
It's probably a parallel make isue.  Using "-j1" in the makeopts will most likely fix the problem for this ebuild as well.