| Summary: | iputils fails to compile with gcc 3.4 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Harald van Dijk (RETIRED) <truedfx> |
| Component: | Current packages | Assignee: | 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 | ||
Created attachment 28875 [details, diff]
Simple patch to make iputils compile with gcc 3.4
Re-assigning... fixed in iputils-021109-r2 thanks |
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.