Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289989 - [patch] net-misc/knutclient-0.9.3 fails to compile on gcc-4.3.4
Summary: [patch] net-misc/knutclient-0.9.3 fails to compile on gcc-4.3.4
Status: RESOLVED DUPLICATE of bug 289987
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 11:50 UTC by Israel G. Lugo
Modified: 2009-10-21 12:04 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 Israel G. Lugo 2009-10-21 11:50:01 UTC
While emerging net-misc/knutclient-0.9.3:

...
In file included from knutclient.h:29,
                 from main.cpp:25:
knutdock.h: At global scope:
knutdock.h:325: error: multiple parameters named ‘x’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/knutclient-0.9.3/work/knutclient-0.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/knutclient-0.9.3/work/knutclient-0.9.3'
make: *** [all] Error 2

Looking at the relevant file (src/knutdock.h:325), the problem is evident:
    void paintNumbers (int numbers, int x, int x, QPainter* p ); //x,y levy horni roh cisla 1

There are two parameters called "x", which is now an error both in gcc and g++.

The actual function definition is ok (from file src/knutdock.cpp:1018):
void KNutDock::paintNumbers (int numbers, int x, int y, QPainter* p ) {

I am including a patch to fix the problem.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-10-21 12:00:40 UTC
One bug should be enough.

*** This bug has been marked as a duplicate of bug 289987 ***
Comment 2 Israel G. Lugo 2009-10-21 12:04:24 UTC
(In reply to comment #1)
> One bug should be enough.
> 
> *** This bug has been marked as a duplicate of bug 289987 ***
> 

Humm didn't notice this, sorry. I received a server error from Bugzilla as I posted the original bug, that must have caused the duplicate. I've since emailed bugzilla@gentoo.org with the error page, as requested in the error message.