Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4231 - alsa-utils error
Summary: alsa-utils error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-27 07:13 UTC by Seemant Kulleen (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (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 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-27 07:13:09 UTC
<Learna2> make[1]: Entering directory
`/var/tmp/portage/alsa-utils-0.9.0_rc2/work/alsa-utils-0.9.0rc2/alsactl'
<Learna2> gcc -DHAVE_CONFIG_H -I. -I. -I../include     -march=i686 -O3 -pipe -c
alsactl.c
<Learna2> alsactl.c: In function `get_control':
<Learna2> alsactl.c:259: `SND_CTL_ELEM_TYPE_INTEGER64' undeclared (first use in
this function)
<Learna2> alsactl.c:259: (Each undeclared identifier is reported only once
<Learna2> ion)
<Learna2> make[1]: *** [alsactl.o] Error 1
<Learna2> make[1]: Leaving directory
`/var/tmp/portage/alsa-utils-0.9.0_rc2/work/alsa-utils-0.9.0rc2/alsactl'
<Learna2> make: *** [all-recursive] Error 1
<Learna2> !!! ERROR: The ebuild did not complete successfully.
<Learna2> !!! Function src_compile, Line 6, Exitcode 2
<Learna2> !!! Parallel Make Failed
<Learna2> !!! emerge aborting on 
/usr/portage/media-sound/alsa-utils/alsa-utils-0.9.0_rc2.ebuild .
<Learna2> thats the last bit after the config section
<seemant> what version of alsa-driver and alsa-lib?
<Learna2> from emerge so lemmi check
<Learna2>  media-sound/alsa-utils
<Learna2>       Latest version Available: 0.9.0_rc2
<Learna2>       Latest version Installed: [ Not Installed ]
<Learna2> *  media-libs/alsa-lib
<Learna2>       Latest version Available: 0.9.0_rc2
<Learna2>       Latest version Installed: 0.9.0_rc2
<seemant> and alsa-driver?
<Learna2> *  media-sound/alsa-driver
<Learna2>       Latest version Available: 0.9.0_rc2
<Learna2>       Latest version Installed: 0.9.0_rc2
Comment 1 Nick Hadaway 2002-07-05 18:27:05 UTC
the entire alsa9 rc2 series compiles fine for me.
Comment 2 rob pearce (learna) 2002-07-05 18:36:08 UTC
 -- asked around in #gentoo, its not just me it dosent work for

note: alsactl worked flawlessly for me in mandrake.

try doing 

# alsactl store
 then

# alsactl restore
Comment 3 rob pearce (learna) 2002-07-05 19:14:01 UTC
bash-2.05a# alsactl store
alsactl: save_state:1045: No soundcards found...
bash-2.05a# 

im like playing music on alsa as i type this so.....

once i got it to store, but the restore gave a seg fault.
Comment 4 Nick Hadaway 2002-07-05 19:33:14 UTC
can you give me any sort of debuging information other than it gives a segfault?
I've done alsactl store | alsactl restore a bunch of times without problems

any details around the error will help
Comment 5 rob pearce (learna) 2002-07-05 19:42:53 UTC
yup i will, but ill do it tommorow (if i remember) -- its 1:43am here.
Comment 6 rob pearce (learna) 2002-07-06 07:45:58 UTC
built alsa from tar.bz, alsa / alsactl works now.

problem fixed / avoided i guess.
Comment 7 Nick Hadaway 2002-07-09 18:03:49 UTC
Anybody else still having problems with compiling alsa-utils?  or using the
alsactl script?  If so, please post me a description and any details about the
problem you have.
Comment 8 rob pearce (learna) 2002-07-09 18:11:39 UTC
well, its not the packages fault i guess, but the tar.gz was working untill i 
reset the pc (the emerge never did work), but now doing:

alsactl store   (or restore) gives:
"alsactl: save_state:1045: No soundcards found..."

might be an faq, but i dunno. i had it working until i reset, DAMN ! :-)
Comment 9 Nick Hadaway 2002-07-10 15:37:51 UTC
Here's my experience.

In order for the alsactl script to work correctly, you need to make sure to have
your modules.conf setup correctly.  In the case of Gentoo.. 

become root
edit /etc/modules.d/alsa for your soundcard.
run "update-modules"

Make sure that you are not manually loading the sound drivers (remove alsa
related entries from /etc/modules.autoload).  They should automatically be
loaded by the /etc/init.d/alsasound initscript... 
If the alsasound script isn't running when the computer boots... do this

"rc-update add alsasound default"

Now your sound drivers should load properly upon the computer booting.

I have experienced strange problems with the alsactl script if I didn't set up
my sound drivers like this.

One other question is... what kind of sound card do you have?  If it is an
onboard sound card, what motherboard is it on... these will be important things
to know as there are some drivers in alsa that do not unload correctly which
would possibly make the alsactl script crash.  Give me details. :)
Comment 10 rob pearce (learna) 2002-07-10 16:04:37 UTC
ok ill try that in a mo. 

also, its a soundblaster 128,  

es1370
Comment 11 Arcady Genkin (RETIRED) gentoo-dev 2002-07-10 18:26:04 UTC
A slight but important correction: alsasound startup script should be added to
'boot' runlevel, and not 'default'.
Comment 12 Arcady Genkin (RETIRED) gentoo-dev 2002-07-10 18:29:51 UTC
Another remark: you *might* need to use ens1371 module.  See ALSA's
compatibility table

  http://www.alsa-project.org/~goemon/
Comment 13 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-12 12:43:48 UTC
learna, what's news on this?
Comment 14 rob pearce (learna) 2002-07-12 18:21:52 UTC
i got it working, but i used the tar.gz od all packages.

im using 1370 module, and im too scared to try messing with it now. :-)

"if it aint fu**ed, dont break it" applys here
Comment 15 Yannick Koehler (RETIRED) gentoo-dev 2002-08-05 09:18:06 UTC
I actually have the same issue... Bunch of SND_ defines seems missing.
Comment 16 Yannick Koehler (RETIRED) gentoo-dev 2002-08-06 09:02:22 UTC
I don't know what created this but what I found was that the
/usr/include/alsa/control.h was not the one from the alsa-lib-0.9.0_rc2 package.
 So I re-emerged alsa-lib then alsa-utils and it worked.

Before I did the re-emerge thought I did validate that alsa-lib-0.9.0_rc2 was
installed.  I just can't explain why the control.h wasn't the correct one.