All of lore.kernel.org
 help / color / mirror / Atom feed
* Compile errors with latest alsa releases
@ 2004-02-20 16:15 snookertb
  2004-02-23 17:49 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: snookertb @ 2004-02-20 16:15 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compile errors with latest alsa releases
  2004-02-20 16:15 Compile errors with latest alsa releases snookertb
@ 2004-02-23 17:49 ` Clemens Ladisch
  2004-02-23 18:59   ` snookertb
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2004-02-23 17:49 UTC (permalink / raw)
  To: snookertb; +Cc: alsa-devel

snookertb wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compile errors with latest alsa releases
  2004-02-23 17:49 ` Clemens Ladisch
@ 2004-02-23 18:59   ` snookertb
  2004-02-24 17:59     ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: snookertb @ 2004-02-23 18:59 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

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

Clemens Ladisch wrote:
> snookertb wrote:
> 
>>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.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compile errors with latest alsa releases
  2004-02-23 18:59   ` snookertb
@ 2004-02-24 17:59     ` Clemens Ladisch
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2004-02-24 17:59 UTC (permalink / raw)
  To: snookertb; +Cc: alsa-devel

snookertb wrote:
> 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.

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-24 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-20 16:15 Compile errors with latest alsa releases snookertb
2004-02-23 17:49 ` Clemens Ladisch
2004-02-23 18:59   ` snookertb
2004-02-24 17:59     ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.