Before emerge: brampton wskellenger # emerge -pv mpd These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-sound/mpd-0.12.0 [0.11.5] -aac +alsa -ao +audiofile +flac -icecast +ipv6 +mikmod +mp3 -musepack +oss -pulseaudio -unicode +vorbis 0 kB Total size of downloads: 0 kB During configuration: (...) checking for mad.h... yes checking for mad_stream_init in -lmad... yes checking for Ogg... yes checking for Vorbis... yes checking for libFLAC... yes checking for FLAC__metadata_object_vorbiscomment_find_entry_from in -lFLAC... yes checking for libOggFLAC... yes checking for audiofile-config... /usr/bin/audiofile-config checking for Audio File Library - version >= 0.1.7... yes checking for libmikmod-config... /usr/bin/libmikmod-config checking for libmikmod - version >= 3.1.7... yes, `/usr/bin/libmikmod-config --version` configure: creating ./config.status config.status: creating src/mp4ff/Makefile during compilation: (...) gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -pthread -D_REENTRANT -O3 -mcpu=pentium-mmx -pipe -fomit-frame-pointer -c -o mpd-aac_plugin.o `test -f 'inputPlugins/aac_plugin.c' || echo './'`inputPlugins/aac_plugin.c inputPlugins/oggflac_plugin.c:40:45: OggFLAC/seekable_stream_decoder.h: No such file or directory inputPlugins/oggflac_plugin.c:45: error: syntax error before "OggFLAC__SeekableStreamDecoder" emerge --info: brampton wskellenger # emerge --info Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.11-gentoo-r5 i586) ================================================================= System uname: 2.6.11-gentoo-r5 i586 Pentium MMX Gentoo Base System version 1.6.10 distcc 2.18.3 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.3.5-r2 dev-python/pycrypto: [Not Present] dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.3 sys-devel/binutils: 2.14.90.0.8-r1 sys-devel/gcc-config: 1.3.5 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-pc-linux-gnu" CFLAGS="-O3 -mcpu=pentium-mmx -pipe -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium-mmx -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 acl alsa apache2 audiofile berkdb bitmap-fonts bzip2 cli crypt curl dlloader dri eds emboss encode expat flac fortran gd gdbm gif gpm gstreamer imagemagick imlib ipv6 isdnlog jpeg libg++ libwww mad mhash mikmod motif mp3 mpeg mpm-prefork mysql ncurses nls nptl ogg oss pam pcre perl png pppd python qt3 qt4 readline reflection sdl session spell spl ssl svga tcpd tiff truetype-fonts type1-fonts udev utf8 vorbis xml xml2 xorg zlib video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo input_devices_keyboard input_devices_mouse input_devices_evdev userland_GNU kernel_linux elibc_glibc" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Hm -- looks like flac was not built with +ogg? Total size of downloads: 0 kB brampton wskellenger # emerge -pv flac These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] sys-devel/automake-wrapper-1-r1 0 kB [ebuild NS ] sys-devel/autoconf-2.13 0 kB [ebuild N ] sys-devel/autoconf-wrapper-3.2 0 kB [ebuild U ] sys-devel/autoconf-2.59-r7 [2.59-r5] -emacs 0 kB [ebuild NS ] sys-devel/automake-1.9.6-r2 0 kB [ebuild U ] media-libs/flac-1.1.2-r3 [1.1.0-r2] -3dnow -debug -doc +ogg* -sse -xmms 0 kB Total size of downloads: 0 kB However I do seem to have it: brampton wskellenger # locate libOggFLAC /usr/lib/libOggFLAC++.so.0.0.4 /usr/lib/libOggFLAC++.a /usr/lib/libOggFLAC++.la /usr/lib/libOggFLAC++.so /usr/lib/libOggFLAC.so.1 /usr/lib/libOggFLAC.so.1.0.2 /usr/lib/libOggFLAC.la /usr/lib/libOggFLAC.so /usr/lib/libOggFLAC.a /usr/lib/libOggFLAC++.so.0 /usr/share/aclocal/libOggFLAC++.m4 /usr/share/aclocal/libOggFLAC.m4 Rebuilding flac... will post results.
After emerging flac-1.1.2-r3 (which incidentally bombed because I didn't have the latest libtool -- another dep was missed?), mpd-0.12.0 compiled/installed w/ success. Not sure if an older flac would work if it were built with +ogg option? Regardless, some sort of dependency should be added.
Unfortunately, portage does not support USE flag dependencies. I can only make the emerge bomb out if it finds that flac USE flag is on, and flac has been built without the ogg USE flag.
Ok, I could reproduce this with flac-1.1.0-r2 (no longer in portage) - it simply doesn't install required header file. As mpd builds fine with flac-1.1.1, I made the ebuild depend on 1.1.1 as the minimal version. Upstream has been notified about this, and will most likely update the minimal needed version of flac. Thanks for reporting! BTW, mpd's configure script checks if flac has been built with ogg support, and only enables oggflac support if it was.