Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 126335

Summary: libOggFLAC.so: undefined reference to `ogg_stream_pagein'
Product: Gentoo Linux Reporter: Richard Hartmann <rick4711>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Hartmann 2006-03-15 12:42:21 UTC
While emerging 

media-libs/flac-1.1.2-r3 [1.1.0] -3dnow -debug -doc +ogg* +sse +xmms

I received the following error:

i686-pc-linux-gnu-gcc -I../.. -I./include -I../../include -DNDEBUG -DFLaC__INLINE=__inline__ -O2 -march=pentium3 -pipe -o .libs/flac analyze.o decode.o encode.o main.o local_string_utils.o utils.o vorbiscomment.o  ../../src/libOggFLAC/.libs/libOggFLAC.so ../../src/share/grabbag/.libs/libgrabbag.a ../../src/share/getopt/libgetopt.a ../../src/share/replaygain_analysis/.libs/libreplaygain_analysis.a ../../src/share/replaygain_synthesis/.libs/libreplaygain_synthesis.a ../../src/share/utf8/.libs/libutf8.a ../../src/libFLAC/.libs/libFLAC.so -lm
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_pagein'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_sync_wrote'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_sync_reset'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_reset'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_clear'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_packetin'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_packetout'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_sync_init'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_init'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_page_checksum_set'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_pageout'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_sync_clear'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_page_serialno'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_sync_buffer'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_stream_flush'
../../src/libOggFLAC/.libs/libOggFLAC.so: undefined reference to `ogg_sync_pageout'
collect2: ld returned 1 exit status
distcc[29869] ERROR: compile (null) on localhost failed
make[3]: *** [flac] Error 1
make[3]: Leaving directory `/var/tmp/portage/flac-1.1.2-r3/work/flac-1.1.2/src/flac'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/flac-1.1.2-r3/work/flac-1.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/flac-1.1.2-r3/work/flac-1.1.2'
make: *** [all] Error 2

!!! ERROR: media-libs/flac-1.1.2-r3 failed.
!!! Function src_compile, Line 53, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

In the configure script I got the following error:

[cut]

checking for ogg... Package ogg was not found in the pkg-config search path.
Perhaps you should add the directory containing `ogg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ogg' found
configure: WARNING: *** Ogg headers not found.  Ogg support disabled.

[cut]

Strange, but also "ogg" support was disabled by the configure script,
something ogg related was missing and so the emerge process broke.

I found two solutions to the problem:

a) to disable the ogg support (by the use flag)
b) upgrade to libogg-1.1.2 and reemerge flac

Before I had installed libogg-1.0, which was apparently the problem.


Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.4.20040808-r1, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.14.90.0.8-r3
sys-devel/libtool:   1.4.3-r3, 1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mirror.solnet.ch http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cups curl dri eds emboss encode esd ethereal expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imlib ipv6 java jpeg junit kde lcms ldap libg++ libwww mad mhash mikmod mmx mng motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 12:52:43 UTC
Please, use --deep to upgrade your system properly; libogg-1.1.2 is keyworded stable so there's no reason why you should have still version 1.0 installed. 

*** This bug has been marked as a duplicate of 96525 ***
Comment 2 Richard Hartmann 2006-03-15 13:00:27 UTC
This is strange. Actually I use "-vD" everytime I emerge a package.

So did I when I was emerging flac:

emerge -vD =media-libs/flac-1.1.2-r3