--- Ruslan Opritz <ruslano@imp.lg.ua> wrote:> Hi everybody!
> I'm in trouble again, could you help me?
> This time I can't get deal with "flac-tools" and other
programs that
> use
> libFLAC. They just refuse compiling and complain for some functions
> indefinition.
> I have flac-1.0.4 already installed with ordinary: ./configure &&
> make && make install.
> Read down for the details please.
>
> Configuring flac-tools:
> -----------------------
> bash-2.05a# ./configure
> loading cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for FLAC__file_decoder_new in -lFLAC... no
> configure: error: FLAC required!
>
> Why? Reading ELF:
> -----------------
> bash-2.05a# readelf -s libFLAC.so.4 |grep FLAC__file_decoder_new
> 338: 0000ff70 379 FUNC GLOBAL DEFAULT 10
> FLAC__file_decoder_new
> 658: 0000ff70 379 FUNC GLOBAL DEFAULT 10
> FLAC__file_decoder_new
>
> It seems to be OK, doesn't it???
Check the config.log file generated by configure for why the
FLAC check failed.
> Making easytag-0.24a:
> ---------------------
> . . .
> gcc -DHAVE_CONFIG_H -I. -I. -I..
-DLOCALE=\"/usr/local/share/locale\"
> -DPACKAGE_DATA_DIR=\"/usr/local/share/easytag\" -g -O2 -Wall
> -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
> -I/usr/lib/glib/include -I/usr/X11R6/include -INONE/include -c `test
> -f 'flac_header.c' || echo './'`flac_header.c
> flac_header.c: In function `Flac_Header_Read_File_Info':
> flac_header.c:128: warning: implicit declaration of function
> `FLAC__file_decoder_process_metadata'
> flac_header.c: At top level:
> et_core.h:170: warning: `ETFileDescription' defined but not used
> . . .
> gccFLAC__file_decoder_process_metadata -g -O2 -Wall
> -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
> -I/usr/lib/glib/include -I/usr/X11R6/include -INONE/include -o
> easytag about.o bar.o browser.o charset.o easytag.o et_core.o
> flac_header.o id3_tag.o misc.o mpeg_header.o msgbox.o ogg_tag.o
> prefs.o scan.o setting.o vcedit.o -rdynamic -L/usr/lib
> -L/usr/X11R6/lib /usr/lib/libgtk.so -lm /usr/lib/libgdk.so -lm
> /usr/lib/libgmodule.so /usr/lib/libglib.so -ldl -lXext -lX11 -lm
> libmpg123/libmpg123.a /usr/local/lib/libFLAC.so -lm -lz -lstdc++
> /usr/local/lib/libid3.so -lz -lstdc++ /usr/local/lib/libvorbisfile.so
> -lm /usr/local/lib/libvorbis.so -lm /usr/local/lib/libogg.so
> -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
> browser.o: In function `Rename_Directory':
> /usr/local/src/easytag-0.24/src/browser.c:1660: the use of `mktemp'
> is dangerous, better use `mkstemp'
> flac_header.o: In function `Flac_Header_Read_File_Info':
> /usr/local/src/easytag-0.24/src/flac_header.c:131: undefined
> reference to `FLAC__file_decoder_process_metadata'
> collect2: ld returned 1 exit status
> make[3]: *** [easytag] Error 1
>
> I couldn't find `FLAC__file_decoder_process_metadata' symbol in
> libFLAC.so.4 either by hands.
>
>
> Making alsaplayer-0.99.72:
> --------------------------
> . . .
> 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
>
> There's no `FLAC__file_decoder_process_one_frame' in libFLAC.so.4
> again.
>
> flac and it's xmms plugin work just fine...
> So, have a riddle:
> What have I done wrong or haven't right ;)
> on my Slackware 8.1 (2.4.19 kernel, gcc version 2.95.3, NASM version
> 0.98.33)???
> Thanks in advance.
The libFLAC API has changed enough between 1.0.3 and 1.0.4
that some progs that use it will updating. I am pretty
satisfied with it now so this should be the last version in
a while to cause these kind of problems.
> P.S. What happend to escape coding (-E option) in flac? Was it
> deprecated or is enabled by default now?
Deprecated. I am contemplating removing it from the subset
to reduce the decoder complexity, since it doesn't really
help compression much in the general case.
Josh
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com