Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99270 - ERROR: media-libs/audiofile-0.2.6-r1 failed. linux/soundcard.h: No such file or directory
Summary: ERROR: media-libs/audiofile-0.2.6-r1 failed. linux/soundcard.h: No such file ...
Status: RESOLVED INVALID
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:
Depends on:
Blocks:
 
Reported: 2005-07-16 14:45 UTC by Dick Marinus
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 Dick Marinus 2005-07-16 14:45:31 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libaudiofile    -O2 -pipe -mcpu=7400
-maltivec -mabi=altivec -c `test -f linuxtest.c || echo './'`linuxtest.c
linuxtest.c:39:29: linux/soundcard.h: No such file or directory
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)

linux sounds bad on mac os x :o)

Reproducible: Always
Steps to Reproduce:
1. emerge --sync
2. emerge -Du world
3. emerge --oneshot audiofile

Actual Results:  
ERROR: media-libs/audiofile-0.2.6-r1 failed.

Expected Results:  
compile media-libs/audiofile

!!! 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.22-r1 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0,
7.9.0 Power Macintosh)
=================================================================
System uname: 7.9.0 Power Macintosh powerpc
macos-20041118
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"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -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 -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sfperms strict userpriv"
GENTOO_MIRRORS="http://routi.marinus/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://gentoo.oregonstate.edu
http://www.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://routi.marinus/gentoo-portage"
USE="ppc X altivec dvd dvdread emboss ipv6 mad ogg opengl png ppc-macos readline
samba sdl truetype xvid userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Kito (RETIRED) gentoo-dev 2005-07-16 14:53:16 UTC
It looks your CBUILD is set incorrectly in make.conf:

  CBUILD="powerpc-unknown-linux-gnu"

For 10.3 this should be:

  CBUILD="powerpc-apple-darwin7"

And for 10.4:

   CBUILD="powerpc-apple-darwin8"

Did you set this manually or is this our fault?

Comment 2 Dick Marinus 2005-07-16 15:04:26 UTC
I've learned from make.conf.example:

# All PowerPC systems should use this host setting:
CHOST="powerpc-unknown-linux-gnu"

But I guess this is wrong?

I've fixed CHOST and audiofile compiled fine, thanks a lot!