Bug 81311 - musepack-tools 1.15t fails to compile, tries to use esd even if it is not present and 'esd' USE flag not used.
Bug#: 81311 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sound@gentoo.org Reported By: rohan@mcgovern.id.au
Component: Ebuilds
URL: 
Summary: musepack-tools 1.15t fails to compile, tries to use esd even if it is not present and 'esd' USE flag not used.
Keywords:  
Status Whiteboard: 
Opened: 2005-02-08 17:04 0000
Description:   Opened: 2005-02-08 17:04 0000
I don't have esd or the esd USE flag set, but when I try to compile
musepack-tools-1.15t, the compile process tries to use esd.

The build process tries to pass parameters for esd libs to the compiler by
calling `esd-config --libs`.  Thus, several times, this error appears:
/bin/sh: esd-config: command not found

The build process continues, but eventually fails with:
replaygain.o(.text+0x75f): In function `CalcReplayGain':
: undefined reference to `sqrt'
replaygain.o(.text+0x76e): In function `CalcReplayGain':
: undefined reference to `sqrt'
replaygain.o(.text+0xa2a): In function `dB':
: undefined reference to `log10'
replaygain.o(.text+0xfab): In function `main':
: undefined reference to `pow'
replaygain.o(.text+0x10d4): In function `main':
: undefined reference to `pow'
... (many similar messages) ...
gain_analysis.o(.text+0x2d): In function `SetPercentile':
: undefined reference to `log'
gain_analysis.o(.text+0x7d1): In function `AnalyzeSamples':
: undefined reference to `log10'
collect2: ld returned 1 exit status
make: *** [replaygain] Error 1



Reproducible: Always
Steps to Reproduce:
1. emerge -C esd
2. USE="-esd" emerge "=media-sound/musepack-tools-1.15t"
Actual Results:  
musepack-tools-1.15t fails to build. 

Expected Results:  
musepack-tools-1.15t should have built. 

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r5-skas3-v7 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r5-skas3-v7 i686 Intel(R) Celeron(R) M processor    
1500MHz 
Gentoo Base System version 1.6.9 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 
19:51:19)] 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mmmx -msse 
-fforce-addr -ftracer -fprefetch-loop-arrays" 
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/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mmmx -msse 
-fforce-addr -ftracer -fprefetch-loop-arrays" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms 
userpriv usersandbox" 
GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo/ 
http://gentoo.osuosl.org 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common" 
MAKEOPTS="-j5" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" 
USE="x86 X alsa apm avi bash-completion berkdb bitmap-fonts cdparanoia cdr 
crypt cups dvd encode f77 fam flac font-server foomaticdb fortran gdbm gif hal 
i8x0 imagemagick imlib java jpeg kde kdeenablefinal libg++ libwww mad mikmod 
mmx mmx2 mng mono motif mpeg mysql ncurses nls offensive oggvorbis opengl pam 
pcmcia pdflib perl pic png ppds qt quicktime readline samba sdl slang spell 
sqlite sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts wifi 
xine xml2 xv xvmc zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL

------- Comment #1 From Jan Brinkmann (RETIRED) 2005-02-09 10:36:50 0000 -------
thanks for your report, fixed.