Gentoo Forums
Gentoo Forums
Quick Search: in
Error trying to emerge kdevelop [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dre2004
n00b
n00b


Joined: 11 Aug 2005
Posts: 31
Location: Sydney, Australia

PostPosted: Sat May 27, 2006 11:01 pm    Post subject: Error trying to emerge kdevelop [SOLVED] Reply with quote

I'm getting the following when trying to emerge kdevelop

Code:

/bin/sh ../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/interfaces -I../../lib/interfaces/extensions -I../../lib/util -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o addtooldlg.lo addtooldlg.cpp
addtooldlg.cpp:28:33: kdevapplicationtree.h: No such file or directory
make[3]: *** [addtooldlg.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.2.1-r1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  kdevelop-3.2.1-r1.ebuild, line 56:   Called kde_src_compile
  kde.eclass, line 123:   Called kde_src_compile 'all'
  kde.eclass, line 252:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 248:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.


as per the error here is a listing of /var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts/tools

Code:

Makefile        addtooldlg.moc        kdevpart_tools.rc  toolsconfig.h          toolsconfigwidgetbase.h
Makefile.am     addtooldlg.ui         kdevtools.desktop  toolsconfig.lo         toolsconfigwidgetbase.moc
Makefile.in     addtooldlg.ui.h       tools_part.cpp     toolsconfig.moc        toolsconfigwidgetbase.ui
README.dox      kapplicationtree.cpp  tools_part.h       toolsconfigwidget.cpp
addtooldlg.cpp  kapplicationtree.h    tools_part.lo      toolsconfigwidget.h
addtooldlg.h    kapplicationtree.lo   tools_part.moc     toolsconfigwidget.lo
addtooldlg.loT  kapplicationtree.moc  toolsconfig.cpp    toolsconfigwidget.moc


is this a bug in the ebuild or am I missing something?
_________________
-------------------------------
http://www.dretech.com.au


Last edited by dre2004 on Tue May 30, 2006 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
cyblord
Guru
Guru


Joined: 22 May 2006
Posts: 424
Location: Vancouver, Canada

PostPosted: Sun May 28, 2006 2:56 am    Post subject: Reply with quote

Hmm... I emerged kdevelop a few days ago just fine.

try updating your portage tree first, and then emerge kdevelop again.

Code:

emerge --sync
Back to top
View user's profile Send private message
dre2004
n00b
n00b


Joined: 11 Aug 2005
Posts: 31
Location: Sydney, Australia

PostPosted: Sun May 28, 2006 6:16 am    Post subject: Reply with quote

Yep I did do that just before emerging. I actually just finished doing emerge -- update world before trying to emerge kdevelop
_________________
-------------------------------
http://www.dretech.com.au
Back to top
View user's profile Send private message
dre2004
n00b
n00b


Joined: 11 Aug 2005
Posts: 31
Location: Sydney, Australia

PostPosted: Sun May 28, 2006 10:11 am    Post subject: Reply with quote

I've just done another emerge --sync and emerge --update world --deep and then tried to emerge kdevelop again but still getting the same error.
_________________
-------------------------------
http://www.dretech.com.au
Back to top
View user's profile Send private message
vlsoft
n00b
n00b


Joined: 23 May 2005
Posts: 6

PostPosted: Sun May 28, 2006 12:02 pm    Post subject: Reply with quote

dre2004 wrote:
I've just done another emerge --sync and emerge --update world --deep and then tried to emerge kdevelop again but still getting the same error.

Same error for me too, I have nothing more to say... Or maybe one more thing; I just finished installing KDE 3.5.2 and QT 4.1.2 (if I remember the version numbers right). KDE 3.4 removed, but I still have the older QT installed.
Back to top
View user's profile Send private message
vlsoft
n00b
n00b


Joined: 23 May 2005
Posts: 6

PostPosted: Sun May 28, 2006 1:52 pm    Post subject: Reply with quote

Okay, it seems I had found the problem.
Do this after the emerge failure:

Step 1)
cd /var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts/tools/
nano addtooldlg.cpp

Step 2)
Delete the 28th line (or comment it out with // ) saying:
#include "kdevapplicationtree.h"

Step 3)
Save the file.
cd /var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/
make

See as KDevelop compiles.

So what was the problem?
Check the file called kapplicationtree.h (same dir as addtooldlg.cpp), it contains this just after the big comment containing GNU LGPL stuff:
#ifndef __KDevApplicationTree_h__
#define __KDevApplicationTree_h__

So I think someone had renamed kdevapplicationtree.h (and others) to simply kapplicationtree.h, successfully wrote the necessary include to addtooldlg.cpp, but forgot to remove the include which included the old and now non-existent kdevapplicationtree.h .
it's time for a bug fix for kdevelop :)
But I won't report this on bugs.gentoo.org; I'm just an end-user :)
Back to top
View user's profile Send private message
vlsoft
n00b
n00b


Joined: 23 May 2005
Posts: 6

PostPosted: Sun May 28, 2006 2:51 pm    Post subject: Reply with quote

I've done a quick patch for this...

Save as a file named like this: /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch
Code:
--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
@@ -241,6 +241,5 @@
     <includehint>kurlrequester.h</includehint>
     <includehint>klineedit.h</includehint>
     <includehint>kpushbutton.h</includehint>
-    <includehint>kdevapplicationtree.h</includehint>
 </includehints>
 </UI>



Then edit the ebuild /usr/portage/dev-util/kdevelop/kdevelop-3.2.1-r1.ebuild
Code:
src_unpack() {
        kde_src_unpack
        cd ${S}

        epatch ${FILESDIR}/${P}-gcc4.patch

        # See bug #86780 and kde bug 98852.
        epatch "${FILESDIR}/${P}-makefiles.patch"

        # VLsoft patch
        epatch "${FILESDIR}/${P}-vlsoft.patch"
Notice! I've added only the last 2 lines!

Don't forget to run standing in the /usr/portage/dev-util/kdevelop/ dir. this too:
ebuild kdevelop-3.2.1-r1.ebuild digest

Now "emerge kdevelop", it should work.
Back to top
View user's profile Send private message
dre2004
n00b
n00b


Joined: 11 Aug 2005
Posts: 31
Location: Sydney, Australia

PostPosted: Mon May 29, 2006 8:18 am    Post subject: Reply with quote

I tried that and got the following error

Code:

 * Failed Patch: kdevelop-3.2.1-vlsoft.patch !
 *  ( /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/kdevelop-3.2.1-r1/temp/kdevelop-3.2.1-vlsoft.patch-12341.out


!!! ERROR: dev-util/kdevelop-3.2.1-r1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_unpack
  ebuild.sh, line 703:   Called src_unpack
  kdevelop-3.2.1-r1.ebuild, line 34:   Called epatch '/usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch'
  eutils.eclass, line 339:   Called die

!!! Failed Patch: kdevelop-3.2.1-vlsoft.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.


here is the output of /var/tmp/portage/kdevelop-3.2.1-r1/temp/kdevelop-3.2.1-vlsoft.patch-12341.out

Code:

roxor kdevelop # cat /var/tmp/portage/kdevelop-3.2.1-r1/temp/kdevelop-3.2.1-vlsoft.patch-11957.out
***** kdevelop-3.2.1-vlsoft.patch *****

=======================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
patching file parts/tools/addtooldlg.ui
Hunk #1 FAILED at 241.
1 out of 1 hunk FAILED -- saving rejects to file parts/tools/addtooldlg.ui.rej
=======================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored


_________________
-------------------------------
http://www.dretech.com.au
Back to top
View user's profile Send private message
vlsoft
n00b
n00b


Joined: 23 May 2005
Posts: 6

PostPosted: Mon May 29, 2006 12:45 pm    Post subject: Reply with quote

Okay, it's obvious, that the problem is with the patch. Did I screwed up the file's path in the beginning of the patch file? But it works on my gentoo box...

I think the really interesting part is this:
Code:
=======================================
patching file parts/tools/addtooldlg.ui
Hunk #1 FAILED at 241.
1 out of 1 hunk FAILED -- saving rejects to file parts/tools/addtooldlg.ui.rej
=======================================

Check out the contents of this file "parts/tools/addtooldlg.ui.rej"

I don't like to paste patches on web pages, because they get somewhat distorted (as it happened here too, I assume).
I put up the patch on a small web server, try to download it from there:
https://ai4.inf.elte.hu/gentoo/kdevelop-3.2.1-vlsoft.patch

ps.: Have you tried out the manual compiling I recommended in the post just before the patch stuff? I know that will not make it work in the gentoo way, but hey; it can give a result so as it compiles or not...
Back to top
View user's profile Send private message
dre2004
n00b
n00b


Joined: 11 Aug 2005
Posts: 31
Location: Sydney, Australia

PostPosted: Tue May 30, 2006 8:03 am    Post subject: Reply with quote

That did it. I thought it might have been that because when I copy and pasted the test into a file the alignment went a bit off.

Cheers
_________________
-------------------------------
http://www.dretech.com.au
Back to top
View user's profile Send private message
phoric
n00b
n00b


Joined: 07 Mar 2004
Posts: 54
Location: Seattle, WA

PostPosted: Fri Jun 16, 2006 11:16 pm    Post subject: Reply with quote

I had the same issue.. this fix worked for me also.

Thanks,
_________________
phoric
Back to top
View user's profile Send private message
dajja
n00b
n00b


Joined: 11 May 2006
Posts: 15
Location: Sweden

PostPosted: Thu Jun 29, 2006 10:34 pm    Post subject: Reply with quote

Thx vlsoft! The compile passed addtooldlg.cpp finally :D
Back to top
View user's profile Send private message
random.chance
n00b
n00b


Joined: 18 Jun 2006
Posts: 8
Location: Stillwater, Oklahoma

PostPosted: Mon Jul 03, 2006 6:32 pm    Post subject: Reply with quote

Worked for me too!! Thanks Vlsoft!!!
Back to top
View user's profile Send private message
socr0819
n00b
n00b


Joined: 01 Jul 2004
Posts: 15
Location: raleigh, nc

PostPosted: Tue Jul 04, 2006 4:18 am    Post subject: thanks! Reply with quote

this worked for me as well. thanks a lot!
Back to top
View user's profile Send private message
trizz
n00b
n00b


Joined: 04 Jan 2005
Posts: 52

PostPosted: Tue Aug 15, 2006 1:10 pm    Post subject: Reply with quote

Mine fails but with a different error...

Code:
grep: /usr/lib/gcc/i386-pc-linux-gnu/3.4.6/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc/i386-pc-linux-gnu/3.4.6/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc/i386-pc-linux-gnu/3.4.6/libstdc++.la' is not a valid libtool archive
make[4]: *** [libcvsserviceintegrator.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/vcs/cvsservice/integrator'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/vcs/cvsservice'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/vcs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.3.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  kdevelop-3.3.2.ebuild, line 57:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 323:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 319:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.


Any ideas? This is the only ppackage that fails on updates, I've tried to go to a newer version too and that fails as well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum