Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41571 - kprof doesn't emerge
Summary: kprof doesn't emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 All
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-14 10:54 UTC by Alexey Parshin
Modified: 2004-07-25 09:07 UTC (History)
0 users

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


Attachments
patches kprofwidget.cpp (assert.patch,474 bytes, patch)
2004-04-11 11:21 UTC, Thomas Veith (RETIRED)
Details | Diff
new ebuild which applies patch (kprof-1.4.2.ebuild,681 bytes, text/x-ebuild)
2004-04-11 11:22 UTC, Thomas Veith (RETIRED)
Details
Alternate patch to provide assert by including <cassert> (include_cassert.patch,268 bytes, patch)
2004-05-06 15:28 UTC, Merc
Details | Diff
Alternate ebuild to use the "include_cassert.patch" (kprof-1.4.2.ebuild,1.48 KB, text/plain)
2004-05-06 15:29 UTC, Merc
Details
Alternate ebuild to use the "include_cassert.patch" (with some cleanups) (kprof-1.4.2.ebuild,781 bytes, text/plain)
2004-05-06 15:33 UTC, Merc
Details
kprof-1.4.2.ebuild (kprof-1.4.2.ebuild,600 bytes, text/plain)
2004-05-07 14:50 UTC, Carsten Lohrke (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Parshin 2004-02-14 10:54:14 UTC
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -DNDEBUG -DNO_DEBUG -O2 -mcpu=athlon-mp -O3 -pipe -fno-exceptions -fno-check-new  -c -o call-graph.o `test -f 'call-graph.cpp' || echo './'`call-graph.cpp
kprofwidget.cpp: In member function `void KProfWidget::selectListFont()':
kprofwidget.cpp:300: error: `assert' undeclared (first use this function)
kprofwidget.cpp:300: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
kprofwidget.cpp: In member function `void KProfWidget::applySettings()':
kprofwidget.cpp:458: error: `assert' undeclared (first use this function)
kprofwidget.cpp: In member function `void KProfWidget::loadSettings()':
kprofwidget.cpp:475: error: `assert' undeclared (first use this function)
make[2]: *** [kprofwidget.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/kprof-1.4.2/work/kprof-1.4.2/kprof'make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kprof-1.4.2/work/kprof-1.4.2'
make: *** [all] Error 2
 
!!! ERROR: dev-util/kprof-1.4.2 failed.
!!! Function kde_src_compile, Line 127, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 1 Thomas Veith (RETIRED) gentoo-dev 2004-04-11 11:21:17 UTC
Created attachment 29095 [details, diff]
patches kprofwidget.cpp

This patch adds an #include <assert.h> statement to kprofwidget.cpp so that
kprof compiles without errors
Comment 2 Thomas Veith (RETIRED) gentoo-dev 2004-04-11 11:22:41 UTC
Created attachment 29097 [details]
new ebuild which applies patch

The original ebuild plus a line to apply the assert-patch
Comment 3 Martin von Gagern 2004-04-29 15:09:32 UTC
Thanks for the patch. Should it be <cassert> rather than <assert.h> ?
Comment 4 Merc 2004-05-06 15:28:14 UTC
Created attachment 30878 [details, diff]
Alternate patch to provide assert by including <cassert>
Comment 5 Merc 2004-05-06 15:29:23 UTC
Created attachment 30879 [details]
Alternate ebuild to use the "include_cassert.patch"
Comment 6 Merc 2004-05-06 15:33:49 UTC
Created attachment 30880 [details]
Alternate ebuild to use the "include_cassert.patch" (with some cleanups)
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-07 14:49:11 UTC
Merc: Use emake instead of make. When overriding a inherited function, call it. In this case it would be "kde_src_compile all". Patches should be applied in src_unpack. The ebuild header is invalid >> http://www.gentoo.org/doc/en/ebuild-mistakes.xml
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-07 14:50:06 UTC
Created attachment 30965 [details]
kprof-1.4.2.ebuild
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-25 09:07:04 UTC
committed :)