Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17377 - vorbis-tools fails to build (in configure phase) - possibly libvorbis problem?
Summary: vorbis-tools fails to build (in configure phase) - possibly libvorbis problem?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Markus Nigbur (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-12 09:38 UTC by Jonas Berlin
Modified: 2003-10-03 16:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Berlin 2003-03-12 09:38:52 UTC
While building vorbis-tools, I got the following error:

------------------------------------------------------
checking for Ogg... yes
checking for Vorbis... no
*** Could not run Vorbis test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Vorbis was incorrectly installed
*** or that you have moved Vorbis since it was installed.
configure: error: Vorbis needed!

!!! ERROR: media-sound/vorbis-tools-1.0-r1 failed.
!!! Function econf, Line 262, Exitcode 1
!!! econf failed
------------------------------------------------------

I have the following versions of the dependencies installed:
media-libs/libvorbis-1.0-r1 *
media-libs/libogg-1.0 *
media-libs/libao-0.8.3 *
net-ftp/curl-7.10.2 *

I checked the config.log and found:
------------------------------------------------------
configure:7539: checking for Vorbis
configure:7569: gcc -o conftest -O20 -ffast-math -fsigned-char -march=athlon-tbird -O3 -pipe -mmmx -m3dnow -momit-leaf-frame-pointer -I/usr/include -I/usr/include    conftest.c  -L/usr/lib -lvorbis -lm -L/usr/lib -logg 1>&5
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_write_boolean'
/usr/lib/libvorbis.so: undefined reference to `xmms_usleep'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_read_boolean'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_read_string'
/usr/lib/libvorbis.so: undefined reference to `xmms_get_titlestring'
/usr/lib/libvorbis.so: undefined reference to `xmms_titlestring_descriptions'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_free'
/usr/lib/libvorbis.so: undefined reference to `xmms_show_message'
/usr/lib/libvorbis.so: undefined reference to `xmms_create_dir_browser'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_remove_key'
/usr/lib/libvorbis.so: undefined reference to `xmms_get_gentitle_format'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_write_int'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_write_string'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_new'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_write_file'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_open_file'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_read_int'
/usr/lib/libvorbis.so: undefined reference to `xmms_cfg_open_default_file'
collect2: ld returned 1 exit status
configure: failed program was:
#line 7553 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vorbis/codec.h>

int main ()
{
  system("touch conf.vorbistest");
  return 0;
}
------------------------------------------------------

I did "ldd" on the libvorbis.so:
------------------------------------------------------
$ ldd /usr/lib/libvorbis.so
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40019000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x40174000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x401ad000)
        libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x401b0000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x401b3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401d8000)
        libdl.so.2 => /lib/libdl.so.2 (0x40228000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x4022c000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40234000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40244000)
        libm.so.6 => /lib/libm.so.6 (0x40323000)
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x40345000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x4034c000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x4036d000)
        libc.so.6 => /lib/libc.so.6 (0x40371000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
------------------------------------------------------

"objdump -T /usr/lib/libvorbis.so" confirms that there are indeed undefined (external) references to xmms_* functions.

Furthermore, the "dependency_libs" in /usr/lib/libvorbis.la is (in case it would be of any help to you):
------------------------------------------------------
# Libraries that this one depends upon.
dependency_libs=' -L/usr/lib -L/usr/X11R6/lib /usr/lib/libgtk.la -lm /usr/lib/libgdk.la /usr/lib/libgmodule.la /usr/lib/libgthread.la -lpthread /usr/lib/libglib.la -ldl -lXi -lXext -lX11 /usr/lib/libvorbisfile.la /usr/lib/libvorbis.la /usr/lib/libogg.la'
------------------------------------------------------

Should I investigate further? Any ideas on what I should do to fix this? Do you need some more info perhaps?
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-12 09:41:19 UTC
please paste
#emerge info
Comment 2 Jonas Berlin 2003-03-12 17:43:10 UTC
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-gentoo-r1-1 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://ftp.tu-clausthal.de/pub/linux/gentoo/"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/home/xkr47/portage"
USE="x86 3dnow apm avi crypt cups encode gif jpeg gnome mikmod mmx ncurses nls pdflib png qt quicktime spell truetype xml2 xmms xv gdbm berkdb slang readline X sdl gpm pam libwww ssl python imlib oggvorbis gtk motif opengl -arts dga doc dvd gd gphoto2 gtk2 gtkhtml imap -java -kde lcms ldap lm_sensors -matrox mpeg mysql nas oss pda perl pic plotutils ruby samba -sse svga -tcpd tetex tiff usb zlib -aalib -alsa -bonobo -directfb -esd -ggi -guile -libg++ -mozilla -postgres -scanner -snmp -tcltk ungif freetype"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -momit-leaf-frame-pointer"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -momit-leaf-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j3"
AUTOCLEAN="no"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
FEATURES="sandbox distcc ccache"
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-03-12 18:14:19 UTC
try to turn down your compiler flags
Comment 4 Jonas Berlin 2003-03-17 03:29:43 UTC
Don't know what happened, but now the libvorbis.so doesn't anymore have external references to libxmms. According to the logs, libvorbis was updated from 1.0-r1 to 1.0-r2 (by a "emerge -u world") after I reported the bug, so that might have fixed it.
Comment 5 Brandy Westcott (RETIRED) gentoo-dev 2003-09-07 01:53:47 UTC
This error looks like the result of the (now resolved) einstall problems with xmms. 
(see Bug #16599 and #17363) 
 
On my machine: 
 
	# grep xmms_cfg_write_boolean /usr/lib/xmms/Input/libvorbis.so 
	Binary file /usr/lib/xmms/Input/libvorbis.so matches 
 
	#qpkg -f /usr/lib/xmms/Input/libvorbis.so 
	media-sound/xmms * 
 
	# ldd /usr/lib/xmms/Input/libvorbis.so 
	libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40021000) 
	libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4017a000) 
	libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x401b3000) 
	libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x401b6000) 
	libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x401b9000) 
	libpthread.so.0 => /lib/libpthread.so.0 (0x401dd000) 
	libdl.so.2 => /lib/libdl.so.2 (0x4022c000) 
	libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40230000) 
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40238000) 
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40248000) 
	libm.so.6 => /lib/libm.so.6 (0x4032a000) 
	libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x4034c000) 
	libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40353000) 
	libogg.so.0 => /usr/lib/libogg.so.0 (0x40374000) 
	libc.so.6 => /lib/libc.so.6 (0x40378000) 
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) 
 
	# ldd /usr/lib/libvorbis.so 
	libm.so.6 => /lib/libm.so.6 (0x40031000) 
	libogg.so.0 => /usr/lib/libogg.so.0 (0x40054000) 
	libc.so.6 => /lib/libc.so.6 (0x40058000) 
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) 
 
Maybe we can close this? :) 
 
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2003-10-02 18:15:32 UTC
I'm trying to reduce the number of packages I maintain.
Punting back to bug-wranglers.
Comment 7 Markus Nigbur (RETIRED) gentoo-dev 2003-10-03 16:09:02 UTC
Please reopen if it's still a valid issue.