Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47189

Summary: iputils fails to compile with gcc 3.4
Product: Gentoo Linux Reporter: Harald van Dijk (RETIRED) <truedfx>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Simple patch to make iputils compile with gcc 3.4

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