Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500676 - =media-sound/mpd-0.18.8 fails to compile: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libFLAC.so: undefined reference to symbol 'ogg_stream_flush'
Summary: =media-sound/mpd-0.18.8 fails to compile: /usr/lib/gcc/x86_64-pc-linux-gnu/4....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-08 11:01 UTC by Thomas Sachau
Modified: 2014-03-24 18:12 UTC (History)
11 users (show)

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


Attachments
build.log (build.log,205.00 KB, text/plain)
2014-02-08 11:01 UTC, Thomas Sachau
Details
mpd-build-failure.zip (mpd-build-failure.zip,17.39 KB, application/zip)
2014-02-11 00:54 UTC, Nicholas O'Connor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2014-02-08 11:01:17 UTC
Created attachment 369870 [details]
build.log

emerge --info:

Portage 2.2.6-r1-multilib (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.4.77-gentoo x86_64)
=================================================================
System uname: Linux-3.4.77-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8200312 total,    207764 free
KiB Swap:     987992 total,    884752 free
Timestamp of tree: Mon Apr 22 07:39:43 CEST 2013
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0::java-overlay
dev-lang/python:          2.6.9, 2.7.6
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.6.3, 4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo enlightenment sunrise multilib x11 local
Installed sets: @enlightenment-modules, @fonts
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-multilib merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3 --load-average=8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/portage/portage"
PORTDIR_OVERLAY="/var/lib/layman/enlightenment /var/lib/layman/sunrise /var/lib/layman/multilib-portage /var/lib/layman/x11 /usr/local/portage"
SYNC="cvs://tommy@cvs.gentoo.org:/var/cvsroot"
USE="3dnow X alsa amd64 berkdb cli cracklib crypt cups custom-cflags custom-cxxflags custom-optimization cxx dri gpm hardened java5 java6 justify mmx modules ncurses nls nptl nsplugin ogg openmp pam pax_kernel readline scanner session sse sse2 ssl tcpd unicode urandom v4l vorbis zlib" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" MULTILIB_ABI="amd64 x86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python2_6" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.6 2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nicholas O'Connor 2014-02-11 00:54:27 UTC
Created attachment 370110 [details]
mpd-build-failure.zip

This zip file contains my build log and the output of emerge --info (I have --verbose in default opts, which generated a ton of output, and I thought this a little more organized than making two attachments).

My exact error is slightly different ("/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libvorbisfile.so: undefined reference to symbol 'ogg_stream_init'"), but they are both undefined references to ogg_stream symbols so I believe it is part of the same bug.
Comment 2 Casper Ti. Vector 2014-02-13 16:17:07 UTC
This is very similar to bug #499346 and might probably be resolvable similarly.
Comment 3 Nicholas O'Connor 2014-03-06 22:50:53 UTC
Got it to build with USE="opus" (as mentioned in bug #499346). Kind of strange that enabling a seemingly unrelated flag solved the problem, but I guess I don't know enough about the Opus codec to understand why this works :V
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-03-07 05:41:19 UTC
(In reply to Nicholas O'Connor from comment #3)
> Got it to build with USE="opus" (as mentioned in bug #499346). Kind of
> strange that enabling a seemingly unrelated flag solved the problem, but I
> guess I don't know enough about the Opus codec to understand why this works
> :V

There is an perfectly sane explanation for that:
The configure.ac adds -logg to linker line when opus is enabled because the opus plug-in code is using ogg functions directly.
Comment 5 Christoph Mende (RETIRED) gentoo-dev 2014-03-22 16:10:07 UTC
I cannot reproduce this with mpd-0.18.9 and USE="ogg vorbis -opus".
Can any of you reproduce it? If yes, which USE flag combination?
Comment 6 Marc Arens 2014-03-23 23:11:56 UTC
I just tested it and this bug seems to be fixed with mpd-0.18.9. I was affected by this bug in previous version but mpd compiles/runs properly now. Use flags here were/are: alsa bzip2 curl ffmpeg fifo flac id3tag inotify ipv6 mad network ogg tcpd unicode vorbis
Comment 7 Christoph Mende (RETIRED) gentoo-dev 2014-03-24 18:12:02 UTC
Thanks for your feedback