Opened 18 years ago

Closed 16 years ago

Last modified 15 years ago

#10905 closed defect (fixed)

BUG: libsndfile-1.0.17 depends on flac, pkgconfig?

Reported by: ehainry@… Owned by: cssdev
Priority: High Milestone:
Component: ports Version:
Keywords: Cc: sean@…, markd@…
Port:

Description

libsndfile does not compile on my powerbook unless I first install flac and add LDFLAGS=-L${prefix}/lib to configure.env. Also, libsndfile's configure seems to depend on pkgconfig.

Attachments (7)

libsndfile_build.txt (95.6 KB) - added by dave@… 17 years ago.
libsndfile build output with -v (without flac port installed)
config.log (70.1 KB) - added by dave@… 17 years ago.
Config.log from same run
example.txt (2.2 KB) - added by dave@… 17 years ago.
An example c program and "gcc -v" output.
Portfile (837 bytes) - added by cssdev 17 years ago.
This Portfile disables flac, but it provides a flac variant if needed.
Portfile.2 (861 bytes) - added by cssdev 17 years ago.
Make the flac variant the default.
libsndfile-no_flac.diff (673 bytes) - added by cssdev 16 years ago.
Recommended to create a no_flac variant instead of relying on default variants.
flac_err.diff (608 bytes) - added by cssdev 16 years ago.
Alternatively, removing the default_variants might be the easiest approach until #12009 is resolved. A ui_err message could indicate the current status.

Download all attachments as: .zip

Change History (25)

comment:1 Changed 18 years ago by cssdev

Owner: changed from yeled@… to css@…
Summary: libsndfile depends on flacBUG: libsndfile-1.0.17 depends on flac, pkgconfig?

Could you please attach the output? I don't have FLAC installed, but it builds fine for me. Do you have stuff installed into /usr/local? I'll check on whether pkgconfig is a dependency too.

comment:2 Changed 17 years ago by ehainry@…

I uninstalled flac then rebuilt libsndfile with -dt. Configure checks for FLAC and succeeds (probably finds headers from Apple's FLAC.Framework) and

Warning: Target configure has an undeclared dependency on pkgconfig

build stops at the following step:

gcc -dynamiclib  -o .libs/libsndfile.1.0.17.dylib  .libs/sndfile.o .libs/common.o .libs/file_io.o .libs/command.o .libs/pcm.o .libs/ulaw.o .libs/alaw.o .libs/float32.o .libs/double64.o .libs/ima_adpcm.o .libs/ms_adpcm.o .libs/gsm610.o .libs/dwvw.o .libs/vox_adpcm.o .libs/interleave.o .libs/strings.o .libs/dither.o .libs/broadcast.o .libs/aiff.o .libs/au.o .libs/g72x.o .libs/avr.o .libs/caf.o .libs/ircam.o .libs/macbinary3.o .libs/macos.o .libs/mat4.o .libs/mat5.o .libs/nist.o .libs/paf.o .libs/pvf.o .libs/raw.o .libs/svx.o .libs/voc.o .libs/htk.o .libs/dwd.o .libs/ogg.o .libs/rx2.o .libs/sd2.o .libs/sds.o .libs/txw.o .libs/wve.o .libs/w64.o .libs/wav_w64.o .libs/wav.o .libs/xi.o .libs/flac.o  .libs/libsndfile.lax/libgsm.a/add.o .libs/libsndfile.lax/libgsm.a/code.o .libs/libsndfile.lax/libgsm.a/decode.o .libs/libsndfile.lax/libgsm.a/gsm_create.o .libs/libsndfile.lax/libgsm.a/gsm_decode.o .libs/libsndfile.lax/libgsm.a/gsm_destroy.o .libs/libsndfile.lax/libgsm.a/gsm_encode.o .libs/libsndfile.lax/libgsm.a/gsm_option.o .libs/libsndfile.lax/libgsm.a/long_term.o .libs/libsndfile.lax/libgsm.a/lpc.o .libs/libsndfile.lax/libgsm.a/preprocess.o .libs/libsndfile.lax/libgsm.a/rpe.o .libs/libsndfile.lax/libgsm.a/short_term.o .libs/libsndfile.lax/libgsm.a/table.o  .libs/libsndfile.lax/libg72x.a/g721.o .libs/libsndfile.lax/libg72x.a/g723_16.o .libs/libsndfile.lax/libg72x.a/g723_24.o .libs/libsndfile.lax/libg72x.a/g723_40.o .libs/libsndfile.lax/libg72x.a/g72x.o   -lFLAC -lm  -Wl,-exported_symbols_list -Wl,./Symbols.darwin -install_name  /opt/local/lib/libsndfile.1.dylib -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.17
/usr/bin/libtool: can't locate file for: -lFLAC
/usr/bin/libtool: file: -lFLAC is not an object file (not allowed in a library)
make[3]: *** [libsndfile.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

And no, I do not have anything in /usr/local but ciscovpn things.

comment:3 Changed 17 years ago by dave@…

I have the same problem. What is happening is as above, FLAC/all.h is found in the Apple provided Frameworks, this triggers configure into trying to use -lFLAC but that fails

If you install the "flac" port, then it picks up the correct header from /opt/local/include, but still doesn't pick up the library unless you add "configure.env LDFLAGS=-L${prefix}/lib" to the Portfile.

build output, config.log and an example program build will be attached.

Changed 17 years ago by dave@…

Attachment: libsndfile_build.txt added

libsndfile build output with -v (without flac port installed)

Changed 17 years ago by dave@…

Attachment: config.log added

Config.log from same run

Changed 17 years ago by dave@…

Attachment: example.txt added

An example c program and "gcc -v" output.

comment:4 Changed 17 years ago by cssdev

Hrm, where do you have FLAC installed? I don't have the port installed, but it doesn't show up anywhere else on my Mac OS X 10.4 system.

The build script certainly doesn't use the correct link command, but I wonder if there's a FLAC framework in the way of the script expecting a strictly UNIX-type -lFLAC command. Maybe something else installed the FLAC framework on your system? The port might need a --disable-flac to avoid trying, but you would still run into trouble if you do want FLAC.

comment:5 Changed 17 years ago by dave@…

In /Library/Frameworks I have FLAC.Framework and FLAC++.Framework.

They come from the xiph Quicktime libraries "http://xiph.org/quicktime/" which I have installed.

Since the Apple gcc compiler includes /Library/Frameworks when searching for include paths, that's why things go wrong.

comment:6 Changed 17 years ago by cssdev

Hrm, this might have to be considered a third-party conflict, as the framework is outside the ${prefix}. The standard MacPorts policy is to rely only on MacPorts libraries with a few exceptions. By default, ports usually turn on as many features as possible. I'll create an updated Portfile that attempts to explicitly use FLAC from the ${prefix} rather than the automatic gcc paths.

Changed 17 years ago by cssdev

Attachment: Portfile added

This Portfile disables flac, but it provides a flac variant if needed.

comment:7 Changed 17 years ago by pipping@…

Milestone: Port Bugs

comment:8 Changed 17 years ago by markd@…

Cc: markd@… added

Any reason the updated portfile has not been committed?

comment:9 Changed 17 years ago by cssdev

I lost access to a Mac for quite a while. I'm still getting back on my feet. I surmise that it shouldn't be a policy to resolve conflicts caused by third-party installs. I think the best solution is to preserve maximum functionality by making the flac variant the default. If a conflict is present, one should use port install libsndfile -flac to disable flac support.

Changed 17 years ago by cssdev

Attachment: Portfile.2 added

Make the flac variant the default.

comment:10 Changed 17 years ago by nox@…

Cc: sean@sfarc.net,markd@macports.orgsean@sfarc.net, markd@macports.org
Priority: ImportantHigh

comment:11 Changed 16 years ago by cssdev

Committed to r31173. To install without flac, use port install libsndfile -flac.

comment:12 Changed 16 years ago by cssdev

Resolution: fixed
Status: newclosed

comment:13 Changed 16 years ago by yves@…

Resolution: fixed
Status: closedreopened

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

comment:14 Changed 16 years ago by yves@…

flac @1.2.1_0 (active)

BTW

comment:15 Changed 16 years ago by cssdev

libsndfile doesn't work with the latest FLAC. See #12009. The current workaround, provided by this issue, is to disable FLAC when building libsndfile.

Changed 16 years ago by cssdev

Attachment: libsndfile-no_flac.diff added

Recommended to create a no_flac variant instead of relying on default variants.

Changed 16 years ago by cssdev

Attachment: flac_err.diff added

Alternatively, removing the default_variants might be the easiest approach until #12009 is resolved. A ui_err message could indicate the current status.

comment:16 Changed 16 years ago by jmroot (Joshua Root)

What's the status of this now that #12009 is resolved?

comment:17 Changed 16 years ago by cssdev

Resolution: fixed
Status: reopenedclosed

The commit for r31787 should have resolved this ticket as well. libsndfile builds without flac. This ticket was left open with the idea of updating it once libsndfile supports the latest FLAC. Given that libsndfile hasn't been updated in quite a while, that might not be likely. I'll go ahead and close the ticket, and it can be referenced or reopened if libsndfile receives an upstream update.

comment:18 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.