Opened 11 years ago

Closed 11 years ago

#631 closed Bug Report (fixed)

sord no compileio

Reported by: danboid Owned by: David Robillard
Priority: major Component: SLV2
Keywords: sord compile Cc:

Description

Build platform Debian squeeze (AV Linux 4.2)

iatn@principal:~/src/drobilla-lad/sord$ ./waf Waf: Entering directory `/home/iatn/src/drobilla-lad/sord/build' [1/5] c: src/sord.c -> build/src/sord.c.1.o ../src/sord.c: In function ‘sord_quad_compare’: ../src/sord.c:251:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c:251:2: note: use option -std=c99 or -std=gnu99 to compile your code ../src/sord.c: In function ‘sord_iter_forward’: ../src/sord.c:276:3: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_iter_seek_match_range’: ../src/sord.c:315:3: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_iter_new’: ../src/sord.c:339:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_iter_next’: ../src/sord.c:408:4: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_new’: ../src/sord.c:548:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_free’: ../src/sord.c:608:3: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c:616:16: error: conflicting types for ‘i’ ../src/sord.c:605:11: note: previous definition of ‘i’ was here ../src/sord.c:616:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_add’: ../src/sord.c:954:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c:963:11: error: conflicting types for ‘i’ ../src/sord.c:954:16: note: previous definition of ‘i’ was here ../src/sord.c:963:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_remove’: ../src/sord.c:975:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c:991:11: error: conflicting types for ‘i’ ../src/sord.c:975:16: note: previous definition of ‘i’ was here ../src/sord.c:991:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c: In function ‘sord_remove_iter’: ../src/sord.c:1007:2: error: ‘for’ loop initial declarations are only allowed in C99 mode ../src/sord.c:1022:11: error: conflicting types for ‘i’ ../src/sord.c:1007:16: note: previous definition of ‘i’ was here ../src/sord.c:1022:2: error: ‘for’ loop initial declarations are only allowed in C99 mode Waf: Leaving directory `/home/iatn/src/drobilla-lad/sord/build' Build failed

-> task failed (exit status 1):

{task 3070915052L: c sord.c -> sord.c.1.o}

['/usr/bin/gcc', '-DNDEBUG', '-fPIC', '-DPIC', '-fshow-column', '-I/home/iatn/src/drobilla-lad/sord/build', '-fvisibility=hidden', '-DSORD_SHARED', '-DSORD_INTERNAL', '-fPIC', '-I/home/iatn/src/drobilla-lad/sord/build', '-I/home/iatn/src/drobilla-lad/sord', '-I/home/iatn/src/drobilla-lad/sord/build/src', '-I/home/iatn/src/drobilla-lad/sord/src', '-I/usr/include/glib-2.0', '-I/usr/lib/glib-2.0/include', '-I/usr/local/include', '-I/home/iatn/src/drobilla-lad/sord/build', '../src/sord.c', '-c', '-o', 'src/sord.c.1.o']

Change History (1)

comment:1 Changed 11 years ago by David Robillard

Resolution: fixed
Status: newclosed

Fixed in r23.

Note: See TracTickets for help on using tickets.