Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571572 - app-text/llpp-22: link.c:3837:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Summary: app-text/llpp-22: link.c:3837:5: error: ‘for’ loop initial declarations are o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-11 18:45 UTC by Scott Alfter
Modified: 2016-01-14 07:59 UTC (History)
0 users

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


Attachments
emerge --info (file_571572.txt,6.22 KB, text/plain)
2016-01-11 18:46 UTC, Scott Alfter
Details
patch to fix llpp so it'll build (no-for-loop-declarations.patch,359 bytes, patch)
2016-01-11 18:48 UTC, Scott Alfter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2016-01-11 18:45:26 UTC
llpp-22 fails to build, ending with the error given above.  A patch that fixes this will be attached shortly.

Reproducible: Always
Comment 1 Scott Alfter 2016-01-11 18:46:15 UTC
Created attachment 422578 [details]
emerge --info
Comment 2 Scott Alfter 2016-01-11 18:48:13 UTC
Created attachment 422580 [details, diff]
patch to fix llpp so it'll build

Copy this to /etc/portage/patches/app-text/llpp-22 until it finds its way into Portage (or upstream fixes its code).
Comment 3 Michael Weber (RETIRED) gentoo-dev 2016-01-14 07:59:43 UTC
This is no upstream issue, I don't use upstreams build script and forgot to set `-std=c99` for gcc-4.9, because my default gcc-5.3 doesn't need this.

It's fixed in tree and should propagate via rsync by now.

commit fc31b82604ef2d4b6c55d60f52bbb410c809b5ea
Author: Michael Weber <xmw@gentoo.org>
Date:   Tue Jan 12 23:34:00 2016 +0100

    app-text/llpp: adopt -std=c99 for gcc-4.9 and some other -W flags form upstream (thanks kaste for the report).
    
    Package-Manager: portage-2.2.26

app-text/llpp/llpp-22.ebuild
app-text/llpp/llpp-9999.ebuild