Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5387 - Error compiling KDE 3.02 - 3rd time, same error
Summary: Error compiling KDE 3.02 - 3rd time, same error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
: 5406 5441 5482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-22 09:02 UTC by Paul Losi
Modified: 2003-02-04 19:42 UTC (History)
5 users (show)

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


Attachments
kdepim-3.0.2 patch to fix setDefaultFont compile error (mypatch.patch,629 bytes, patch)
2002-07-22 23:38 UTC, Richard D. Jackson
Details | Diff
Ebuild patch to apply the kdepim patch (kdepim-3.0.2.diff,359 bytes, patch)
2002-07-22 23:39 UTC, Richard D. Jackson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Losi 2002-07-22 09:02:49 UTC
!!! ERROR: The ebuild did not complete successfully.
!!! Function kde_src_compile, Line -4320, Exitcode2
!!! died running emake, kde_src_compile:make

!!! emerge aborting on /usr/portage/kde-base/kdepim/kdepim-3.0.2.ebuild
Comment 1 SpanKY gentoo-dev 2002-07-22 09:30:16 UTC
could you post the compiler errors as well ?
rarely does the ebuild error msg help in determining the source of your problem
Comment 2 Paul Losi 2002-07-22 10:06:03 UTC
I get numerous "permission denied" messages while trying to create:
/root/.kde/share/config
Also get errors creating /root/.qt

The last thing I see is:
In file included from knotes.all_cpp.cpp:3:
knote.cpp: In method 'void KNote::slotPrint() const'
knote.cpp:498: no matching function for call to 'QTextDocument::setDefaultFont 
(QFont &)
make(3): ***[knotes.all_cpp.o] Error 1
make(3): Leaving directory '/var/tmp/portage/kdepim-3.0.2/work/kdepim-
3.0.2/knotes'
make(2): ***[all-recursive] Error 1
make(2): Leaving directory '/var/tmp/portage/kdepim-3.0.2/work/kdepim-
3.0.2/knotes'
make(1): ***[all-recursive] Error 1
make(1): Leaving directory '/var/tmp/portage/kdepim-3.0.2/work/kdepim-3.0.2'
make: ***[all] Error 2

Then comes the ebuild error message

I've installed straight from the instructions. For the kernel, I used the 
gentoo-sources and I'm using the default USE settings, for now.


Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-07-22 23:15:05 UTC
*** Bug 5406 has been marked as a duplicate of this bug. ***
Comment 4 Richard D. Jackson 2002-07-22 23:36:51 UTC
Seeing that my bug 5406 was marked as duplicate I will post my fix to this one.

It seems that QT 3.0.5 removes setDefaultFont method from the QTextDocument
class. the relivant qt file is (qt-source-dir)/src/kernel/qrichtext_p.h

NOTE: QT 3.0.3 had this method defined.

To fix comment out the offending line of code. see attached kdepim patch.
Also see attached ebuild patch to apply the patch. 

This should close this bug. But one thing to be aware of if a user upgrades to
QT 3.0.5 they may see knote segfault because setDefaultFont no longer exists.

Has this bug been submited over on kde.org? I don't have a account setup over
there but I will set one up to submit this bug if I need to.

Comment 5 Richard D. Jackson 2002-07-22 23:38:09 UTC
Created attachment 2477 [details, diff]
kdepim-3.0.2 patch to fix setDefaultFont compile error

This patch will comment out the setDefaultFont call in knote.cpp
Comment 6 Richard D. Jackson 2002-07-22 23:39:38 UTC
Created attachment 2478 [details, diff]
Ebuild patch to apply the kdepim patch

This patch will update the ebuild to apply the kdepim patch.
Comment 7 Ryan Phillips (RETIRED) gentoo-dev 2002-07-23 21:32:07 UTC
*** Bug 5482 has been marked as a duplicate of this bug. ***
Comment 8 Ryan Phillips (RETIRED) gentoo-dev 2002-07-24 01:36:36 UTC
*** Bug 5441 has been marked as a duplicate of this bug. ***
Comment 9 Ryan Phillips (RETIRED) gentoo-dev 2002-07-24 01:48:37 UTC
I went ahead and applied the patch, since there was lots of noise about kde
breaking. I hope you don't mind Dan.
Comment 10 Dan Fairs 2002-07-24 03:41:46 UTC
If it fixes it I don't mind - I don't use KNote anyway :). Do you mean you've
fixed it in the sources that'll get rsync'd to my machine? Or should I manually
apply the patch to my sources?

Richard, it would seem sensible if you create a kde.org account and report the
bug, since you have patches! :)
Comment 11 Richard D. Jackson 2002-07-24 22:52:54 UTC
I will get it submited over at kde.org tonight.
Comment 12 Brian Rozmierski 2002-07-31 09:16:03 UTC
Here's the URL to the cvs tree over at kde.org. They have committed a (better)
patch to the CVS tree for 3.1alpha, and have backported it into the 3.0.2
branch. Can we get this bug re-opened and the patch updated?

http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdepim/knotes/knote.cpp