Opened 8 years ago

Closed 7 years ago

#54042 closed defect (fixed)

appstream-glib @0.6.10: error: ‘for’ loop initial declaration used outside C99 mode

Reported by: dliessi (Davide Liessi) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: appstream-glib

Description

Build failure on Mac OS X 10.6.8, Xcode 3.2.6.

Relevant parts of main.log (complete file attached):

:info:build as-app.c: In function ‘as_app_get_format_by_filename’:
:info:build as-app.c:929: error: ‘for’ loop initial declaration used outside C99 mode
:info:build as-app.c: In function ‘as_app_get_format_by_kind’:
:info:build as-app.c:952: error: ‘for’ loop initial declaration used outside C99 mode
:info:build as-app.c: In function ‘as_app_get_require_by_value’:
:info:build as-app.c:1315: error: ‘for’ loop initial declaration used outside C99 mode
:info:build as-app.c: In function ‘as_app_recalculate_state’:
:info:build as-app.c:2868: error: ‘for’ loop initial declaration used outside C99 mode
:info:build as-app.c: In function ‘as_app_add_format’:
[...]
:info:build as-app.c:2911: error: ‘for’ loop initial declaration used outside C99 mode

Attachments (1)

main.log.bz2 (10.3 KB) - added by dliessi (Davide Liessi) 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by dliessi (Davide Liessi)

Attachment: main.log.bz2 added

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: dbevans removed
Owner: set to dbevans
Status: newassigned

comment:2 Changed 8 years ago by dliessi (Davide Liessi)

comment:3 Changed 7 years ago by dliessi (Davide Liessi)

I tried adding configure.cflags-append -std=c99: the original error is gone, but the build stil fails with many lines like

:info:build as-node.c:1800: error: ‘AsNodeData’ has no member named ‘cdata’

Any ideas? Should I try with a later compiler? macports-gcc-4.9/5/6?

comment:4 Changed 7 years ago by dliessi (Davide Liessi)

I tried with configure.compiler=macports-gcc-6 and got

:info:build gcc-mp-6: error: unrecognized command line option '-iwithsysroot'; did you mean '-isysroot'?

comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Looks like 0.6.13 built successfully on Snow Leopard on our buildbot, so I assume this was resolved.

Note: See TracTickets for help on using tickets.