Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86558 - Two warning and an error emerging audiofile
Summary: Two warning and an error emerging audiofile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 11:19 UTC by Ray DeGennaro
Modified: 2006-04-12 10:53 UTC (History)
0 users

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 Ray DeGennaro 2005-03-24 11:19:17 UTC
I get warnings about aclocal.m4 and to not set --host and an error that soundcard.h can't be found when I try to emerge audiofile on a PowerMac MDD Dual 867 running 10.3.8. I've done 'emerge --sync' and 'emerge --update --deep world' and I still get the error. 

Reproducible: Always
Steps to Reproduce:
1.emerge audiofile
Actual Results:  
MDDDual867:~ RayD$ sudo emerge audiofile
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/audiofile-0.2.6-r1 to /
>>> md5 src_uri ;-) audiofile-0.2.6.tar.gz
>>> Unpacking source...
>>> Unpacking audiofile-0.2.6.tar.gz to /var/tmp/portage/audiofile-0.2.6-r1/work
 * Applying sfconvert-eradicator.patch ...                                [ ok ]
 * Using GNU config files from /usr/share/gnuconfig
 *  Updating config.sub                                                   [ ok ]
 *  Updating config.guess                                                 [ ok ]
You should update your `aclocal.m4' by running aclocal.

...

./configure --prefix=/usr --host=powerpc-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-largefile
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.

...

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libaudiofile    -O2 -pipe -maltivec -mabi=altivec -c `test -f linuxtest.c || echo './'`linuxtest.c
linuxtest.c:39:29: linux/soundcard.h: No such file or directory
/bin/sh ../libtool --mode=link gcc  -O2 -pipe -maltivec -mabi=altivec   -o adddcoffset  adddcoffset.o ../libaudiofile/libaudiofile.la -lm 
linuxtest.c: In function `setupdsp':
linuxtest.c:136: error: `AFMT_S16_BE' undeclared (first use in this function)
linuxtest.c:136: error: (Each undeclared identifier is reported only once
linuxtest.c:136: error: for each function it appears in.)
linuxtest.c:137: error: `SNDCTL_DSP_SETFMT' undeclared (first use in this function)
linuxtest.c:150: error: `SNDCTL_DSP_CHANNELS' undeclared (first use in this function)
linuxtest.c:157: error: `SNDCTL_DSP_SPEED' undeclared (first use in this function)
make[2]: *** [linuxtest.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mkdir .libs
gcc -O2 -pipe -maltivec -mabi=altivec -o adddcoffset adddcoffset.o  ../libaudiofile/.libs/libaudiofile.a -lm
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

!!! ERROR: media-libs/audiofile-0.2.6-r1 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

MDDDual867:~ RayD$ 


Expected Results:  
compiled correctly or given me a "masked" error.

MDDDual867:~ RayD$ sudo 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.51.19 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.8.0 Power Macintosh)
=================================================================
System uname: 7.8.0 Power Macintosh powerpc
macos-20041118
Python:               [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [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 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
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 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss ncurses nls ppc-macos readline"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Lina Pezzella (RETIRED) gentoo-dev 2005-03-24 18:05:45 UTC
Works fine here. My best guess would be to blame your CFLAGS/CHOST.

Trying using the following at least:
CHOST="powerpc-apple-darwin"

Also, give -fPIC a try in your CFLAGS. Let me know if -fPIC is necessary and I can force it in the ebuild.

burgundy@j4rg0ns-book build $ 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.51.19 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.8.0 Power Macintosh)
=================================================================
System uname: 7.8.0 Power Macintosh powerpc
macos-20040726
Python:              dev-lang/python-2.3 [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3
sys-devel/autoconf:  2.57
sys-devel/automake:  1.6.3
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   2.4.4
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-fast -fPIC -mcpu=7450 -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="-fast -fPIC -mcpu=7450 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks keepwork userpriv"
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 aalib afs aim altivec avi berkdb bzip2 bzlib cscope cups curl dvd emboss flash ftp gif jpeg ldap ming mng mpeg ncurses nls oggvorbis pam pdflib png ppc-macos python qt readline ruby samba spell ssl svg tidy tiff truetype usb video wmf wxwindows xml xml2 xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 2 Ray DeGennaro 2005-03-25 08:11:01 UTC
>------- Additional Comments From j4rg0n@gentoo.org  2005-03-24 18:05 PST -------
>Works fine here. My best guess would be to blame your CFLAGS/CHOST.
>
>Trying using the following at least:
>CHOST="powerpc-apple-darwin"

Ah, so the true error might be that the default make.conf says:
# Host Setting
# ============
#
# All PowerPC systems should use this host setting:
CHOST="powerpc-unknown-linux-gnu"

{Waiting for 'emerge audiofile' to finish......}

I still get the aclocal and build warnings .... OK. It finished. It looks like the ppc-generic CHOST line was the cause.

Ray
Comment 3 Lina Pezzella (RETIRED) gentoo-dev 2005-03-25 17:49:08 UTC
I just looked in CVS, and the default make.conf says what I have. Perhaps that was fixed after you installed portage. In any case, glad to hear it's working.