ardour-2.0beta12 compilation exits on FLAC

I am trying to compile ardour-2.0beta12 from source.
Compilation stops at FLAC.
Flac is installed on my system - version 1.1.4
My scons version is 0.96.1

Reading SConscript files looks like this:

Checking for pkg-config version >= 0.8.0… ok
Checking for gthread-2.0… ok
Checking for lrdf… ok
Checking for libgnomecanvas-2.0… ok
Checking for gtk±2.0… ok
Checking for jack… ok
Checking for samplerate… ok
Checking for glib-2.0… ok
Checking for libxml-2.0… ok
Checking for raptor… ok
Congratulations, you have a functioning C++ compiler.
system triple: i686-pc-linux-gnu
Checking for usb_interrupt_write() in C library usb… yes
Checking for FLAC__stream_decoder_new() in C library FLAC… yes
Checking for C++ header file boost/shared_ptr.hpp… yes
Checking for lo_server_new() in C library lo… yes
Checking for dmalloc_shutdown() in C library dmallocth… no
Checking for C header file alsa/asoundlib.h… yes
Checking for internationalization support …
Found xgettext
Found msgmerge
Checking for C header file libintl.h… yes
International version will be built.
Checking for C header file /System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/CoreAudio.h… no
Checking for C function posix_memalign()… yes
Checking for C header file /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h… no
Checking for C function getmntent()… yes
Checking for C header file execinfo.h… yes
Checking for jack_client_open()…ok
Checking for jack_recompute_total_latencies()…ok
Checking for JackVideoFrameOffset in jack_position_bits_t enum…ok
Checking for jack_port_ensure_monitor_input()…ok
Checking for C header file wordexp.h… yes
Checking for C header file sys/vfs.h… yes
Checking for C header file /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h… no
Checking for C header file /System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h… no
Checking for C header file /System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h… no
Checking for C header file /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h… no
scons: done reading SConscript files.



Compilation exits with this in console (watch out, it is rather long):

gcc -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DBUILD_SSE_OPTIMIZATIONS -Wall -DHAVE_LIBLO -DENABLE_NLS -DPACKAGE=“libsndfile” -DVERSION=“ardour-special” -fPIC -Ilibs/libsndfile -c -o libs/libsndfile/src/flac.os libs/libsndfile/src/flac.c
libs/libsndfile/src/flac.c:63: error: expected specifier-qualifier-list before ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_read_callback’
libs/libsndfile/src/flac.c:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_seek_callback’
libs/libsndfile/src/flac.c:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_tell_callback’
libs/libsndfile/src/flac.c:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_length_callback’
libs/libsndfile/src/flac.c:115: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:115: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token
libs/libsndfile/src/flac.c:116: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:116: error: expected ‘;’, ‘,’ or ‘)’ before '
’ token
libs/libsndfile/src/flac.c:117: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:117: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token
libs/libsndfile/src/flac.c:118: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:118: error: expected ‘;’, ‘,’ or ‘)’ before '
’ token
libs/libsndfile/src/flac.c:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_enc_seek_callback’
libs/libsndfile/src/flac.c:125: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamEncoder’
libs/libsndfile/src/flac.c:125: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token
libs/libsndfile/src/flac.c: In function ‘flac_buffer_copy’:
libs/libsndfile/src/flac.c:171: error: ‘FLAC_PRIVATE’ has no member named ‘frame’
libs/libsndfile/src/flac.c:172: error: ‘FLAC_PRIVATE’ has no member named ‘wbuffer’
libs/libsndfile/src/flac.c:175: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c:180: error: ‘FLAC_PRIVATE’ has no member named ‘bufferbackup’
libs/libsndfile/src/flac.c:182: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c:183: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c:184: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c:186: error: ‘FLAC_PRIVATE’ has no member named ‘wbuffer’
libs/libsndfile/src/flac.c:186: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c:191: error: ‘FLAC_PRIVATE’ has no member named ‘pcmtype’
libs/libsndfile/src/flac.c:193: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c:197: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:198: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:200: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:201: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:202: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:206: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:207: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:209: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:213: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:215: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:216: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:223: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c:225: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:226: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:228: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:232: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:233: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:234: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:240: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c:243: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:244: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:246: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:250: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:251: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:252: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:258: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c:261: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:262: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:264: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:268: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:269: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:270: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:280: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c: At top level:
libs/libsndfile/src/flac.c:287: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_read_callback’
libs/libsndfile/src/flac.c:298: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_seek_callback’
libs/libsndfile/src/flac.c:309: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_tell_callback’
libs/libsndfile/src/flac.c:320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_length_callback’
libs/libsndfile/src/flac.c:330: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:330: error: expected ‘;’, ‘,’ or ‘)’ before '
’ token
libs/libsndfile/src/flac.c:340: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:340: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token
libs/libsndfile/src/flac.c:356: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:356: error: expected ‘;’, ‘,’ or ‘)’ before '
’ token
libs/libsndfile/src/flac.c:390: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamDecoder’
libs/libsndfile/src/flac.c:390: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token
libs/libsndfile/src/flac.c:411: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘sf_flac_enc_seek_callback’
libs/libsndfile/src/flac.c:435: warning: type defaults to ‘int’ in declaration of ‘FLAC__SeekableStreamEncoder’
libs/libsndfile/src/flac.c:435: error: expected ‘;’, ‘,’ or ‘)’ before '
’ token
libs/libsndfile/src/flac.c: In function ‘flac_close’:
libs/libsndfile/src/flac.c:512: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_finish’
libs/libsndfile/src/flac.c:512: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:513: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_delete’
libs/libsndfile/src/flac.c:513: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:514: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c:515: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c:519: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_finish’
libs/libsndfile/src/flac.c:519: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:520: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_delete’
libs/libsndfile/src/flac.c:520: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:523: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c:523: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c:524: error: ‘FLAC_PRIVATE’ has no member named ‘rbuffer’
libs/libsndfile/src/flac.c: In function ‘flac_enc_init’:
libs/libsndfile/src/flac.c:549: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:549: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_new’
libs/libsndfile/src/flac.c:551: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_set_write_callback’
libs/libsndfile/src/flac.c:551: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:551: error: ‘sf_flac_enc_write_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:551: error: (Each undeclared identifier is reported only once
libs/libsndfile/src/flac.c:551: error: for each function it appears in.)
libs/libsndfile/src/flac.c:552: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_set_seek_callback’
libs/libsndfile/src/flac.c:552: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:552: error: ‘sf_flac_enc_seek_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:557: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_set_client_data’
libs/libsndfile/src/flac.c:557: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:558: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_set_channels’
libs/libsndfile/src/flac.c:558: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:559: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_set_sample_rate’
libs/libsndfile/src/flac.c:559: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:577: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_set_bits_per_sample’
libs/libsndfile/src/flac.c:577: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:579: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_init’
libs/libsndfile/src/flac.c:579: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:579: error: ‘FLAC__SEEKABLE_STREAM_DECODER_OK’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:580: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_get_resolved_state_string’
libs/libsndfile/src/flac.c:580: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c:586: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c: In function ‘flac_read_header’:
libs/libsndfile/src/flac.c:596: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:596: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_new’
libs/libsndfile/src/flac.c:599: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_read_callback’
libs/libsndfile/src/flac.c:599: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:599: error: ‘sf_flac_read_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:600: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_seek_callback’
libs/libsndfile/src/flac.c:600: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:600: error: ‘sf_flac_seek_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:601: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_tell_callback’
libs/libsndfile/src/flac.c:601: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:601: error: ‘sf_flac_tell_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:602: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_length_callback’
libs/libsndfile/src/flac.c:602: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:602: error: ‘sf_flac_length_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:603: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_eof_callback’
libs/libsndfile/src/flac.c:603: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:603: error: ‘sf_flac_eof_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:604: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_write_callback’
libs/libsndfile/src/flac.c:604: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:604: error: ‘sf_flac_write_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:605: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_metadata_callback’
libs/libsndfile/src/flac.c:605: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:605: error: ‘sf_flac_meta_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:606: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_error_callback’
libs/libsndfile/src/flac.c:606: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:606: error: ‘sf_flac_error_callback’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:607: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_set_client_data’
libs/libsndfile/src/flac.c:607: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:609: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_init’
libs/libsndfile/src/flac.c:609: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:609: error: ‘FLAC__SEEKABLE_STREAM_DECODER_OK’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:612: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_process_until_end_of_metadata’
libs/libsndfile/src/flac.c:612: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:615: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_get_decode_position’
libs/libsndfile/src/flac.c:615: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c: In function ‘flac_read_loop’:
libs/libsndfile/src/flac.c:672: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:673: error: ‘FLAC_PRIVATE’ has no member named ‘len’
libs/libsndfile/src/flac.c:674: error: ‘FLAC_PRIVATE’ has no member named ‘remain’
libs/libsndfile/src/flac.c:675: error: ‘FLAC_PRIVATE’ has no member named ‘frame’
libs/libsndfile/src/flac.c:675: error: ‘FLAC_PRIVATE’ has no member named ‘bufferpos’
libs/libsndfile/src/flac.c:675: error: ‘FLAC_PRIVATE’ has no member named ‘frame’
libs/libsndfile/src/flac.c:678: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c:678: error: ‘FLAC_PRIVATE’ has no member named ‘len’
libs/libsndfile/src/flac.c:679: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_process_single’
libs/libsndfile/src/flac.c:679: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:681: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_get_state’
libs/libsndfile/src/flac.c:681: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:681: error: ‘FLAC__SEEKABLE_STREAM_DECODER_OK’ undeclared (first use in this function)
libs/libsndfile/src/flac.c:685: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c:687: error: ‘FLAC_PRIVATE’ has no member named ‘pos’
libs/libsndfile/src/flac.c: In function ‘flac_read_flac2s’:
libs/libsndfile/src/flac.c:696: error: ‘FLAC_PRIVATE’ has no member named ‘pcmtype’
libs/libsndfile/src/flac.c:699: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c: In function ‘flac_read_flac2i’:
libs/libsndfile/src/flac.c:716: error: ‘FLAC_PRIVATE’ has no member named ‘pcmtype’
libs/libsndfile/src/flac.c:719: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c: In function ‘flac_read_flac2f’:
libs/libsndfile/src/flac.c:736: error: ‘FLAC_PRIVATE’ has no member named ‘pcmtype’
libs/libsndfile/src/flac.c:739: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c: In function ‘flac_read_flac2d’:
libs/libsndfile/src/flac.c:756: error: ‘FLAC_PRIVATE’ has no member named ‘pcmtype’
libs/libsndfile/src/flac.c:759: error: ‘FLAC_PRIVATE’ has no member named ‘ptr’
libs/libsndfile/src/flac.c: In function ‘flac_write_s2flac’:
libs/libsndfile/src/flac.c:776: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c:798: warning: implicit declaration of function ‘FLAC__seekable_stream_encoder_process_interleaved’
libs/libsndfile/src/flac.c:798: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c: In function ‘flac_write_i2flac’:
libs/libsndfile/src/flac.c:818: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c:840: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c: In function ‘flac_write_f2flac’:
libs/libsndfile/src/flac.c:860: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c:882: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c: In function ‘flac_write_d2flac’:
libs/libsndfile/src/flac.c:992: error: ‘FLAC_PRIVATE’ has no member named ‘encbuffer’
libs/libsndfile/src/flac.c:1014: error: ‘FLAC_PRIVATE’ has no member named ‘fse’
libs/libsndfile/src/flac.c: In function ‘flac_seek’:
libs/libsndfile/src/flac.c:1130: error: ‘FLAC_PRIVATE’ has no member named ‘frame’
libs/libsndfile/src/flac.c:1134: warning: implicit declaration of function ‘FLAC__seekable_stream_decoder_seek_absolute’
libs/libsndfile/src/flac.c:1134: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
libs/libsndfile/src/flac.c:1135: error: ‘FLAC_PRIVATE’ has no member named ‘fsd’
scons: *** [libs/libsndfile/src/flac.os] Error 1
scons: building terminated because of errors.

Suggestion anyone?
Thank you.

Heh, I’m experiencing the same problem.
Google is not quite informative, but until someone’s got a clue what to do I’ll keep looking into excluding FLAC support or tricking it into working in another way.

thanks in advance though.

hi,
i have:

flac-1.1.2-6,
libflac7-1.1.2-6,
libflac++5-1.1.2-6,
libflac+±dev-1.1.2-6
and
libflac-dev-1.1.2-6

installed here.
do you both have at least the libflac-dev-1.1.2-6 installed on your system?

cheers,
doc

Thx ‘nowhiskey’ for trying to help.

Below are all ‘flac’ related files my distribution offers (skipping all html, man pages and jpeg etc. files of course) in flac package:



././flac-1.1.4/
/usr/share/aclocal/libFLAC.m4
/usr/share/doc/
/usr/share/aclocal/libFLAC++.m4
/usr/share/
/usr/share/aclocal/
/usr/lib/xmms/Input/libxmms-flac.so
/usr/lib/xmms/Input/libxmms-flac.la
/usr/lib/xmms/Input/
/usr/lib/xmms/
/usr/lib/pkgconfig/flac.pc
/usr/lib/pkgconfig/flac++.pc
/usr/lib/pkgconfig/
/usr/lib/libFLAC.so.8.0.1
/usr/lib/libFLAC.so.8
/usr/lib/libFLAC.so
/usr/lib/libFLAC.la
/usr/lib/libFLAC.a
/usr/lib/libFLAC++.so.6.0.1
/usr/lib/libFLAC++.so.6
/usr/lib/libFLAC++.so
/usr/lib/libFLAC++.la
/usr/lib/libFLAC++.a
/usr/lib/
/usr/include/FLAC/stream_encoder.h
/usr/include/FLAC/stream_decoder.h
/usr/include/FLAC/ordinals.h
/usr/include/FLAC/metadata.h
/usr/include/FLAC/format.h
/usr/include/FLAC/export.h
/usr/include/FLAC/callback.h
/usr/include/FLAC/assert.h
/usr/include/FLAC/all.h
/usr/include/FLAC/
/usr/include/FLAC++/metadata.h
/usr/include/FLAC++/export.h
/usr/include/FLAC++/encoder.h
/usr/include/FLAC++/decoder.h
/usr/include/FLAC++/all.h
/usr/include/FLAC++/
/usr/include/
/usr/bin/metaflac
/usr/bin/flac

No -dev nor -devel packs in my Linux distribution repositories (Frugalware Linux - frugalware.org), scons recognises everything fine during SConscript execution, so I think FLAC is fine and in place.

I wander why FLAC is needed/included in Ardour, especially if there is a lot of other ‘external’ ways to convert file formats for people who wish to play with their iPods, Zune’s, mobile phones and other gadgets… but Ardour?

obviously you have the flac includes (that is where the dev packages installs), so that should be fine.
i think that flac support just came in some days before, not sure.

are you able to disable flac and to build?
if yes, go that way and wait for another response here.

for me, since flac is native here, i think it is good when supported.

cheers,
doc

p.s. i am just realizing: did you tried rc1?

rc1…hmmm… thanks for pointing our.
Now I see that link on front page. :slight_smile:

All the best

:frowning: I just tried rc1 and scons stops with exactly the same console output, the looong one I quoted in my first post.

are you able to disable flac and to build?

I did not find any “disable” option for flac in SConscript, so I am going to uninstall flac from the system (goes off with old ardour 0.99, and some other software… ehhh ) and will try again without it.

hmm, i just had a look, ardour does not recognize .flac files!

cheers,
doc

Nice… I am wonder what other things we could discover during this short investigation? No flac support that bothers my compilation… hmmm… who knows then, maybe from now on it supports Logic, Cubase or ProoTools project files and we do not know, but IT IS THERE! :slight_smile:

I am still compiling on my slow machine, but for now it looks like flac problem is gone.

Anyway, first thing after it is ready, I am going to upload that Cubase’s projects :smiley:

i found again the place where i was reading something about flac, it is in the release announcement for the rc1:

Enabled conditional FLAC importing. (Taybin)

can someone pleas clarify this, if/how/when we can import .flac files?

cheers,
doc

libsndfile 1.0.16 included in the source of ardour2.0beta12 likes to see a stable version 1.1.2 of libFLAC. An installed version later than this generates the output above. Simply remove the libFLAC header files temporarily if you have a more recent version of this library.

The latest FLAC has changed their API which breaks libsndfile and Ardour. Until libsndfile is updated to work with the latest FLAC, you’ll have to either use an older FLAC or forgo it.