Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7291 - alsa-driver 0.9.0rc3 not compiling..
Summary: alsa-driver 0.9.0rc3 not compiling..
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Arcady Genkin (RETIRED)
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-31 06:59 UTC by Bart Verwilst
Modified: 2003-02-04 19:42 UTC (History)
4 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 Bart Verwilst 2002-08-31 06:59:12 UTC
gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe   -DEXPORT_SYMTAB -c timer.c In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124,                  from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43,                  from ../alsa-kernel/core/timer.c:22,                  from timer.c:1: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe   -DEXPORT_SYMTAB -c sound.c In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124,                  from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43,                  from ../alsa-kernel/core/rawmidi.c:22,                  from rawmidi.c:1: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe  -DKBUILD_BASENAME=init   -c -o init.o init.c In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124,                  from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43,                  from ../alsa-kernel/core/sound.c:22,                  from sound.c:2: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want sound.c:41: `snd_hack_usb_set_interface' undeclared here (not in a function) sound.c:41: initializer element is not constant sound.c:41: (near initialization for `__ksymtab_snd_hack_usb_set_interface.value') make[1]: *** [sound.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124,                  from /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43,                  from ../alsa-kernel/core/init.c:22,                  from init.c:2: /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: `struct isapnp_card_id' declared inside parameter list /var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: warning: its scope is only this definition or declaration, which is probably not what you want make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/acore' make: *** [compile] Error 1  !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 63, Exitcode 2
Comment 1 Arcady Genkin (RETIRED) gentoo-dev 2002-09-01 14:48:47 UTC
Yeah, I know.  That's why it is still masked out; I haven't had a chance to look
into this.

If you want, you can work around this temporarilly by specifying which driver(s)
to build (provided you have a PCI card):

  env ALSA_CARDS="emu10k1" emerge alsa-driver

HTH.
Comment 2 Thomas Koller 2002-09-04 07:13:57 UTC
hi guys,

take a look at

http://sourceforge.net/tracker/index.php?
func=detail&aid=597453&group_id=27464&atid=390601

seems that fixes some problems.

hth
thomas
Comment 3 Arcady Genkin (RETIRED) gentoo-dev 2002-09-04 17:55:20 UTC
Thomas, thanks for the research.  Looks like this might fix the compilation, but
I am not certain that it won't break anything at runtime.  Since the patch is
not officially endorsed or acknowledged, I don't feel comfortable with including
it in the ebuild.
Comment 4 Thomas Koller 2002-09-04 18:14:01 UTC
Arcardy,

on www.alsa-project.org you'll find the following statement:

"Note for compiling alsa-driver-0.9.0rc3: Please remove the file - alsa-driver-
0.9.0rc3/include/linux/isapnp.h - before running the configure script."

I tried this and the solution from http://sourceforge.net/tracker/index.php?
func=detail&aid=597453&group_id=27464&atid=390601

Both soluitons fixes the bug with isapnp.h. But i got now other problems which 
i think results of using kernel 2.4.20-pre5.
Comment 5 Arcady Genkin (RETIRED) gentoo-dev 2002-09-04 19:52:22 UTC
Thanks again, Thomas.  The version 1.3 of the _rc3 ebuild (in CVS now) removes
the isapnp.h file.  It seems that the previous bug has gone away (Bart, confirm,
please).

However, it still doesn't compile for me.  I'm using kernel 2.4.20-pre4-ac1 on
my current workstation.  I'll try on my home box once I get there.
Comment 6 Bart Verwilst 2002-09-05 11:02:36 UTC
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: 
warning: `struct isapnp_card_id' declared inside parameter list 
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: 
warning: its scope is only this definition or declaration, which is probably 
not what you want 
sound.c:41: `snd_hack_usb_set_interface' undeclared here (not in a function) 
sound.c:41: initializer element is not constant 
sound.c:41: (near initialization for 
`__ksymtab_snd_hack_usb_set_interface.value') 
make[1]: *** [sound.o] Error 1 
make[1]: *** Waiting for unfinished jobs.... 
In file included from 
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/adriver.h:124, 
                 from 
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/sound/driver.h:43, 
                 from ../alsa-kernel/core/isadma.c:29, 
                 from isadma.c:2: 
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: 
warning: `struct isapnp_card_id' declared inside parameter list 
/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/include/linux/isapnp.h:334: 
warning: its scope is only this definition or declaration, which is probably 
not what you want 
make[1]: Leaving directory 
`/var/tmp/portage/alsa-driver-0.9.0_rc3/work/alsa-driver-0.9.0rc3/acore' 
make: *** [compile] Error 1 
 
!!! ERROR: The ebuild did not complete successfully. 
!!! Function src_compile, Line -11, Exitcode 2 
!!! Parallel Make Failed 
 
 
Still no go.. :o( 
Comment 7 Nick Hadaway 2002-10-07 08:52:53 UTC
rc3 has been working for me for a long while now on multiple systems.  In fact 
the via8233 driver (in this case for an Avance Logic ALC201A AC97 on-board 
sound card on a Gigabyte motherboard) will only work with RC3.  Bart, maybe 
try emerging it again?  the unmasking of _rc3 is long overdue.  :) 
Comment 8 Arcady Genkin (RETIRED) gentoo-dev 2002-10-08 10:40:49 UTC
I don't feel right about unmasking _rc3.  The alsa-driver package has many
compilation problems, some gcc 3 related, some not.  The same problems are not
present with _rc2.  I feel that we'll get hammered with bug reports if we unmask
_rc3.

alsa-lib and alsa-utils, OTOH, compile fine, even against alsa-driver _rc2, and
seem to work with it.  Not sure whether it is entirely kosher to unmaske the
-lib and -utils packages, but leave -driver at _rc2.  I'd rather not experiment. ;^)

Anyhow, the portage tree is in a freeze now, and it's probably the worst time to
unmask anything as important as alsa.
Comment 9 Arcady Genkin (RETIRED) gentoo-dev 2002-10-26 15:12:42 UTC
The rc5 ebuilds have been in the portage for a couple of days now.  Do they work
for everybody on the CC list of this bug? ;^)
Comment 10 Nick Hadaway 2002-10-26 16:49:16 UTC
the drivers only build for me if I specify the card that I am using... if I 
just let it install and compile all the drivers it stops on some usb audio 
stuff... this has happened on all machines I have tried this on so far.

Maybe want to put a comment about the via audio drivers... via686 and via8233 
are now via82xx
Comment 11 Arcady Genkin (RETIRED) gentoo-dev 2002-10-26 18:51:21 UTC
What version of gcc do you have?  The Alsa people have released an updated
tarball for rc5 of alsa-driver, that's supposed to fix some gcc 3.2 related
compile-time problem (see http://www.alsa-project.org).  Not e that they did
that without updating a revision number.  Make sure that you tarball's MD5
checksum is 

  8f570619fc4aa771cf536822824f7d82  alsa-driver-0.9.0rc5.tar.bz2
Comment 12 Arun Thomas (RETIRED) gentoo-dev 2002-10-26 23:04:53 UTC
I had some problems with compiling usb audio stuff too, but then I tried the new
version of rc5 and everything compiled fine.
Comment 13 Arcady Genkin (RETIRED) gentoo-dev 2002-10-30 09:55:25 UTC
Nick, could you please do the following:

1. rm /usr/portage/distfiles/alsa-driver-0.9.0rc5.tar.bz2
2. emerge rsync (to update the digest file if needed)
3. emerge alsa-driver

and tell me whether it still fails?  Like I said in my previous comment: perhaps
you downloaded an older tarball.
Comment 14 Nick Hadaway 2002-10-30 10:51:51 UTC
The new bz2ball appears to compile without a problem.  :)
Comment 15 Arcady Genkin (RETIRED) gentoo-dev 2002-11-24 22:34:17 UTC
Looks like this bug is no longer an issue.
Feel free to scream at me and reopen the bug.