Skip to contentSkip to conversation

Compile errors with latest alsa releases

DISCUSSION snookertb 2 participants 4 messages Feb 20, 2004 – Feb 24, 2004

lore
Share & tools
lore

snookertb

author
#0 lore raw

I am attempting to update the Sun JDS distro from alsa version 0.9.0 to a later version which supports newer Intel sound chips. I get the following errors in these two compiles. I ran versions 0.9.8 and 1.0.2c and they produced the same errors.

alsa-driver-1.0.2c compile error

Error in both cases error is triggered because of the kernel version of SJDS is 2.4.19-4GB. Is this alsa driver not supposed to be used with older kernels?

In file included from /home/tarpon/downloads/alsa-driver-1.0.2c/include/sound/driver.h:42,
from usbaudio.inc:6,
from usbaudio.c:1:
/home/tarpon/downloads/alsa-driver-1.0.2c/include/adriver.h:295: redefinition of usb_make_path' /lib/modules/2.4.19-4GB/build/include/linux/usb.h:931: usb_make_path' previously defined here make[1]: *** [usbaudio.o] Error 1
make[1]: Leaving directory `/home/tarpon/downloads/alsa-driver-1.0.2c/usb'
make: *** [compile] Error 1

alsa-driver-0.9.8 compile error

In file included from /home/tarpon/downloads/alsa-driver-0.9.8/include/sound/driver.h:42,
from usbaudio.inc:2,
from usbaudio.c:1:
/home/tarpon/downloads/alsa-driver-0.9.8/include/adriver.h:296: redefinition of usb_make_path' /lib/modules/2.4.19-4GB/build/include/linux/usb.h:931: usb_make_path' previously defined here make[1]: *** [usbaudio.o] Error 1
make[1]: Leaving directory `/home/tarpon/downloads/alsa-driver-0.9.8/usb'
make: *** [compile] Error 1

----------------------------------------------------------

alsa-utils-1.0.2c compile error

Both versions error on undeclared identifier SND_CTL_READONLY

alsactl.c: In function `get_controls':
alsactl.c:483: `SND_CTL_READONLY' undeclared (first use in this function) alsactl.c:483: (Each undeclared identifier is reported only once alsactl.c:483: for each function it appears in.)
make[1]: *** [alsactl.o] Error 1
make[1]: Leaving directory `/home/tarpon/downloads/alsa-utils-1.0.2/alsactl'
make: *** [all-recursive] Error 1

alsa-utils -0.9.8 compile error

alsactl.c: In function `get_controls':
alsactl.c:483: `SND_CTL_READONLY' undeclared (first use in this function) alsactl.c:483: (Each undeclared identifier is reported only once alsactl.c:483: for each function it appears in.)
make[1]: *** [alsactl.o] Error 1
make[1]: Leaving directory `/home/tarpon/downloads/alsa-utils-0.9.8/alsactl'
make: *** [all-recursive] Error 1

Any help or guidance would be appreciated. If this is not the right place to post this, please advise and point me to where to go for help.

tb

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#1 lore raw
Quoted 6 lines · snookertb

I am attempting to update the Sun JDS distro from alsa version 0.9.0 to a later version which supports newer Intel sound chips. I get the following errors in these two compiles.

/home/tarpon/downloads/alsa-driver-1.0.2c/include/adriver.h:295:
redefinition of `usb_make_path'

This is a function which doesn't exist in older 2.4 kernels, so ALSA defines its own version. It seems Sun backported some USB stuff from a newer kernel.

Try to uncomment this function in adriver.h.

HTH
Clemens

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

author
#2 lore raw

Thanks for responding. I had just about given up ...

Quoted 10 lines · Clemens Ladisch
Quoted 6 lines · snookertb

I am attempting to update the Sun JDS distro from alsa version 0.9.0 to a later version which supports newer Intel sound chips. I get the following errors in these two compiles.

/home/tarpon/downloads/alsa-driver-1.0.2c/include/adriver.h:295:
redefinition of `usb_make_path'

Quoted 5 lines

This is a function which doesn't exist in older 2.4 kernels, so ALSA defines its own version. It seems Sun backported some USB stuff from a newer kernel.

Try to uncomment this function in adriver.h.

I commented out the function definition of usb_make_path() in the alsa-driver-xxx adriver.h file and now it compiles without errors. Since usb_make_path() is wrapped in a kernel version it probably is true that Sun back ported some of the usb functionality.

SND_CTL_READONLY does not appear to be declared anywhere. I assume that this is also a function of new kernels, or Sun's implementation, and if I added the declaration to the alsa-utils-xxx somewhere it would be proper. Where should the declaration go? Any idea how to get the proper values?

Are you part of the alsa development team?

tb

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#3 lore raw
Quoted 1 line · snookertb

SND_CTL_READONLY does not appear to be declared anywhere.

It's defined in alsa-lib/include/control.h. You have to install the alsa-lib package before compiling alsa-utils and alsa-tools.

Quoted 1 line

Are you part of the alsa development team?

SourceForge says no, the bugtracker says yes. :-)

Regards,
Clemens

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click