Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3109 - Error when emerge x11-misc/wmmixer-alsa-0.6
Summary: Error when emerge x11-misc/wmmixer-alsa-0.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Seemant Kulleen (RETIRED)
URL: http://forums.gentoo.org/posting.php?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-28 07:39 UTC by Jens Schittenhelm
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 Jens Schittenhelm 2002-05-28 07:39:18 UTC
Me and other people have encountered this error when emerging wmmixer-alsa:

/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use
<alsa/asoundlib.h> instead.
In file included from wmmixer-alsa.h:20,
from wmmixer-alsa.c:1:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use
<alsa/asoundlib.h> instead.
.....
...
...
wmmixer-alsa.c: In function `update':
wmmixer-alsa.c:494: request for member `icon' in something not a structure or union
make: *** [wmmixer-alsa.o] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 2
!!! (no error message)

!!! emerge aborting on /usr/portage/x11-misc/wmmixer-alsa/wmmixer-alsa-0.6.ebuild
Comment 1 SpanKY gentoo-dev 2002-05-29 18:36:06 UTC
the reason for this bug is that the mixer works with the old asoundlib.h.  the 
new library changed some of the naming conventions and thus broke this 
program.  some structs have changed from 'snd_mixer_element_t' to 
'snd_mixer_elem_t' ... hence the problem with missing struct definitions.  
that first warning isnt sooooo bad, its just that the source needs to be 
recoded slightly. 
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-29 22:22:29 UTC
spanky, 

any chance you can come up with a patch? It would really help a lot
Comment 3 SpanKY gentoo-dev 2002-05-30 00:46:08 UTC
ill see what i can do ... if anyone out there submits one before me, ill test 
theirs out 
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-29 00:59:03 UTC
spankster?
Comment 5 SpanKY gentoo-dev 2002-06-30 00:45:07 UTC
heh, after playing with this damn program, i suggest you modify the ebuild to 
depend on the old asoundlib rather than the new one.

the reason this is a pain to recode is that ive never done audio/sound coding, 
but its more of recoding the whole app rather than slight renaming of the 
structs like i thought originally ...

biggest prob:
the new alsa deals with elements diff than the old one.  with the old alsa, 
structs were provided for groups of elements.  thus you could walk through the 
elements as an array of sorts.  the new alsa lib takes an iterative 
approach ... you dont know the underlying structure, but toolkit functions are 
provided ...

so its up to you (im bailing on it), sorry for takin so long ;)
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-03 19:56:23 UTC
ok, it now depends specifically on alsa-0.5