Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10118 - kbrain 0.1.3 fails to build, due to compile errors
Summary: kbrain 0.1.3 fails to build, due to compile errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-02 18:27 UTC by Tim Oertel
Modified: 2003-02-04 19:42 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 Tim Oertel 2002-11-02 18:27:04 UTC
kbrain 0.1.3 fails to build three files:
kbrain/graphcanvas.cpp
kbrain/kbraindrag.cpp
kbrain/kbrainconfig.cpp
all due to default parameters for constructors in the cpp files.

For instance:
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include
-I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new  -c graphcanvas.cpp
graphcanvas.cpp:24: default argument given for parameter 1 of `
   GraphCanvas::GraphCanvas(QObject* = 0, const char* = 0)'
graphcanvas.h:29: after previous specification in `
   GraphCanvas::GraphCanvas(QObject* = 0, const char* = 0)'
graphcanvas.cpp:24: default argument given for parameter 2 of `
   GraphCanvas::GraphCanvas(QObject* = 0, const char* = 0)'
graphcanvas.h:29: after previous specification in `
   GraphCanvas::GraphCanvas(QObject* = 0, const char* = 0)'
make[2]: *** [graphcanvas.o] Error 1
make[2]: Leaving directory
`/usr/src/gentoo/tmp/portage/kbrain-0.1.3/work/kbrain-0.1.3/kbrain'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/gentoo/tmp/portage/kbrain-0.1.3/work/kbrain-0.1.3'
make: *** [all-recursive-am] Error 2


I'm not sure if there are gcc options that should be used to eliminate this,
or if the redef in the cpp files should be removed.
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-03 06:36:01 UTC
fixed, thanks for submission.