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

Bug 16996

Summary: Alsa-lib-0.9.0-rc8-r2 fails to compile
Product: Gentoo Linux Reporter: Phillip Sorensen <pas37>
Component: [OLD] LibraryAssignee: Arcady Genkin (RETIRED) <agenkin>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, seemant
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Phillip Sorensen 2003-03-06 19:28:35 UTC
I tryed to emerge alsa-lib-0.9.0-rc8-r2 and the compile stage failed.  The error
seems to be a missing header file.  It's looking for jack/jack.h.  I don't see
the file in the unpacked tarball.

I had no trouble emerging alsa-lib-0.9.0-rc8-r1


Reproducible: Always
Steps to Reproduce:
1. emerge alsa-lib
2.
3.

Actual Results:  
The compiler output:

make[3]: Entering directory
`/var/tmp/portage/alsa-lib-0.9.0_rc8-r2/work/alsa-lib-0.9.0rc8b/src/pcm/ext'
source='pcm_jack.c' object='pcm_jack.lo' libtool=yes \
depfile='.deps/pcm_jack.Plo' tmpdepfile='.deps/pcm_jack.TPlo' \
depmode=gcc3 /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../../include -I../../../include -I../../../src/pcm    -g -O2 -c -o
pcm_jack.lo `test -f pcm_jack.c || echo './'`pcm_jack.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include
-I../../../src/pcm -g -O2 -c pcm_jack.c -MT pcm_jack.lo -MD -MP -MF
.deps/pcm_jack.TPlo  -fPIC -DPIC -o pcm_jack.lo
pcm_jack.c:36:23: jack/jack.h: No such file or directory
pcm_jack.c:68: parse error before "jack_port_t"
pcm_jack.c:68: warning: no semicolon at end of struct or union
pcm_jack.c:69: warning: data definition has no type or storage class
pcm_jack.c:70: parse error before '}' token
pcm_jack.c:70: warning: data definition has no type or storage class
pcm_jack.c: In function `snd_pcm_jack_close':
pcm_jack.c:76: `jack' undeclared (first use in this function)
pcm_jack.c:76: (Each undeclared identifier is reported only once
pcm_jack.c:76: for each function it appears in.)
pcm_jack.c: In function `snd_pcm_jack_status':
pcm_jack.c:158: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_state':
pcm_jack.c:173: `jack' undeclared (first use in this function)
pcm_jack.c: At top level:
pcm_jack.c:198: parse error before "nframes"
pcm_jack.c: In function `snd_pcm_jack_process_cb':
pcm_jack.c:200: `jack' undeclared (first use in this function)
pcm_jack.c:200: `pcm' undeclared (first use in this function)
pcm_jack.c:212: `nframes' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_prepare':
pcm_jack.c:280: `jack' undeclared (first use in this function)
pcm_jack.c:290: `jack_port_t' undeclared (first use in this function)
pcm_jack.c:290: parse error before ')' token
pcm_jack.c:298: `JACK_DEFAULT_AUDIO_TYPE' undeclared (first use in this function)
pcm_jack.c:298: `JackPortIsOutput' undeclared (first use in this function)
pcm_jack.c:302: `JackPortIsInput' undeclared (first use in this function)
pcm_jack.c:307: `JackProcessCallback' undeclared (first use in this function)
pcm_jack.c:307: parse error before "snd_pcm_jack_process_cb"
pcm_jack.c: In function `snd_pcm_jack_start':
pcm_jack.c:323: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_drop':
pcm_jack.c:391: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_drain':
pcm_jack.c:417: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_pause':
pcm_jack.c:427: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_avail_update':
pcm_jack.c:483: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_hw_refine':
pcm_jack.c:506: `jack' undeclared (first use in this function)
pcm_jack.c: In function `snd_pcm_jack_open':
pcm_jack.c:694: `jack' undeclared (first use in this function)
make[3]: *** [pcm_jack.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/alsa-lib-0.9.0_rc8-r2/work/alsa-lib-0.9.0rc8b/src/pcm/ext'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/alsa-lib-0.9.0_rc8-r2/work/alsa-lib-0.9.0rc8b/src/pcm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/alsa-lib-0.9.0_rc8-r2/work/alsa-lib-0.9.0rc8b/src'
make: *** [all-recursive] Error 1
Comment 1 Roman Weber 2003-03-07 03:49:03 UTC
Same here.

Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://mirrors.sunsite.dk/gentoo/ http://gentoo.linux.no/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gtk qt kde motif opengl icc curl -3dnow aalib alsa bonobo cdr dga dvd esd evo flash gd ggz gphoto2 gps gtk2 gtkhtml guile imap innodb ipv6 lcms mbox mozilla mysql perl plotutils samba sasl slp snmp sse tcltk tiff wmf xface xml"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CXXFLAGS="-march=pentium4 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-03-07 05:15:04 UTC
*** Bug 17014 has been marked as a duplicate of this bug. ***
Comment 3 Scott Banwart 2003-03-07 09:47:30 UTC
Apparently this version requires JACK.  If you emerge jack-audio-connection-kit 
first, alsa-lib will then compile properly. 
Comment 4 Thomas Weidner 2003-03-07 09:48:09 UTC
as a dirty hack add these lines to the top of src_compile():
    cd src/pcm
    cp Makefile.am Makefile.am.orig
    cat Makefile.am.orig | sed -e 's/^SUBDIRS = ext$/#\0/' > Makefile.am
    cd ${S}
Comment 5 Arcady Genkin (RETIRED) gentoo-dev 2003-03-07 12:46:36 UTC
This seems to be a bug with alsa-lib package.  See the following threads.

http://www.mail-archive.com/alsa-devel@lists.sourceforge.net/msg06958.html
http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg07046.html

Anyhow, I guess that if alsa provides a jack plugin, we'd better add it to
the dependencies...
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2003-03-07 12:49:40 UTC
Funny, jack-audio-connection-kit lists alsa-lib as a dependency.  I don't want
to create a circling dependency.  I marked rc8-r2 as -x86 for now.
Comment 7 Arcady Genkin (RETIRED) gentoo-dev 2003-03-07 17:42:21 UTC
0.9.0_rc8-r3 installs the upstream version rc8c, which seems to have the problem
fixed.