I received the following compile error with cdrdao CVS version 20020910.
make[1]: Entering directory `/usr/src/cdrdao/paranoia'
make libcdda_paranoia.a CFLAGS="-O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 "
make[2]: Entering directory `/usr/src/cdrdao/paranoia'
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c paranoia.c
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c p_block.c
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c overlap.c
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c gap.c
In file included from p_block.h:23,
from gap.c:9:
isort.h:14: parse error before "int16_t"
isort.h:14: warning: no semicolon at end of struct or union
isort.h:32: parse error before '}' token
isort.h:32: warning: data definition has no type or storage class
isort.h:34: parse error before '*' token
isort.h:34: warning: data definition has no type or storage class
isort.h:35: parse error before '*' token
isort.h:36: parse error before '*' token
isort.h:38: parse error before '*' token
isort.h:39: parse error before '*' token
isort.h:40: parse error before '*' token
In file included from gap.c:9:
p_block.h:57: parse error before "int16_t"
p_block.h:57: warning: no semicolon at end of struct or union
p_block.h:77: parse error before '}' token
p_block.h:77: warning: data definition has no type or storage class
p_block.h:79: parse error before '*' token
p_block.h:80: parse error before '*' token
p_block.h:81: parse error before '*' token
p_block.h:81: warning: data definition has no type or storage class
p_block.h:84: parse error before "c_block"
p_block.h:84: warning: no semicolon at end of struct or union
p_block.h:88: parse error before '*' token
p_block.h:88: warning: data definition has no type or storage class
p_block.h:97: parse error before '}' token
p_block.h:97: warning: data definition has no type or storage class
p_block.h:99: parse error before '*' token
p_block.h:100: parse error before '*' token
p_block.h:100: parse error before "c_block"
p_block.h:101: warning: data definition has no type or storage class
p_block.h:102: parse error before '*' token
p_block.h:102: parse error before '*' token
p_block.h:102: warning: data definition has no type or storage class
p_block.h:104: parse error before '*' token
p_block.h:104: warning: data definition has no type or storage class
p_block.h:105: parse error before '*' token
p_block.h:105: warning: data definition has no type or storage class
p_block.h:106: parse error before '*' token
p_block.h:106: parse error before '*' token
p_block.h:106: warning: data definition has no type or storage class
p_block.h:107: parse error before '*' token
p_block.h:107: parse error before '*' token
p_block.h:107: warning: data definition has no type or storage class
p_block.h:109: parse error before '*' token
p_block.h:109: warning: data definition has no type or storage class
p_block.h:110: parse error before '*' token
p_block.h:110: warning: data definition has no type or storage class
p_block.h:111: parse error before '*' token
p_block.h:111: parse error before '*' token
p_block.h:111: warning: data definition has no type or storage class
p_block.h:112: parse error before '*' token
p_block.h:112: parse error before '*' token
p_block.h:112: warning: data definition has no type or storage class
p_block.h:119: parse error before "c_block"
p_block.h:119: warning: no semicolon at end of struct or union
p_block.h:122: parse error before '}' token
p_block.h:122: warning: data definition has no type or storage class
p_block.h:138: parse error before "root_block"
p_block.h:138: warning: no semicolon at end of struct or union
p_block.h:142: parse error before '*' token
p_block.h:142: warning: data definition has no type or storage class
p_block.h:162: parse error before '}' token
p_block.h:162: warning: data definition has no type or storage class
p_block.h:164: parse error before '*' token
p_block.h:164: parse error before '*' token
p_block.h:164: warning: data definition has no type or storage class
p_block.h:165: parse error before '*' token
p_block.h:166: parse error before '*' token
p_block.h:167: parse error before '*' token
p_block.h:168: parse error before '*' token
p_block.h:169: parse error before '*' token
p_block.h:170: parse error before '*' token
p_block.h:178: parse error before '*' token
p_block.h:179: parse error before '*' token
In file included from gap.c:10:
cdda_paranoia.h:44: parse error before '*' token
cdda_paranoia.h:44: warning: data definition has no type or storage class
cdda_paranoia.h:45: parse error before '*' token
cdda_paranoia.h:46: parse error before '*' token
cdda_paranoia.h:47: parse error before '*' token
cdda_paranoia.h:47: parse error before '*' token
cdda_paranoia.h:47: parse error before ')' token
cdda_paranoia.h:48: parse error before '*' token
cdda_paranoia.h:48: parse error before '*' token
cdda_paranoia.h:48: `paranoia_read_limited' declared as function returning a function
cdda_paranoia.h:48: parse error before "int"
cdda_paranoia.h:49: parse error before '*' token
cdda_paranoia.h:50: parse error before '*' token
cdda_paranoia.h:51: parse error before '*' token
In file included from gap.c:11:
gap.h:9: parse error before '*' token
gap.h:11: parse error before '*' token
gap.h:14: parse error before '*' token
gap.h:16: parse error before '*' token
gap.h:20: parse error before '*' token
gap.h:25: parse error before '*' token
gap.c:15: parse error before '*' token
gap.c: In function `i_paranoia_overlap_r':
gap.c:17: `offsetA' undeclared (first use in this function)
gap.c:17: (Each undeclared identifier is reported only once
gap.c:17: for each function it appears in.)
gap.c:18: `offsetB' undeclared (first use in this function)
gap.c:21: `buffA' undeclared (first use in this function)
gap.c:21: `buffB' undeclared (first use in this function)
gap.c: At top level:
gap.c:28: parse error before '*' token
gap.c: In function `i_paranoia_overlap_f':
gap.c:31: `offsetA' undeclared (first use in this function)
gap.c:32: `offsetB' undeclared (first use in this function)
gap.c:34: `sizeA' undeclared (first use in this function)
gap.c:34: `sizeB' undeclared (first use in this function)
gap.c:35: `buffA' undeclared (first use in this function)
gap.c:35: `buffB' undeclared (first use in this function)
gap.c: At top level:
gap.c:40: parse error before '*' token
gap.c: In function `i_stutter_or_gap':
gap.c:42: `offA' undeclared (first use in this function)
gap.c:43: `offB' undeclared (first use in this function)
gap.c:47: `gap' undeclared (first use in this function)
gap.c:51: `A' undeclared (first use in this function)
gap.c:51: `B' undeclared (first use in this function)
gap.c: At top level:
gap.c:55: parse error before '*' token
gap.c: In function `i_analyze_rift_f':
gap.c:60: `sizeA' undeclared (first use in this function)
gap.c:60: `aoffset' undeclared (first use in this function)
gap.c:61: `sizeB' undeclared (first use in this function)
gap.c:61: `boffset' undeclared (first use in this function)
gap.c:64: `matchA' undeclared (first use in this function)
gap.c:64: `matchB' undeclared (first use in this function)
gap.c:64: `matchC' undeclared (first use in this function)
gap.c:71: `A' undeclared (first use in this function)
gap.c:71: `B' undeclared (first use in this function)
gap.c: At top level:
gap.c:111: parse error before '*' token
gap.c: In function `i_analyze_rift_r':
gap.c:116: `aoffset' undeclared (first use in this function)
gap.c:117: `boffset' undeclared (first use in this function)
gap.c:120: `matchA' undeclared (first use in this function)
gap.c:120: `matchB' undeclared (first use in this function)
gap.c:120: `matchC' undeclared (first use in this function)
gap.c:127: `A' undeclared (first use in this function)
gap.c:127: `B' undeclared (first use in this function)
gap.c: At top level:
gap.c:165: parse error before '*' token
gap.c: In function `analyze_rift_silence_f':
gap.c:168: `matchA' undeclared (first use in this function)
gap.c:169: `matchB' undeclared (first use in this function)
gap.c:171: `sizeA' undeclared (first use in this function)
gap.c:171: `aoffset' undeclared (first use in this function)
gap.c:172: `sizeB' undeclared (first use in this function)
gap.c:172: `boffset' undeclared (first use in this function)
gap.c:178: `A' undeclared (first use in this function)
gap.c:186: `B' undeclared (first use in this function)
make[2]: *** [gap.o] Error 1
make[2]: Leaving directory `/usr/src/cdrdao/paranoia'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/cdrdao/paranoia'
make: *** [all] Error 1
I am using gcc-3.2 in case it matters.
Erik Vaughn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I received the following compile error with cdrdao CVS version 20020910.
make[1]: Entering directory `/usr/src/cdrdao/paranoia'
make libcdda_paranoia.a CFLAGS="-O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 "
make[2]: Entering directory `/usr/src/cdrdao/paranoia'
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c paranoia.c
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c p_block.c
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c overlap.c
gcc -O20 -ffast-math -fsigned-char -finline-functions -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -c gap.c
In file included from p_block.h:23,
from gap.c:9:
isort.h:14: parse error before "int16_t"
isort.h:14: warning: no semicolon at end of struct or union
isort.h:32: parse error before '}' token
isort.h:32: warning: data definition has no type or storage class
isort.h:34: parse error before '*' token
isort.h:34: warning: data definition has no type or storage class
isort.h:35: parse error before '*' token
isort.h:36: parse error before '*' token
isort.h:38: parse error before '*' token
isort.h:39: parse error before '*' token
isort.h:40: parse error before '*' token
In file included from gap.c:9:
p_block.h:57: parse error before "int16_t"
p_block.h:57: warning: no semicolon at end of struct or union
p_block.h:77: parse error before '}' token
p_block.h:77: warning: data definition has no type or storage class
p_block.h:79: parse error before '*' token
p_block.h:80: parse error before '*' token
p_block.h:81: parse error before '*' token
p_block.h:81: warning: data definition has no type or storage class
p_block.h:84: parse error before "c_block"
p_block.h:84: warning: no semicolon at end of struct or union
p_block.h:88: parse error before '*' token
p_block.h:88: warning: data definition has no type or storage class
p_block.h:97: parse error before '}' token
p_block.h:97: warning: data definition has no type or storage class
p_block.h:99: parse error before '*' token
p_block.h:100: parse error before '*' token
p_block.h:100: parse error before "c_block"
p_block.h:101: warning: data definition has no type or storage class
p_block.h:102: parse error before '*' token
p_block.h:102: parse error before '*' token
p_block.h:102: warning: data definition has no type or storage class
p_block.h:104: parse error before '*' token
p_block.h:104: warning: data definition has no type or storage class
p_block.h:105: parse error before '*' token
p_block.h:105: warning: data definition has no type or storage class
p_block.h:106: parse error before '*' token
p_block.h:106: parse error before '*' token
p_block.h:106: warning: data definition has no type or storage class
p_block.h:107: parse error before '*' token
p_block.h:107: parse error before '*' token
p_block.h:107: warning: data definition has no type or storage class
p_block.h:109: parse error before '*' token
p_block.h:109: warning: data definition has no type or storage class
p_block.h:110: parse error before '*' token
p_block.h:110: warning: data definition has no type or storage class
p_block.h:111: parse error before '*' token
p_block.h:111: parse error before '*' token
p_block.h:111: warning: data definition has no type or storage class
p_block.h:112: parse error before '*' token
p_block.h:112: parse error before '*' token
p_block.h:112: warning: data definition has no type or storage class
p_block.h:119: parse error before "c_block"
p_block.h:119: warning: no semicolon at end of struct or union
p_block.h:122: parse error before '}' token
p_block.h:122: warning: data definition has no type or storage class
p_block.h:138: parse error before "root_block"
p_block.h:138: warning: no semicolon at end of struct or union
p_block.h:142: parse error before '*' token
p_block.h:142: warning: data definition has no type or storage class
p_block.h:162: parse error before '}' token
p_block.h:162: warning: data definition has no type or storage class
p_block.h:164: parse error before '*' token
p_block.h:164: parse error before '*' token
p_block.h:164: warning: data definition has no type or storage class
p_block.h:165: parse error before '*' token
p_block.h:166: parse error before '*' token
p_block.h:167: parse error before '*' token
p_block.h:168: parse error before '*' token
p_block.h:169: parse error before '*' token
p_block.h:170: parse error before '*' token
p_block.h:178: parse error before '*' token
p_block.h:179: parse error before '*' token
In file included from gap.c:10:
cdda_paranoia.h:44: parse error before '*' token
cdda_paranoia.h:44: warning: data definition has no type or storage class
cdda_paranoia.h:45: parse error before '*' token
cdda_paranoia.h:46: parse error before '*' token
cdda_paranoia.h:47: parse error before '*' token
cdda_paranoia.h:47: parse error before '*' token
cdda_paranoia.h:47: parse error before ')' token
cdda_paranoia.h:48: parse error before '*' token
cdda_paranoia.h:48: parse error before '*' token
cdda_paranoia.h:48: `paranoia_read_limited' declared as function returning a function
cdda_paranoia.h:48: parse error before "int"
cdda_paranoia.h:49: parse error before '*' token
cdda_paranoia.h:50: parse error before '*' token
cdda_paranoia.h:51: parse error before '*' token
In file included from gap.c:11:
gap.h:9: parse error before '*' token
gap.h:11: parse error before '*' token
gap.h:14: parse error before '*' token
gap.h:16: parse error before '*' token
gap.h:20: parse error before '*' token
gap.h:25: parse error before '*' token
gap.c:15: parse error before '*' token
gap.c: In function `i_paranoia_overlap_r':
gap.c:17: `offsetA' undeclared (first use in this function)
gap.c:17: (Each undeclared identifier is reported only once
gap.c:17: for each function it appears in.)
gap.c:18: `offsetB' undeclared (first use in this function)
gap.c:21: `buffA' undeclared (first use in this function)
gap.c:21: `buffB' undeclared (first use in this function)
gap.c: At top level:
gap.c:28: parse error before '*' token
gap.c: In function `i_paranoia_overlap_f':
gap.c:31: `offsetA' undeclared (first use in this function)
gap.c:32: `offsetB' undeclared (first use in this function)
gap.c:34: `sizeA' undeclared (first use in this function)
gap.c:34: `sizeB' undeclared (first use in this function)
gap.c:35: `buffA' undeclared (first use in this function)
gap.c:35: `buffB' undeclared (first use in this function)
gap.c: At top level:
gap.c:40: parse error before '*' token
gap.c: In function `i_stutter_or_gap':
gap.c:42: `offA' undeclared (first use in this function)
gap.c:43: `offB' undeclared (first use in this function)
gap.c:47: `gap' undeclared (first use in this function)
gap.c:51: `A' undeclared (first use in this function)
gap.c:51: `B' undeclared (first use in this function)
gap.c: At top level:
gap.c:55: parse error before '*' token
gap.c: In function `i_analyze_rift_f':
gap.c:60: `sizeA' undeclared (first use in this function)
gap.c:60: `aoffset' undeclared (first use in this function)
gap.c:61: `sizeB' undeclared (first use in this function)
gap.c:61: `boffset' undeclared (first use in this function)
gap.c:64: `matchA' undeclared (first use in this function)
gap.c:64: `matchB' undeclared (first use in this function)
gap.c:64: `matchC' undeclared (first use in this function)
gap.c:71: `A' undeclared (first use in this function)
gap.c:71: `B' undeclared (first use in this function)
gap.c: At top level:
gap.c:111: parse error before '*' token
gap.c: In function `i_analyze_rift_r':
gap.c:116: `aoffset' undeclared (first use in this function)
gap.c:117: `boffset' undeclared (first use in this function)
gap.c:120: `matchA' undeclared (first use in this function)
gap.c:120: `matchB' undeclared (first use in this function)
gap.c:120: `matchC' undeclared (first use in this function)
gap.c:127: `A' undeclared (first use in this function)
gap.c:127: `B' undeclared (first use in this function)
gap.c: At top level:
gap.c:165: parse error before '*' token
gap.c: In function `analyze_rift_silence_f':
gap.c:168: `matchA' undeclared (first use in this function)
gap.c:169: `matchB' undeclared (first use in this function)
gap.c:171: `sizeA' undeclared (first use in this function)
gap.c:171: `aoffset' undeclared (first use in this function)
gap.c:172: `sizeB' undeclared (first use in this function)
gap.c:172: `boffset' undeclared (first use in this function)
gap.c:178: `A' undeclared (first use in this function)
gap.c:186: `B' undeclared (first use in this function)
make[2]: *** [gap.o] Error 1
make[2]: Leaving directory `/usr/src/cdrdao/paranoia'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/cdrdao/paranoia'
make: *** [all] Error 1
I am using gcc-3.2 in case it matters.
Erik Vaughn