Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47489

Summary: alsa-tools-0.9.8 fails to compile
Product: Gentoo Linux Reporter: Markus Rothe (RETIRED) <corsair>
Component: Current packagesAssignee: PPC Porters <ppc>
Status: RESOLVED INVALID    
Severity: normal CC: sound
Priority: High    
Version: 2004.0   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markus Rothe (RETIRED) gentoo-dev 2004-04-11 00:45:11 UTC
Hi,

I just tried to install alsa-tools several times on my powerbook, but it fails to compile. Here is the output:

checking for a BSD compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0... found.
checking for snd_ctl_open in -lasound... yes
checking for kernel header files... /lib/modules/2.6.1-benh1/build/include
checking for directory with ALSA kernel headers...  -I/lib/modules/2.6.1-benh1/build/include
configure: creating ./config.status
config.status: creating Makefile
source='cspctl.c' object='cspctl.o' libtool=no \
depfile='.deps/cspctl.Po' tmpdepfile='.deps/cspctl.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE=\"cspctl\" -DVERSION=\"0.2.0\" -DSTDC_HEADERS=1 -DHAVE_LIBASOUND=1  -I. -I.   -I/usr/include/fltk-1.1  -mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt -I/lib/modules/2.6.1-benh1/build/include  -I/lib/modules/2.6.1-benh1/build/include -c `test -f cspctl.c || echo './'`cspctl.c
gcc  -mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt -I/lib/modules/2.6.1-benh1/build/include  -I/lib/modules/2.6.1-benh1/build/include  -L/usr/lib/fltk-1.1  -lasound -lm -ldl -lpthread -o cspctl  cspctl.o  -lasound -lm -ldl -lpthread
cspctl.o(.text+0x6fe): In function `csp_command':
: undefined reference to `__invalid_size_argument_for_IOC'
cspctl.o(.text+0x70a): In function `csp_command':
: undefined reference to `__invalid_size_argument_for_IOC'
collect2: ld returned 1 exit status
make: *** [cspctl] Error 1
 
!!! ERROR: media-sound/alsa-tools-0.9.8 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! make failed
 
Here is my "emerge info" output:

Portage 2.0.50-r3 (default-ppc-2004.0, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-benh1)
=================================================================
System uname: 2.6.1-benh1 ppc 7457, altivec supported
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=7450 -O3 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://192.168.0.3/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl aim alsa arts audiofile berkdb cdr crypt cups dga directfb dvd dvdr emacs encode ethereal fam fbcon foomaticdb gdbm ggi gif gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 jabber java jpeg libwww linguas_de mad mitshm motif mozilla mpeg mpi mule ncurses nls oggvorbis opengl oss pam perl png ppc python qt quicktime readline sdl slang ssl tcpd tetex tiff truetype usb videos xml xml2 xmms xosd xv zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-12 00:42:33 UTC
1) What tool was it trying to compile when it failed.  Try removing it from ALSA_TOOLS if you don't need it (and ppc guys might want to remove the failing one  by default).

2) Can youu try alsa-tools-1.0.4
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2004-04-12 03:22:38 UTC
don`t know what tool fails to compile, so I can`t remove it from the list... but alsa-tools 1.0.4 compiles and works (as I can say in less than 5 minutes testing ;-)

I also upgraded to alsa-lib, alsa-oss and alsa-utils to version 1.0.4. Seems to be stable, but I`ll post in a few days if it is realy stable.

Markus
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2004-04-18 10:29:01 UTC
Just want to let you know: 1.0.4 works perfect!

Markus
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-18 12:00:00 UTC
see the comments... 1.0.4 and above is required for 2.6 kernels.
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2004-04-19 07:41:13 UTC
whick comments?

Markus
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-19 12:19:11 UTC
the einfo comments that get printed when you emerge the package:

einfo "Version 1.0.3 and above should work with version 2.6 kernels."

Also, the alsa howto mentions this as well.