Bug 90214 - Build fails in akode/plugins/xiph_decoder
Summary: Build fails in akode/plugins/xiph_decoder
Status: RESOLVED FIXED
Alias: None
Product: akodelib
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Allan Sandfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 09:37 UTC by David Jarvie
Modified: 2004-09-26 17:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Jarvie 2004-09-25 09:37:09 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.3 
OS:                Linux

Compilation fails as follows:

make libakode_xiph_decoder_la_OBJECTS="flac_decoder.lo speex_decoder.lo vorbis_decoder.lo xiph_decoder.lo" all-am
make[1]: Entering directory `/home/david/src/kdemultimedia-3.3.0/akode/plugins/xiph_decoder'
source='vorbis_decoder.cpp' object='vorbis_decoder.lo' libtool=yes \
DEPDIR=.deps depmode=gcc /bin/sh ../../../admin/depcomp \
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../akode/lib -I/opt/kde3.3/include -I/usr/lib/qt3.3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -O3 -march=i686 -mcpu=i686 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o vorbis_decoder.lo vorbis_decoder.cpp
vorbis_decoder.cpp: In method `bool aKode::VorbisDecoderPlugin::canDecode(aKode::File *)':
vorbis_decoder.cpp:62: implicit declaration of function `int aKode::ov_test_callbacks(...)'
make[1]: *** [vorbis_decoder.lo] Error 1
make[1]: Leaving directory `/home/david/src/kdemultimedia-3.3.0/akode/plugins/xiph_decoder'
make: *** [no-final] Error 2
Comment 1 Allan Sandfeld 2004-09-25 14:33:40 UTC
What version of libvorbis do you have installed?
Comment 2 David Jarvie 2004-09-26 15:39:05 UTC
SuSE version 1.0beta4-91. It's probably a bit old, but if that's the problem, shouldn't the build check for a sufficiently up-to-date version?
Comment 3 Allan Sandfeld 2004-09-26 15:44:24 UTC
Yes, it should. I just have to find out where exactly the line seperates. Probably at libvorbis 1.0.
Comment 4 Allan Sandfeld 2004-09-26 17:54:38 UTC
CVS commit by carewolf: 

Improve libvorbis test:
ov_open is also present in older version of libvorbis, ov_test_callbacks is not

CCMAIL:90214-done@bugs.kde.org


  M +1 -1      configure.in.in   1.17


--- kdemultimedia/akode/configure.in.in  #1.16:1.17
@@ -56,5 +56,5 @@
 if test x$ogg_vorbis = xyes; then
    dnl we need the ogg_vorbis_lib because otherwise we override LIBS !
-   KDE_CHECK_LIB(vorbisfile,ov_open,ogg_vorbis_lib=yes,
+   KDE_CHECK_LIB(vorbisfile,ov_test_callbacks,ogg_vorbis_lib=yes,
                 ogg_vorbis=no,[-lvorbisfile -lvorbis -logg])