I'm having a number of problems related to building the latest FLAC release. My build environment: Linux, PPC, gcc 2.95.3 The first has to do with with builing FLAC itself... specifically I can't get id3lib support to build. Whether or not I specify the location of the headers and libraries, the config.log turns up this: configure:9361: gcc -o conftest -g -O2 -INONE/include conftest.c -lid3 >&5 /usr/local/lib/libid3.so: undefined reference to `cerr' /usr/local/lib/libid3.so: undefined reference to `uncompress' /usr/local/lib/libid3.so: undefined reference to `iostream::ios virtual table' /usr/local/lib/libid3.so: undefined reference to `ostream::tellp(void)' /usr/local/lib/libid3.so: undefined reference to `fstreambase::close(void)' /usr/local/lib/libid3.so: undefined reference to `endl(ostream &)' /usr/local/lib/libid3.so: undefined reference to `ios virtual table' ...etc, etc, etc... What version of id3lib is being used in development? I've got a totally stock build of 3.8.0 -- should I try something older? Except for that, FLAC builds and runs fine, BUT... I also can't get other FLAC-aware apps to compile against the new FLAC. Specifically flac-tools 0.1.1 and alsaplayer-0.99.72. In the case of flac-tools, I get the same error that Ruslan Opritz reported. The configure script logs the following errors: /usr/local/lib/libFLAC.so: undefined reference to `log' /usr/local/lib/libFLAC.so: undefined reference to `floor' In the case of alsaplayer, the configure script is happy, but upon running make, it barfs with these errors: g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../alsaplayer -I/usr/local/include -D_REENTRANT -c FlacFile.cpp -fPIC -DPIC -o FlacFile.lo FlacFile.cpp: In method `bool Flac::FlacFile::open()': FlacFile.cpp:117: implicit declaration of function `int Flac::FLAC__file_decoder_process_metadata(...)' FlacFile.cpp: In method `bool Flac::FlacFile::processOneFrame()': FlacFile.cpp:150: implicit declaration of function `int Flac::FLAC__file_decoder_process_one_frame(...)' make[3]: *** [FlacFile.lo] Error 1 Any ideas? -- Alec ________________________________________________________________________ Alec Wood, Senior Programmer Analyst Network Services & Information Technologies, University of Chicago
--- Alec Wood <alecwood@uchicago.edu> wrote:> I'm having a number of problems related to building the latest FLAC > release. My build environment: Linux, PPC, gcc 2.95.3 > > The first has to do with with builing FLAC itself... specifically I > can't get id3lib support to build. Whether or not I specify the > location of the headers and libraries, the config.log turns up this: > > configure:9361: gcc -o conftest -g -O2 -INONE/include conftest.c > -lid3 >&5 > /usr/local/lib/libid3.so: undefined reference to `cerr' > /usr/local/lib/libid3.so: undefined reference to `uncompress' > /usr/local/lib/libid3.so: undefined reference to `iostream::ios > virtual table' > /usr/local/lib/libid3.so: undefined reference to > `ostream::tellp(void)' > /usr/local/lib/libid3.so: undefined reference to > `fstreambase::close(void)' > /usr/local/lib/libid3.so: undefined reference to `endl(ostream &)' > /usr/local/lib/libid3.so: undefined reference to `ios virtual > table' > > ...etc, etc, etc... > > What version of id3lib is being used in development? I've got a > totally > stock build of 3.8.0 -- should I try something older?I built with 3.8.0. Other people have had problems with the id3lib test. I'll look into it more, but one thing I notice right away is that the missing symbols are from the stdc++ library; it looks like the test prog is linking via gcc instead of g++.> Except for that, FLAC builds and runs fine, BUT... > > I also can't get other FLAC-aware apps to compile against the new > FLAC. > Specifically flac-tools 0.1.1 and alsaplayer-0.99.72. > > In the case of flac-tools, I get the same error that Ruslan Opritz > reported. The configure script logs the following errors: > > /usr/local/lib/libFLAC.so: undefined reference to `log' > /usr/local/lib/libFLAC.so: undefined reference to `floor'Those are in libm.a. Even then, the last release looks almost a year old so I doubt it is up to date. It's maintained by another person.> In the case of alsaplayer, the configure script is happy, but upon > running make, it barfs with these errors: > > g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../alsaplayer > -I/usr/local/include -D_REENTRANT -c FlacFile.cpp -fPIC -DPIC -o > FlacFile.lo > FlacFile.cpp: In method `bool Flac::FlacFile::open()': > FlacFile.cpp:117: implicit declaration of function `int > Flac::FLAC__file_decoder_process_metadata(...)' > FlacFile.cpp: In method `bool Flac::FlacFile::processOneFrame()': > FlacFile.cpp:150: implicit declaration of function `int > Flac::FLAC__file_decoder_process_one_frame(...)' > make[3]: *** [FlacFile.lo] Error 1The libFLAC API changed in 1.0.4 enough to break the FLAC support in alsaplayer. It had to be done but there will be much less of that in the future. It is relatively easy to fix if you pass the errors on to the author. Josh __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/
Hi, I gave up on 1.0.4 on my osx machine for the time being, but needed it on a linux machine this morning. Grabbed 1.0.4 and it seemed to build ok, but doesn't pass make check. Sorry if this is redudant information. I've seen a few posts recently and can't tell if it is or not. flac-1.0.3 on the same machine builds, checks and runs fine. thanks, mike ERROR: iterator claims file is writable when tester thinks it should not be; are you running as root? ERROR during test_libFLAC++ FAIL: ./test_libFLAC++.sh Generating stream... flac 1.0.4, Copyright (C) 2000,2001,2002 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. ././test_metaflac.sh: line 43: 19767 Segmentation fault (core dumped) flac --verify -0 --output-name=$flacfile --force-raw-format --endian=big --sign=signed --channels=1 --bps=8 --sample-rate=44100 $inputfile ERROR during generation FAIL: ./test_metaflac.sh Generating streams... Checking for --ogg support in flac... flac --ogg doesn't work Generating multiple input files from noise... Testing multiple files without verify... flac 1.0.4, Copyright (C) 2000,2001,2002 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. ././test_streams.sh: line 16: 19845 Segmentation fault (core dumped) flac $encode_options file0.wav file1.wav file2.wav ERROR FAIL: ./test_streams.sh ==================4 of 4 tests failed ==================make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/opt/src/flac-1.0.4/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/opt/src/flac-1.0.4/test' make: *** [check-recursive] Error 1
As a follow-up to my original post:> I also can't get other FLAC-aware apps to compile against the new FLAC. > Specifically flac-tools 0.1.1 and alsaplayer-0.99.72.Alsaplayer compiles fine against FLAC 1.0.3 -- I'll try to get the developer(s) of that app to update to 1.0.4. flac-tools is a more complicated story. The first obstacle is that the configure script contains a bug -- it fails to link the math library where it should. Line 951 in the configure script reads LIBS="-lFLAC $LIBS" when it SHOULD read: LIBS="-lFLAC -lm $LIBS" Additionally, I'm quite sure that flac-tools 0.1.1 doesn't work with any version of FLAC newer than 1.0.2, in that I can get it to compile against 1.0.2 and nothing newer. However, even having gotten it compiled, I can't run it usefully. On a Linux/PPC system I can run the app but it only outputs noise, and on a Linux/x86 system the app invariably bombs out with a seg fault. Oh well. -- Alec ________________________________________________________________________ Alec Wood, Senior Programmer Analyst Network Services & Information Technologies, University of Chicago
Another follow-up:> Alsaplayer compiles fine against FLAC 1.0.3 -- I'll try to get the > developer(s) of that app to update to 1.0.4.Andy Lo A Foe reports that FLAC 1.0.4 support has already made it into the alsaplayer CVS sources, and will be included in the next release ("release scheduled for the end of this week"). -- Alec ________________________________________________________________________ Alec Wood, Senior Programmer Analyst Network Services & Information Technologies, University of Chicago