Subject: Re: libvorbis using wrong library
To: Jeremy C. Reed <reed@reedmedia.net>
From: Johnny Lam <jlam@jgrind.org>
List: tech-pkg
Date: 10/03/2001 21:14:15
On Wed, Oct 03, 2001 at 07:02:35PM -0700, Jeremy C. Reed wrote:
> Please note that I have a working libvorbis-1.0beta4 installed under
> /usr/local/lib/.
Exactly which Ogg/Vorbis-related libraries can be found in /usr/local/lib?
> Today, I tried to use vorbis-tools-1.0.0.6 package (1.0rc2) which needs
> libvorbis-1.0.0.6 package (1.0rc2).
>
> Notice below the reference to -lm /usr/local/lib/libogg.a:
>
> Making all in examples
> /bin/sh ../libtool --mode=link cc -O20 -D__NO_MATH_INLINES -fsigned-char -I/usr
> /pkg/pkgsrc/audio/libvorbis/work/.buildlink/include -O2 -DUSE_MEMORY_H -static -
> o chaining_example chaining_example.o ../lib/libvorbisfile.la
> ../lib/libvorbis.
> la -lm -L/lib -logg
> cc -O20 -D__NO_MATH_INLINES -fsigned-char
> -I/usr/pkg/pkgsrc/audio/libvorbis/work/.buildlink/include -O2
> -DUSE_MEMORY_H -o chaining_example chaining_example.o
> ../lib/.libs/libvorbisfile.a
> -L/usr/pkg/pkgsrc/audio/libvorbis/work/.buildlink/lib -L/lib
> ../lib/.libs/libvorbis.a -lm /usr/local/lib/libogg.a
> ../lib/.libs/libvorbisfile.a(vorbisfile.o): In function
> `ov_pcm_seek_page':
> vorbisfile.o(.text+0x1939): undefined reference to `ogg_stream_packetpeek'
> ../lib/.libs/libvorbisfile.a(vorbisfile.o): In function `ov_pcm_seek':
> vorbisfile.o(.text+0x1aa1): undefined reference to `ogg_stream_packetpeek'
> collect2: ld returned 1 exit status
This is disheartening, since those packages are marked USE_BUILDLINK_ONLY.
I'd really like to track down why this is happening. Answering the question
above about what's in /usr/local/lib is a start, but also the output of
the configure process, and possible the config.log file from the libvorbis
package would be nice.
Thanks,
-- Johnny Lam <jlam@jgrind.org>