libsndfile1-1.0.17-2 won't compile on 10.5/Intel, failing with: gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include -g -O2 -std=gnu99 -W - Wall -Wdeclaration-after-statement -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad- function-cast -Wwrite-strings -pipe -fpascal-strings -I/Developer/ Headers/FlatCarbon -c xi.c -o xi.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include -g -O2 -std=gnu99 -W -Wall -Wdeclaration-after- statement -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes - Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite- strings -pipe -fpascal-strings -I/Developer/Headers/FlatCarbon -c -o flac.lo flac.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include -g -O2 -std=gnu99 -W - Wall -Wdeclaration-after-statement -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad- function-cast -Wwrite-strings -pipe -fpascal-strings -I/Developer/ Headers/FlatCarbon -c flac.c -fno-common -DPIC -o .libs/flac.o flac.c:63: error: syntax error before 'FLAC__SeekableStreamDecoder' flac.c:63: warning: no semicolon at end of struct or union flac.c:64: warning: type defaults to 'int' in declaration of 'fse' flac.c:64: warning: data definition has no type or storage class flac.c:77: error: syntax error before '}' token flac.c:77: warning: type defaults to 'int' in declaration of 'FLAC_PRIVATE' flac.c:77: warning: data definition has no type or storage class flac.c:111: error: syntax error before 'sf_flac_read_callback' flac.c:111: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:111: error: syntax error before '*' token flac.c:111: warning: type defaults to 'int' in declaration of 'sf_flac_read_callback' flac.c:111: warning: function declaration isn't a prototype flac.c:111: warning: data definition has no type or storage class flac.c:112: error: syntax error before 'sf_flac_seek_callback' flac.c:112: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:112: error: syntax error before '*' token flac.c:112: warning: type defaults to 'int' in declaration of 'sf_flac_seek_callback' flac.c:112: warning: function declaration isn't a prototype flac.c:112: warning: data definition has no type or storage class flac.c:113: error: syntax error before 'sf_flac_tell_callback' flac.c:113: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:113: error: syntax error before '*' token flac.c:113: warning: type defaults to 'int' in declaration of 'sf_flac_tell_callback' flac.c:113: warning: function declaration isn't a prototype flac.c:113: warning: data definition has no type or storage class flac.c:114: error: syntax error before 'sf_flac_length_callback' flac.c:114: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:114: error: syntax error before '*' token flac.c:114: warning: type defaults to 'int' in declaration of 'sf_flac_length_callback' flac.c:114: warning: function declaration isn't a prototype flac.c:114: warning: data definition has no type or storage class flac.c:115: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:115: error: syntax error before '*' token flac.c:115: warning: function declaration isn't a prototype flac.c:116: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:116: error: syntax error before '*' token flac.c:116: warning: function declaration isn't a prototype flac.c:117: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:117: error: syntax error before '*' token flac.c:117: warning: function declaration isn't a prototype flac.c:118: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:118: error: syntax error before '*' token flac.c:118: warning: function declaration isn't a prototype flac.c:121: error: syntax error before 'sf_flac_enc_seek_callback' flac.c:121: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamEncoder' flac.c:121: error: syntax error before '*' token flac.c:121: warning: type defaults to 'int' in declaration of 'sf_flac_enc_seek_callback' flac.c:121: warning: function declaration isn't a prototype flac.c:121: warning: data definition has no type or storage class flac.c:125: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamEncoder' flac.c:125: error: syntax error before '*' token flac.c:125: warning: function declaration isn't a prototype flac.c: In function 'flac_buffer_copy': flac.c:170: error: 'pflac' undeclared (first use in this function) flac.c:170: error: (Each undeclared identifier is reported only once flac.c:170: error: for each function it appears in.) flac.c:170: error: syntax error before ')' token flac.c: At top level: flac.c:287: error: syntax error before 'sf_flac_read_callback' flac.c:287: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:287: error: syntax error before '*' token flac.c:290: warning: type defaults to 'int' in declaration of 'bytes' flac.c:290: error: 'buffer' undeclared here (not in a function) flac.c:290: error: 'psf' undeclared here (not in a function) flac.c:290: warning: initialization makes pointer from integer without a cast flac.c:290: error: initializer element is not constant flac.c:290: warning: data definition has no type or storage class flac.c:291: error: syntax error before 'if' flac.c:298: error: syntax error before 'sf_flac_seek_callback' flac.c:298: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:298: error: syntax error before '*' token flac.c:301: error: syntax error before numeric constant flac.c:301: warning: type defaults to 'int' in declaration of 'psf_fseek' flac.c:301: warning: function declaration isn't a prototype flac.c:301: error: conflicting types for 'psf_fseek' common.h:623: error: previous declaration of 'psf_fseek' was here flac.c:301: warning: data definition has no type or storage class flac.c:309: error: syntax error before 'sf_flac_tell_callback' flac.c:309: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:309: error: syntax error before '*' token flac.c:312: warning: type defaults to 'int' in declaration of 'absolute_byte_offset' flac.c:312: warning: initialization makes pointer from integer without a cast flac.c:312: error: initializer element is not constant flac.c:312: warning: data definition has no type or storage class flac.c:313: error: syntax error before 'if' flac.c:320: error: syntax error before 'sf_flac_length_callback' flac.c:320: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:320: error: syntax error before '*' token flac.c:330: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:330: error: syntax error before '*' token flac.c:340: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:340: error: syntax error before '*' token flac.c:342: warning: type defaults to 'int' in declaration of 'pflac' flac.c:342: error: syntax error before ')' token flac.c:350: warning: type defaults to 'int' in declaration of 'flac_buffer_copy' flac.c:350: warning: parameter names (without types) in function declaration flac.c:350: error: conflicting types for 'flac_buffer_copy' flac.c:170: error: previous definition of 'flac_buffer_copy' was here flac.c:350: warning: data definition has no type or storage class flac.c:352: error: syntax error before 'return' flac.c:356: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:356: error: syntax error before '*' token flac.c:390: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamDecoder' flac.c:390: error: syntax error before '*' token flac.c:393: error: syntax error before string constant flac.c:393: warning: type defaults to 'int' in declaration of 'psf_log_printf' flac.c:393: warning: function declaration isn't a prototype flac.c:393: error: conflicting types for 'psf_log_printf' common.h:556: error: previous declaration of 'psf_log_printf' was here flac.c:393: warning: data definition has no type or storage class flac.c:411: error: syntax error before 'sf_flac_enc_seek_callback' flac.c:411: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamEncoder' flac.c:411: error: syntax error before '*' token flac.c:414: error: syntax error before numeric constant flac.c:414: warning: type defaults to 'int' in declaration of 'psf_fseek' flac.c:414: warning: function declaration isn't a prototype flac.c:414: error: conflicting types for 'psf_fseek' common.h:623: error: previous declaration of 'psf_fseek' was here flac.c:414: warning: data definition has no type or storage class flac.c:435: warning: type defaults to 'int' in declaration of 'FLAC__SeekableStreamEncoder' flac.c:435: error: syntax error before '*' token flac.c: In function 'flac_open': flac.c:453: error: invalid operands to binary * flac.c: In function 'flac_close': flac.c:505: error: invalid operands to binary * flac.c:506: warning: ISO C90 forbids mixed declarations and code flac.c:508: error: syntax error before ')' token flac.c:512: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_finish' flac.c:512: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_finish' flac.c:512: error: request for member 'fse' in something not a structure or union flac.c:513: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_delete' flac.c:513: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_delete' flac.c:513: error: request for member 'fse' in something not a structure or union flac.c:514: error: request for member 'encbuffer' in something not a structure or union flac.c:515: error: request for member 'encbuffer' in something not a structure or union flac.c:519: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_finish' flac.c:519: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_finish' flac.c:519: error: request for member 'fsd' in something not a structure or union flac.c:520: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_delete' flac.c:520: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_delete' flac.c:520: error: request for member 'fsd' in something not a structure or union flac.c:523: error: request for member 'rbuffer' in something not a structure or union flac.c:523: error: request for member 'rbuffer' in something not a structure or union flac.c:524: error: request for member 'rbuffer' in something not a structure or union flac.c: In function 'flac_enc_init': flac.c:534: error: invalid operands to binary * flac.c:534: error: syntax error before ')' token flac.c:549: error: request for member 'fse' in something not a structure or union flac.c:549: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_new' flac.c:549: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_new' flac.c:551: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_set_write_callback' flac.c:551: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_set_write_callback' flac.c:551: error: request for member 'fse' in something not a structure or union flac.c:552: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_set_seek_callback' flac.c:552: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_set_seek_callback' flac.c:552: error: request for member 'fse' in something not a structure or union flac.c:557: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_set_client_data' flac.c:557: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_set_client_data' flac.c:557: error: request for member 'fse' in something not a structure or union flac.c:558: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_set_channels' flac.c:558: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_set_channels' flac.c:558: error: request for member 'fse' in something not a structure or union flac.c:559: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_set_sample_rate' flac.c:559: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_set_sample_rate' flac.c:559: error: request for member 'fse' in something not a structure or union flac.c:577: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_set_bits_per_sample' flac.c:577: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_set_bits_per_sample' flac.c:577: error: request for member 'fse' in something not a structure or union flac.c:579: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_init' flac.c:579: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_init' flac.c:579: error: request for member 'fse' in something not a structure or union flac.c:579: error: 'FLAC__SEEKABLE_STREAM_DECODER_OK' undeclared (first use in this function) flac.c:580: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_get_resolved_state_string' flac.c:580: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_get_resolved_state_string' flac.c:580: error: request for member 'fse' in something not a structure or union flac.c:586: error: request for member 'encbuffer' in something not a structure or union flac.c: In function 'flac_read_header': flac.c:593: error: invalid operands to binary * flac.c:593: error: syntax error before ')' token flac.c:596: error: request for member 'fsd' in something not a structure or union flac.c:596: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_new' flac.c:596: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_new' flac.c:599: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_read_callback' flac.c:599: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_read_callback' flac.c:599: error: request for member 'fsd' in something not a structure or union flac.c:600: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_seek_callback' flac.c:600: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_seek_callback' flac.c:600: error: request for member 'fsd' in something not a structure or union flac.c:601: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_tell_callback' flac.c:601: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_tell_callback' flac.c:601: error: request for member 'fsd' in something not a structure or union flac.c:602: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_length_callback' flac.c:602: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_length_callback' flac.c:602: error: request for member 'fsd' in something not a structure or union flac.c:603: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_eof_callback' flac.c:603: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_eof_callback' flac.c:603: error: request for member 'fsd' in something not a structure or union flac.c:604: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_write_callback' flac.c:604: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_write_callback' flac.c:604: error: request for member 'fsd' in something not a structure or union flac.c:605: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_metadata_callback' flac.c:605: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_metadata_callback' flac.c:605: error: request for member 'fsd' in something not a structure or union flac.c:606: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_error_callback' flac.c:606: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_error_callback' flac.c:606: error: request for member 'fsd' in something not a structure or union flac.c:607: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_set_client_data' flac.c:607: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_set_client_data' flac.c:607: error: request for member 'fsd' in something not a structure or union flac.c:609: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_init' flac.c:609: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_init' flac.c:609: error: request for member 'fsd' in something not a structure or union flac.c:609: error: 'FLAC__SEEKABLE_STREAM_DECODER_OK' undeclared (first use in this function) flac.c:612: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_process_until_end_of_metadata' flac.c:612: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_process_until_end_of_metadata' flac.c:612: error: request for member 'fsd' in something not a structure or union flac.c:615: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_get_decode_position' flac.c:615: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_get_decode_position' flac.c:615: error: request for member 'fsd' in something not a structure or union flac.c: In function 'flac_read_loop': flac.c:670: error: invalid operands to binary * flac.c:670: error: syntax error before ')' token flac.c:672: error: request for member 'pos' in something not a structure or union flac.c:673: error: request for member 'len' in something not a structure or union flac.c:674: error: request for member 'remain' in something not a structure or union flac.c:675: error: request for member 'frame' in something not a structure or union flac.c:675: error: request for member 'bufferpos' in something not a structure or union flac.c:675: error: request for member 'frame' in something not a structure or union flac.c:678: error: request for member 'pos' in something not a structure or union flac.c:678: error: request for member 'len' in something not a structure or union flac.c:679: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_process_single' flac.c:679: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_process_single' flac.c:679: error: request for member 'fsd' in something not a structure or union flac.c:681: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_get_state' flac.c:681: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_get_state' flac.c:681: error: request for member 'fsd' in something not a structure or union flac.c:681: error: 'FLAC__SEEKABLE_STREAM_DECODER_OK' undeclared (first use in this function) flac.c:685: error: request for member 'ptr' in something not a structure or union flac.c:687: error: request for member 'pos' in something not a structure or union flac.c: In function 'flac_read_flac2s': flac.c:692: error: invalid operands to binary * flac.c:692: error: syntax error before ')' token flac.c:696: error: request for member 'pcmtype' in something not a structure or union flac.c:699: error: request for member 'ptr' in something not a structure or union flac.c: In function 'flac_read_flac2i': flac.c:712: error: invalid operands to binary * flac.c:712: error: syntax error before ')' token flac.c:716: error: request for member 'pcmtype' in something not a structure or union flac.c:719: error: request for member 'ptr' in something not a structure or union flac.c: In function 'flac_read_flac2f': flac.c:732: error: invalid operands to binary * flac.c:732: error: syntax error before ')' token flac.c:736: error: request for member 'pcmtype' in something not a structure or union flac.c:739: error: request for member 'ptr' in something not a structure or union flac.c: In function 'flac_read_flac2d': flac.c:752: error: invalid operands to binary * flac.c:752: error: syntax error before ')' token flac.c:756: error: request for member 'pcmtype' in something not a structure or union flac.c:759: error: request for member 'ptr' in something not a structure or union flac.c: In function 'flac_write_s2flac': flac.c:772: error: invalid operands to binary * flac.c:772: error: syntax error before ')' token flac.c:776: error: request for member 'encbuffer' in something not a structure or union flac.c:798: warning: implicit declaration of function 'FLAC__seekable_stream_encoder_process_interleaved' flac.c:798: warning: nested extern declaration of 'FLAC__seekable_stream_encoder_process_interleaved' flac.c:798: error: request for member 'fse' in something not a structure or union flac.c: In function 'flac_write_i2flac': flac.c:814: error: invalid operands to binary * flac.c:814: error: syntax error before ')' token flac.c:818: error: request for member 'encbuffer' in something not a structure or union flac.c:840: error: request for member 'fse' in something not a structure or union flac.c: In function 'flac_write_f2flac': flac.c:856: error: invalid operands to binary * flac.c:856: error: syntax error before ')' token flac.c:860: error: request for member 'encbuffer' in something not a structure or union flac.c:882: error: request for member 'fse' in something not a structure or union flac.c: In function 'flac_write_d2flac': flac.c:988: error: invalid operands to binary * flac.c:988: error: syntax error before ')' token flac.c:992: error: request for member 'encbuffer' in something not a structure or union flac.c:1014: error: request for member 'fse' in something not a structure or union flac.c: In function 'flac_seek': flac.c:1120: error: invalid operands to binary * flac.c:1120: error: syntax error before ')' token flac.c:1130: error: request for member 'frame' in something not a structure or union flac.c:1134: warning: implicit declaration of function 'FLAC__seekable_stream_decoder_seek_absolute' flac.c:1134: warning: nested extern declaration of 'FLAC__seekable_stream_decoder_seek_absolute' flac.c:1134: error: request for member 'fsd' in something not a structure or union flac.c:1135: error: request for member 'fsd' in something not a structure or union make[3]: *** [flac.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 ### execution of make failed, exit code 2 Removing runtime build-lock... Removing build-lock package... /sw/bin/dpkg-lockwait -r fink-buildlock-libsndfile1-1.0.17-2 (Reading database ... 125825 files and directories currently installed.) Removing fink-buildlock-libsndfile1-1.0.17-2 ... Updating the list of locally available binary packages. Scanning dists/unstable/main/binary-darwin-i386 New package: dists/unstable/main/binary-darwin-i386/graphics/gimp2-svg- default_2.0.6-1006_darwin-i386.deb New package: dists/unstable/main/binary-darwin-i386/graphics/gimp2-svg- dev_2.0.6-1006_darwin-i386.deb New package: dists/unstable/main/binary-darwin-i386/graphics/gimp2-svg- ghostscript_2.0.6-1006_darwin-i386.deb New package: dists/unstable/main/binary-darwin-i386/graphics/gimp2-svg- shlibs_2.0.6-1006_darwin-i386.deb New package: dists/unstable/main/binary-darwin-i386/graphics/gimp2- svg_2.0.6-1006_darwin-i386.deb Failed: phase compiling: libsndfile1-1.0.17-2 failed
======================== a few details of my fink installation: % fink -V | head -n 2: Package manager version: 0.28.0 Distribution version: selfupdate-rsync Sat Feb 23 12:28:09 2008, 10.5, i386 % sw_vers: ProductName: Mac OS X ProductVersion: 10.5.2 BuildVersion: 9C31 % gcc --version | head -n 1: i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) % arch: i386 -- Kevin Horton Ottawa, Canada ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel