Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101161 - libao 0.8.6 fails to compile/install
Summary: libao 0.8.6 fails to compile/install
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
: 108453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-02 22:25 UTC by ash
Modified: 2007-08-14 10:28 UTC (History)
2 users (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 ash 2005-08-02 22:25:10 UTC
-lao fails with the linker, because there does not appear to be a libao.a or
libao.dylib file installed by this ebuild (my friend tells me this is bad).
Renaming the file libao to libao.dylib resulted in the following error when the
library was used in building gaim:

/usr/bin/ld: warning multiple definitions of symbol _locale_charset
/usr/lib/libintl.dylib(localcharset.o) definition of _locale_charset
/usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/usr/bin/ld: Undefined symbols:
_dlsym_auto_underscore

Reproducible: Didn't try
Steps to Reproduce:
1. emerge libao
2. emerge a package that uses libao, such as gaim
3. when the package configuration fails to utilize libao, cp /usr/lib/libao
/usr/libao.dylib
4. emerge the package again

Actual Results:  

/usr/bin/ld: warning multiple definitions of symbol _locale_charset
/usr/lib/libintl.dylib(localcharset.o) definition of _locale_charset
/usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/usr/bin/ld: Undefined symbols:
_dlsym_auto_underscore

Expected Results:  
it should have worked the first time

!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.19 (default-darwin/macos/10.4, gcc-4.0.1, libsystem-7.1-r0, 8.2.0
Power Macintosh)
=================================================================
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
Python:               [2.3.5 (#1, Mar 20 2005, 20:38:20)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks 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="ppc X emboss nls opengl png ppc-macos readline tiff userland_Darwin
kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Lina Pezzella (RETIRED) gentoo-dev 2005-08-07 20:16:36 UTC
I can't verify this bug. What I can verify is that libao-0.8.6-r1 doesn't compile as is. We need automake -a 
-c -f. If this is okay on linux, could the maintainer please make the switch? Otherwise, I can do it for ppc-
macos only.

Thanks!
Comment 2 Fabian Groffen gentoo-dev 2005-10-08 01:02:22 UTC
*** Bug 108453 has been marked as a duplicate of this bug. ***
Comment 3 Fabian Groffen gentoo-dev 2005-10-08 01:03:24 UTC
From duplicated bug:

source='ao_macosx.c' object='ao_macosx.lo' libtool=yes \
depfile='.deps/ao_macosx.Plo' tmpdepfile='.deps/ao_macosx.TPlo' \
depmode=gcc3 /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libao\" -DVERSION=\"0.8.6\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBPTHREAD=1
-DDLOPEN_FLAG=\(RTLD_LAZY\) -DSHARED_LIB_EXT=\".so\" -DSIZEOF_SHORT=2
-DSIZEOF_INT=4 -DSIZEOF_LONG=4  -I. -I. -I../../../include/ao -I../../../include
   -D__NO_MATH_INLINES -fsigned-char  -O2 -pipe -c -o ao_macosx.lo `test -f
'ao_macosx.c' || echo './'`ao_macosx.c
mkdir .libs
 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libao\"
-DVERSION=\"0.8.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_LIBPTHREAD=1 "-DDLOPEN_FLAG=(RTLD_LAZY)" -DSHARED_LIB_EXT=\".so\"
-DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I../../../include/ao
-I../../../include -D__NO_MATH_INLINES -fsigned-char -O2 -pipe -c ao_macosx.c
-MT ao_macosx.lo -MD -MP -MF .deps/ao_macosx.TPlo  -fno-common -DPIC -o
.libs/ao_macosx.o
ao_macosx.c:421:2: warning: #warning On the last buffer, zero out the part of
the buffer that does not have valid samples
ao_macosx.c:424:2: warning: #warning The bytes in the buffer are currently in
little endian, but we need big endian. Supposedly these are going to be host
endian at some point and the following line of code can go away.
ao_macosx.c: In function `audioDeviceIOProc':
ao_macosx.c:385: error: `SHRT_MAX' undeclared (first use in this function)
ao_macosx.c:385: error: (Each undeclared identifier is reported only once
ao_macosx.c:385: error: for each function it appears in.)
make[3]: *** [ao_macosx.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




emerge info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.53_rc4 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0,
8.2.0 Power Macintosh)
=================================================================
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks 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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X Xaw3d aalib altivec berkdb bzip2 cdr cups curl dga dynagraph ecc
emboss flac gd gif idea ipv6 javascript jpeg latex ldap lesstif libwww mad motif
neXt nls ogg opengl png ppc-macos python qt sdl slang speex sqlite ssl tetex
tiff unicode vorbis xinerama xv zlib userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 Elias Pipping (RETIRED) gentoo-dev 2007-08-14 10:21:00 UTC
i don't think this problem persists as of 2007 and v0.8.6-r3.
Comment 5 Fabian Groffen gentoo-dev 2007-08-14 10:28:48 UTC
works fine in Prefix.