Bug 115058 - kdemultimedia ./configure fails on Solaris with -lvorbisenc errors when libvorbisenc is present
Summary: kdemultimedia ./configure fails on Solaris with -lvorbisenc errors when libvo...
Status: RESOLVED FIXED
Alias: None
Product: kdemultimedia
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-25 13:04 UTC by Steve Evans
Modified: 2008-12-15 20:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch (550 bytes, patch)
2005-10-25 14:35 UTC, Allan Sandfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2005-10-25 13:04:19 UTC
Version:            (using KDE KDE 3.4.92)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.3 
OS:                Solaris

configure output:

checking for vorbis/vorbisfile.h... yes
checking for vorbis_info_init in -lvorbis... yes
checking for ov_open in -lvorbisfile... yes
checking for vorbis_info_clear in -lvorbisenc... no
checking for vorbis_bitrate_addblock in -lvorbisenc... no
configure: error: --with-vorbis was given, but test for Ogg Vorbis failed

The config.log contains:
configure:34051: checking for vorbis_info_clear in -lvorbisenc
configure:34081: gcc -o conftest -DNDEBUG -O2  -I/opt/kde/include -I/gorbag/exta/cad/externals/SOL
ARIS/include -I/opt/qt/include  -O2 -fomit-frame-pointer  -DNeedVarargsPrototypes=1 -DNeedFunction
Prototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc  -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gor
bag/exta/cad/externals/SOLARIS/include -I/opt/qt/include  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DUSE_SOLARIS -DSVR4 -L/opt/kde/lib -L/gorbag/exta/cad/externals/SOLARIS/lib -L/opt/qt/lib -lnsl -
lxnet -lsocket -liconv -L/opt/kde/lib -L/opt/qt/lib     -L/gorbag/exta/cad/externals/SOLARIS/lib c
onftest.c -lvorbisenc  -L/gorbag/exta/cad/externals/SOLARIS/lib -lnsl -lxnet -lsocket -liconv >&5
Undefined                       first referenced
 symbol                             in file
vorbis_info_clear                   /tmp/ccmVJbch.o  (symbol belongs to implicit dependency /gorbag/exta/cad/externals/SOLARIS/lib/libvorbis.so.0)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status

The problem appears to be that vorbis_info_clear and vorbis_bitrate_addblock are in -lvorbis, which is not on the link line. This is with libvorbis version 1.1.1
Comment 1 Allan Sandfeld 2005-10-25 14:35:56 UTC
Created attachment 13146 [details]
Patch

Does this patch help?
Comment 2 Steve Evans 2005-10-25 14:52:01 UTC
How do I regenerate the configure script from this updated configure.in.in?
Comment 3 Steve Evans 2005-10-25 15:01:53 UTC
OK, I have managed to regenerate the configure file, and the patch fixes the problem, thanks.
Comment 4 groot 2008-12-15 20:58:52 UTC
Reported fixed, also not relevant in KDE4 anymore (different detection through cmake).