[MacPorts] #10905: BUG: libsndfile-1.0.17 depends on flac, pkgconfig?

MacPorts trac at macosforge.org
Sun Nov 18 05:16:19 PST 2007


#10905: BUG: libsndfile-1.0.17 depends on flac, pkgconfig?
------------------------------+---------------------------------------------
  Reporter:  ehainry at free.fr  |       Owner:  css at macports.org
      Type:  defect           |      Status:  reopened        
  Priority:  High             |   Milestone:  Port Bugs       
 Component:  ports            |     Version:                  
Resolution:                   |    Keywords:                  
------------------------------+---------------------------------------------
Changes (by yves at macports.org):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 Does not work so well (10.4.11 PPC Xcode 2.5)
 {{{
  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -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 -MT flac.lo -MD -MP -MF
 .deps/flac.Tpo -c flac.c  -fno-common -DPIC -o .libs/flac.o
 flac.c:63: error: parse 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: parse 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: parse error before 'sf_flac_read_callback'
 flac.c:111: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:111: error: parse 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: parse error before 'sf_flac_seek_callback'
 flac.c:112: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:112: error: parse 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: parse error before 'sf_flac_tell_callback'
 flac.c:113: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:113: error: parse 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: parse error before 'sf_flac_length_callback'
 flac.c:114: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:114: error: parse 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: parse 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: parse 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: parse 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: parse error before '*' token
 flac.c:118: warning: function declaration isn't a prototype
 flac.c:121: error: parse error before 'sf_flac_enc_seek_callback'
 flac.c:121: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamEncoder'
 flac.c:121: error: parse 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: parse 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: parse error before ')' token
 flac.c: At top level:
 flac.c:287: error: parse error before 'sf_flac_read_callback'
 flac.c:287: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:287: error: parse 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: parse error before 'if'
 flac.c:298: error: parse error before 'sf_flac_seek_callback'
 flac.c:298: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:298: error: parse error before '*' token
 flac.c:301: error: parse 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: parse error before 'sf_flac_tell_callback'
 flac.c:309: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:309: error: parse 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: parse error before 'if'
 flac.c:320: error: parse error before 'sf_flac_length_callback'
 flac.c:320: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:320: error: parse error before '*' token
 flac.c:330: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:330: error: parse error before '*' token
 flac.c:340: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:340: error: parse error before '*' token
 flac.c:342: warning: type defaults to 'int' in declaration of 'pflac'
 flac.c:342: error: parse 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: parse error before 'return'
 flac.c:356: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:356: error: parse error before '*' token
 flac.c:390: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamDecoder'
 flac.c:390: error: parse error before '*' token
 flac.c:393: error: parse 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: parse error before 'sf_flac_enc_seek_callback'
 flac.c:411: warning: type defaults to 'int' in declaration of
 'FLAC__SeekableStreamEncoder'
 flac.c:411: error: parse error before '*' token
 flac.c:414: error: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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: parse 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
 }}}

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/10905#comment:13>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list