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

Bug 571572

Summary: app-text/llpp-22: link.c:3837:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Product: Gentoo Linux Reporter: Scott Alfter <scott>
Component: Current packagesAssignee: Michael Weber (RETIRED) <xmw>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
patch to fix llpp so it'll build

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