Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47189 - iputils fails to compile with gcc 3.4
Summary: iputils fails to compile with gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 00:42 UTC by Harald van Dijk (RETIRED)
Modified: 2004-04-19 19:39 UTC (History)
0 users

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


Attachments
Simple patch to make iputils compile with gcc 3.4 (kmpstat.patch,95 bytes, patch)
2004-04-08 00:44 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2004-04-08 00:42:23 UTC
It's really a minor bug right now, since with gcc 3.3 there's no problem, but since I believe the bug's in iputils (021109-r2), not gcc 3.4, I thought I'd submit a report anyway. gcc 3.4 requires that labels, in this case "default:", are followed by a statement. Add a semicolon and it compiles without a problem. I created a simple patch that shouldn't cause any problems on older versions of gcc.

Reproducible: Always
Steps to Reproduce:
1. emerge iputils
Actual Results:  
kmpstat.c: In function `com_recv':
kmpstat.c:370: error: label at end of compound statement

Expected Results:  
It should have compiled :)

I don't know if this works right if I just put the patch here (this is my first
bug report), so I'll try to attach it instead. I saved it as kmpstat.patch and
added a "epatch ${FILESDIR}/kmpstat.patch" line in the ebuild directly after the
last one. Hope it helped.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2004-04-08 00:44:06 UTC
Created attachment 28875 [details, diff]
Simple patch to make iputils compile with gcc 3.4
Comment 2 Joshua Kinard gentoo-dev 2004-04-08 02:55:36 UTC
Re-assigning...
Comment 3 SpanKY gentoo-dev 2004-04-19 19:39:43 UTC
fixed in iputils-021109-r2

thanks