#67 compilation of io_lib from 1.10 up fails on Mac OS X

closed-fixed
None
5
2008-02-20
2007-11-26
Chris Fields
No

io_lib v1.10 and higher (including the latest libs) fail compilation on Mac OS X (10.4.11, x86 Core Duo). io_lib 1.9.2 and earlier compile w/o problems.

I have tested this both on a MacBook and a Mac Pro (quad core), both which exit with the same error. The following is using the latest, 1.12.b5:

make all-recursive
Making all in io_lib
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-Read.o -MD -MP -MF ".deps/libread_a-Read.Tpo" -c -o libread_a-Read.o `test -f 'Read.c' || echo './'`Read.c; \ then mv -f ".deps/libread_a-Read.Tpo" ".deps/libread_a-Read.Po"; else rm -f ".deps/libread_a-Read.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-scf_extras.o -MD -MP -MF ".deps/libread_a-scf_extras.Tpo" -c -o libread_a-scf_extras.o `test -f 'scf_extras.c' || echo './'`scf_extras.c; \ then mv -f ".deps/libread_a-scf_extras.Tpo" ".deps/libread_a-scf_extras.Po"; else rm -f ".deps/libread_a-scf_extras.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-translate.o -MD -MP -MF ".deps/libread_a-translate.Tpo" -c -o libread_a-translate.o `test -f 'translate.c' || echo './'`translate.c; \ then mv -f ".deps/libread_a-translate.Tpo" ".deps/libread_a-translate.Po"; else rm -f ".deps/libread_a-translate.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-compression.o -MD -MP -MF ".deps/libread_a-compression.Tpo" -c -o libread_a-compression.o `test -f 'compression.c' || echo './'`compression.c; \ then mv -f ".deps/libread_a-compression.Tpo" ".deps/libread_a-compression.Po"; else rm -f ".deps/libread_a-compression.Tpo"; exit 1; fi
compression.c: In function 'sthuff':
compression.c:2036: warning: pointer targets in passing argument 3 of 'generate_code_set' differ in signedness
compression.c:2080: warning: pointer targets in return differ in signedness
compression.c: In function 'unsthuff':
compression.c:2157: warning: pointer targets in assignment differ in signedness
compression.c: In function 'qshift':
compression.c:2237: warning: pointer targets in assignment differ in signedness
compression.c: In function 'unqshift':
compression.c:2272: warning: pointer targets in assignment differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-ztr.o -MD -MP -MF ".deps/libread_a-ztr.Tpo" -c -o libread_a-ztr.o `test -f 'ztr.c' || echo './'`ztr.c; \ then mv -f ".deps/libread_a-ztr.Tpo" ".deps/libread_a-ztr.Po"; else rm -f ".deps/libread_a-ztr.Tpo"; exit 1; fi
ztr.c: In function 'ztr_find_hcode':
ztr.c:574: warning: pointer targets in passing argument 1 of 'block_create' differ in signedness
ztr.c: In function 'ztr_store_hcodes':
ztr.c:659: warning: pointer targets in assignment differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-ztr_translate.o -MD -MP -MF ".deps/libread_a-ztr_translate.Tpo" -c -o libread_a-ztr_translate.o `test -f 'ztr_translate.c' || echo './'`ztr_translate.c; \ then mv -f ".deps/libread_a-ztr_translate.Tpo" ".deps/libread_a-ztr_translate.Po"; else rm -f ".deps/libread_a-ztr_translate.Tpo"; exit 1; fi
ztr_translate.c: In function 'ztr_decode_samples_4':
ztr_translate.c:63: warning: pointer targets in initialization differ in signedness
ztr_translate.c: In function 'ztr_decode_samples':
ztr_translate.c:190: warning: pointer targets in initialization differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-deflate_interlaced.o -MD -MP -MF ".deps/libread_a-deflate_interlaced.Tpo" -c -o libread_a-deflate_interlaced.o `test -f 'deflate_interlaced.c' || echo './'`deflate_interlaced.c; \ then mv -f ".deps/libread_a-deflate_interlaced.Tpo" ".deps/libread_a-deflate_interlaced.Po"; else rm -f ".deps/libread_a-deflate_interlaced.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-fpoint.o -MD -MP -MF ".deps/libread_a-fpoint.Tpo" -c -o libread_a-fpoint.o `test -f 'fpoint.c' || echo './'`fpoint.c; \ then mv -f ".deps/libread_a-fpoint.Tpo" ".deps/libread_a-fpoint.Po"; else rm -f ".deps/libread_a-fpoint.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-seqIOABI.o -MD -MP -MF ".deps/libread_a-seqIOABI.Tpo" -c -o libread_a-seqIOABI.o `test -f 'seqIOABI.c' || echo './'`seqIOABI.c; \ then mv -f ".deps/libread_a-seqIOABI.Tpo" ".deps/libread_a-seqIOABI.Po"; else rm -f ".deps/libread_a-seqIOABI.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-seqIOALF.o -MD -MP -MF ".deps/libread_a-seqIOALF.Tpo" -c -o libread_a-seqIOALF.o `test -f 'seqIOALF.c' || echo './'`seqIOALF.c; \ then mv -f ".deps/libread_a-seqIOALF.Tpo" ".deps/libread_a-seqIOALF.Po"; else rm -f ".deps/libread_a-seqIOALF.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-ctfCompress.o -MD -MP -MF ".deps/libread_a-ctfCompress.Tpo" -c -o libread_a-ctfCompress.o `test -f 'ctfCompress.c' || echo './'`ctfCompress.c; \ then mv -f ".deps/libread_a-ctfCompress.Tpo" ".deps/libread_a-ctfCompress.Po"; else rm -f ".deps/libread_a-ctfCompress.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-seqIOCTF.o -MD -MP -MF ".deps/libread_a-seqIOCTF.Tpo" -c -o libread_a-seqIOCTF.o `test -f 'seqIOCTF.c' || echo './'`seqIOCTF.c; \ then mv -f ".deps/libread_a-seqIOCTF.Tpo" ".deps/libread_a-seqIOCTF.Po"; else rm -f ".deps/libread_a-seqIOCTF.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-expFileIO.o -MD -MP -MF ".deps/libread_a-expFileIO.Tpo" -c -o libread_a-expFileIO.o `test -f 'expFileIO.c' || echo './'`expFileIO.c; \ then mv -f ".deps/libread_a-expFileIO.Tpo" ".deps/libread_a-expFileIO.Po"; else rm -f ".deps/libread_a-expFileIO.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-seqIOPlain.o -MD -MP -MF ".deps/libread_a-seqIOPlain.Tpo" -c -o libread_a-seqIOPlain.o `test -f 'seqIOPlain.c' || echo './'`seqIOPlain.c; \ then mv -f ".deps/libread_a-seqIOPlain.Tpo" ".deps/libread_a-seqIOPlain.Po"; else rm -f ".deps/libread_a-seqIOPlain.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-misc_scf.o -MD -MP -MF ".deps/libread_a-misc_scf.Tpo" -c -o libread_a-misc_scf.o `test -f 'misc_scf.c' || echo './'`misc_scf.c; \ then mv -f ".deps/libread_a-misc_scf.Tpo" ".deps/libread_a-misc_scf.Po"; else rm -f ".deps/libread_a-misc_scf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-read_scf.o -MD -MP -MF ".deps/libread_a-read_scf.Tpo" -c -o libread_a-read_scf.o `test -f 'read_scf.c' || echo './'`read_scf.c; \ then mv -f ".deps/libread_a-read_scf.Tpo" ".deps/libread_a-read_scf.Po"; else rm -f ".deps/libread_a-read_scf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-write_scf.o -MD -MP -MF ".deps/libread_a-write_scf.Tpo" -c -o libread_a-write_scf.o `test -f 'write_scf.c' || echo './'`write_scf.c; \ then mv -f ".deps/libread_a-write_scf.Tpo" ".deps/libread_a-write_scf.Po"; else rm -f ".deps/libread_a-write_scf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-sff.o -MD -MP -MF ".deps/libread_a-sff.Tpo" -c -o libread_a-sff.o `test -f 'sff.c' || echo './'`sff.c; \ then mv -f ".deps/libread_a-sff.Tpo" ".deps/libread_a-sff.Po"; else rm -f ".deps/libread_a-sff.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-srf.o -MD -MP -MF ".deps/libread_a-srf.Tpo" -c -o libread_a-srf.o `test -f 'srf.c' || echo './'`srf.c; \ then mv -f ".deps/libread_a-srf.Tpo" ".deps/libread_a-srf.Po"; else rm -f ".deps/libread_a-srf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-array.o -MD -MP -MF ".deps/libread_a-array.Tpo" -c -o libread_a-array.o `test -f 'array.c' || echo './'`array.c; \ then mv -f ".deps/libread_a-array.Tpo" ".deps/libread_a-array.Po"; else rm -f ".deps/libread_a-array.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-compress.o -MD -MP -MF ".deps/libread_a-compress.Tpo" -c -o libread_a-compress.o `test -f 'compress.c' || echo './'`compress.c; \ then mv -f ".deps/libread_a-compress.Tpo" ".deps/libread_a-compress.Po"; else rm -f ".deps/libread_a-compress.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-error.o -MD -MP -MF ".deps/libread_a-error.Tpo" -c -o libread_a-error.o `test -f 'error.c' || echo './'`error.c; \ then mv -f ".deps/libread_a-error.Tpo" ".deps/libread_a-error.Po"; else rm -f ".deps/libread_a-error.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-files.o -MD -MP -MF ".deps/libread_a-files.Tpo" -c -o libread_a-files.o `test -f 'files.c' || echo './'`files.c; \ then mv -f ".deps/libread_a-files.Tpo" ".deps/libread_a-files.Po"; else rm -f ".deps/libread_a-files.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-find.o -MD -MP -MF ".deps/libread_a-find.Tpo" -c -o libread_a-find.o `test -f 'find.c' || echo './'`find.c; \ then mv -f ".deps/libread_a-find.Tpo" ".deps/libread_a-find.Po"; else rm -f ".deps/libread_a-find.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-mach-io.o -MD -MP -MF ".deps/libread_a-mach-io.Tpo" -c -o libread_a-mach-io.o `test -f 'mach-io.c' || echo './'`mach-io.c; \ then mv -f ".deps/libread_a-mach-io.Tpo" ".deps/libread_a-mach-io.Po"; else rm -f ".deps/libread_a-mach-io.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-open_trace_file.o -MD -MP -MF ".deps/libread_a-open_trace_file.Tpo" -c -o libread_a-open_trace_file.o `test -f 'open_trace_file.c' || echo './'`open_trace_file.c; \ then mv -f ".deps/libread_a-open_trace_file.Tpo" ".deps/libread_a-open_trace_file.Po"; else rm -f ".deps/libread_a-open_trace_file.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-read_alloc.o -MD -MP -MF ".deps/libread_a-read_alloc.Tpo" -c -o libread_a-read_alloc.o `test -f 'read_alloc.c' || echo './'`read_alloc.c; \ then mv -f ".deps/libread_a-read_alloc.Tpo" ".deps/libread_a-read_alloc.Po"; else rm -f ".deps/libread_a-read_alloc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-strings.o -MD -MP -MF ".deps/libread_a-strings.Tpo" -c -o libread_a-strings.o `test -f 'strings.c' || echo './'`strings.c; \ then mv -f ".deps/libread_a-strings.Tpo" ".deps/libread_a-strings.Po"; else rm -f ".deps/libread_a-strings.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-traceType.o -MD -MP -MF ".deps/libread_a-traceType.Tpo" -c -o libread_a-traceType.o `test -f 'traceType.c' || echo './'`traceType.c; \ then mv -f ".deps/libread_a-traceType.Tpo" ".deps/libread_a-traceType.Po"; else rm -f ".deps/libread_a-traceType.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-xalloc.o -MD -MP -MF ".deps/libread_a-xalloc.Tpo" -c -o libread_a-xalloc.o `test -f 'xalloc.c' || echo './'`xalloc.c; \ then mv -f ".deps/libread_a-xalloc.Tpo" ".deps/libread_a-xalloc.Po"; else rm -f ".deps/libread_a-xalloc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-vlen.o -MD -MP -MF ".deps/libread_a-vlen.Tpo" -c -o libread_a-vlen.o `test -f 'vlen.c' || echo './'`vlen.c; \ then mv -f ".deps/libread_a-vlen.Tpo" ".deps/libread_a-vlen.Po"; else rm -f ".deps/libread_a-vlen.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -g -O2 -MT libread_a-hash_table.o -MD -MP -MF ".deps/libread_a-hash_table.Tpo" -c -o libread_a-hash_table.o `test -f 'hash_table.c' || echo './'`hash_table.c; \ then mv -f ".deps/libread_a-hash_table.Tpo" ".deps/libread_a-hash_table.Po"; else rm -f ".deps/libread_a-hash_table.Tpo"; exit 1; fi
In file included from hash_table.c:5:
../io_lib/hash_table.h:93: error: parse error before 'off_t'
../io_lib/hash_table.h:93: warning: no semicolon at end of struct or union
../io_lib/hash_table.h:94: warning: data definition has no type or storage class
../io_lib/hash_table.h:131: error: parse error before '*' token
../io_lib/hash_table.h:132: error: parse error before '*' token
../io_lib/hash_table.h:132: warning: data definition has no type or storage class
../io_lib/hash_table.h:133: error: parse error before '*' token
../io_lib/hash_table.h:134: error: parse error before '*' token
../io_lib/hash_table.h:137: error: parse error before '*' token
../io_lib/hash_table.h:137: warning: data definition has no type or storage class
../io_lib/hash_table.h:138: error: parse error before '*' token
../io_lib/hash_table.h:139: error: parse error before '*' token
../io_lib/hash_table.h:139: warning: data definition has no type or storage class
../io_lib/hash_table.h:140: error: parse error before '*' token
../io_lib/hash_table.h:140: warning: data definition has no type or storage class
hash_table.c:761: error: parse error before '*' token
hash_table.c: In function 'HashFileSave':
hash_table.c:766: error: 'hf' undeclared (first use in this function)
hash_table.c:766: error: (Each undeclared identifier is reported only once
hash_table.c:766: error: for each function it appears in.)
hash_table.c:799: error: 'offset' undeclared (first use in this function)
hash_table.c:803: error: 'fp' undeclared (first use in this function)
hash_table.c: At top level:
hash_table.c:888: error: parse error before '*' token
hash_table.c: In function 'HashFileLoad_old':
hash_table.c:892: error: 'hf' undeclared (first use in this function)
hash_table.c:898: error: parse error before ')' token
hash_table.c: At top level:
hash_table.c:1008: error: parse error before '*' token
hash_table.c: In function 'HashFileFopen':
hash_table.c:1009: error: 'hf' undeclared (first use in this function)
hash_table.c:1029: error: 'off_t' undeclared (first use in this function)
hash_table.c:1029: error: parse error before 'sizeof'
hash_table.c: At top level:
hash_table.c:1099: error: parse error before '*' token
hash_table.c: In function 'HashFileOpen':
hash_table.c:1101: error: 'hf' undeclared (first use in this function)
hash_table.c: At top level:
hash_table.c:1133: error: parse error before '*' token
hash_table.c: In function 'HashFileLoad':
hash_table.c:1134: error: 'hf' undeclared (first use in this function)
hash_table.c:1136: error: 'off_t' undeclared (first use in this function)
hash_table.c:1136: error: parse error before 'htable_pos'
hash_table.c:1166: error: 'htable_pos' undeclared (first use in this function)
hash_table.c: At top level:
hash_table.c:1237: error: parse error before '*' token
hash_table.c: In function 'HashFileQuery':
hash_table.c:1245: error: 'hf' undeclared (first use in this function)
hash_table.c:1245: error: 'key' undeclared (first use in this function)
hash_table.c:1245: error: 'key_len' undeclared (first use in this function)
hash_table.c:1271: error: 'item' undeclared (first use in this function)
hash_table.c: At top level:
hash_table.c:1287: error: parse error before '*' token
hash_table.c: In function 'HashFileCreate':
hash_table.c:1288: error: 'hf' undeclared (first use in this function)
hash_table.c:1290: error: parse error before ')' token
hash_table.c: At top level:
hash_table.c:1298: error: parse error before '*' token
hash_table.c: In function 'HashFileDestroy':
hash_table.c:1299: error: 'hf' undeclared (first use in this function)
hash_table.c: At top level:
hash_table.c:1334: error: parse error before '*' token
hash_table.c: In function 'HashFileExtract':
hash_table.c:1341: error: 'hf' undeclared (first use in this function)
hash_table.c:1341: error: 'fname' undeclared (first use in this function)
hash_table.c:1354: error: 'len' undeclared (first use in this function)
make[2]: *** [libread_a-hash_table.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Discussion

  • Logged In: NO

    While I cannot contribute to why you received the errors, I can confirm that 1.12.b5 compiled successfully on my Intel Mac (10.5.1).

     
  • Chris Fields
    Chris Fields
    2007-11-28

    Logged In: YES
    user_id=1327166
    Originator: YES

    Upgrading to Leopard works for me as well. It appears to be a problem with some of the gcc library header files on the two machines; they were both using Tiger with the latest Dev Tool upgrades prior to Leopard.

     
  • James Bonfield
    James Bonfield
    2008-02-20

    • assigned_to: nobody --> jkbonfield
    • status: open --> open-fixed
     
  • James Bonfield
    James Bonfield
    2008-02-20

    Logged In: YES
    user_id=154581
    Originator: NO

    I just tested 1.11.0 on a (somewhat aging) MacOS X system and it built cleanly. So I believe the error to have been fixed.

    Thanks for the bug report,

    James

     
  • James Bonfield
    James Bonfield
    2008-02-20

    • status: open-fixed --> closed-fixed