Re: [Alsa-user] oss won't compile

2007-12-21 Thread Takashi Iwai
At Fri, 21 Dec 2007 00:04:59 -0500,
Lee Revell wrote:
 
 On Dec 20, 2007 9:31 PM, Bill Unruh [EMAIL PROTECTED] wrote:
  On Fri, 21 Dec 2007, Ismael Farfán Estrada wrote:
   In file included from
 /tmp/alsa-driver-1.0.15/acore/../alsa-kernel/core/info_oss.c:30,
   from /tmp/alsa-driver-1.0.15/acore/info_oss.c:6:
   include/linux/utsname.h:37:52: error: macro init_utsname passed 1 
   arguments, but takes just 0   ---
 
  It looks to me like your alsa is incompatible with your kernel.
  I vaguely recall that alsa 1.0.15 was for kernel greater than  2.6.18 but I
  could be wrong.
 
 ALSA build process is supposed to be backwards compatible with old
 kernels - at least back to 2.4 (maybe 2.2).

For the older kernel, init_utsname() is defined for compatibility (see
alsa-driver/acore/info_oss.c).  Maybe that's the problem.  RH likely
defines an incompatible version of init_utsname() and it conflicts.

 Most likely the problem is that he's running a vendor patched kernel.
 Which is also supposed to work last time I checked - at least for Red
 Hat and SuSE kernels.
 
 Takashi-san, has 1.0.15 been tested against the CentOS 5/RHEL5 kernel?

Maybe not.  I haven't checked RH kernels.


Takashi

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] oss won't compile

2007-12-21 Thread Ismael Farfán Estrada

 For the older kernel, init_utsname() is defined for compatibility (see
 alsa-driver/acore/info_oss.c).  Maybe that's the problem.  RH likely
 defines an incompatible version of init_utsname() and it conflicts.

ok, I edited  acore/info_oss.c  and changed 
#if LINUX_VERSION_CODE  KERNEL_VERSION(2, 6, 19)
  to
#if LINUX_VERSION_CODE  KERNEL_VERSION(2, 6, 17)

and I compiled correctly, I only hope it doesn't brake

By the way, Do I have to re-compile all the other packages?
lib, oss, utils

tanks


 Most likely the problem is that he's running a vendor patched kernel.
 Which is also supposed to work last time I checked - at least for Red
 Hat and SuSE kernels.
 
 Takashi-san, has 1.0.15 been tested against the CentOS 5/RHEL5 kernel?
 
 Maybe not.  I haven't checked RH kernels.
 
 
 Takashi


rb3m dijo:
Un buen programador no es uno que se sepa un lenguaje al derecho y al revés, 
sino el que sabe resolver un problema y después implementar la solución en el 
lenguaje más adecuado.

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] oss won't compile

2007-12-20 Thread Bill Unruh

On Fri, 21 Dec 2007, Ismael Farfán Estrada wrote:



Hi there
I was wondering wheter you could help me compilig the driver with
oss support, I get this error trying to compile it

make -C /lib/modules/2.6.18-53.1.4.el5/source SUBDIRS=/tmp/alsa-driver-1.0.15 
O=/lib/modules/2.6.18-53.1.4.el5/build CPP=gcc -E CC=gcc modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-53.1.4.el5-x86_64'
 CC [M]  /tmp/alsa-driver-1.0.15/acore/info_oss.o
In file included from 
/tmp/alsa-driver-1.0.15/acore/../alsa-kernel/core/info_oss.c:30,
from /tmp/alsa-driver-1.0.15/acore/info_oss.c:6:
include/linux/utsname.h:37:52: error: macro init_utsname passed 1 arguments, but 
takes just 0   ---


It looks to me like your alsa is incompatible with your kernel. 
I vaguely recall that alsa 1.0.15 was for kernel greater than  2.6.18 but I

could be wrong.





In file included from 
/tmp/alsa-driver-1.0.15/acore/../alsa-kernel/core/info_oss.c:30,
from /tmp/alsa-driver-1.0.15/acore/info_oss.c:6:
include/linux/utsname.h:38: error: expected ?=?, ?,?, ?;?, ?asm? or 
?__attribute__? before ?{? token
make[4]: *** [/tmp/alsa-driver-1.0.15/acore/info_oss.o] Error 1
make[3]: *** [/tmp/alsa-driver-1.0.15/acore] Error 2
make[2]: *** [_module_/tmp/alsa-driver-1.0.15] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.4.el5-x86_64'
make: *** [compile] Error 2



I'm using Centos 5, kernel 2.6.18-53.1.4.el5
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user



--
William G. Unruh   |  Canadian Institute for| Tel: +1(604)822-3273
PhysicsAstronomy  | Advanced Research  | Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology | [EMAIL PROTECTED]
Canada V6T 1Z1 |  and Gravity   |  www.theory.physics.ubc.ca/-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] oss won't compile

2007-12-20 Thread Lee Revell
On Dec 20, 2007 9:31 PM, Bill Unruh [EMAIL PROTECTED] wrote:
 On Fri, 21 Dec 2007, Ismael Farfán Estrada wrote:
  In file included from
/tmp/alsa-driver-1.0.15/acore/../alsa-kernel/core/info_oss.c:30,
  from /tmp/alsa-driver-1.0.15/acore/info_oss.c:6:
  include/linux/utsname.h:37:52: error: macro init_utsname passed 1 
  arguments, but takes just 0   ---

 It looks to me like your alsa is incompatible with your kernel.
 I vaguely recall that alsa 1.0.15 was for kernel greater than  2.6.18 but I
 could be wrong.

ALSA build process is supposed to be backwards compatible with old
kernels - at least back to 2.4 (maybe 2.2).

Most likely the problem is that he's running a vendor patched kernel.
Which is also supposed to work last time I checked - at least for Red
Hat and SuSE kernels.

Takashi-san, has 1.0.15 been tested against the CentOS 5/RHEL5 kernel?

Lee

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user