<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1252"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote type="cite">
  <pre>Jerry Geis wrote:
><i> Hi all,
</i>><i> 
</i>><i> I need to compile alsa-project 1.0.16 on the latest centos 5.1 kernel.
</i>><i> I am getting this error. What to do... ?
</i>><i> 
</i>><i> CC
</i>><i> [M]  
</i>><i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/sound_oss.o
</i>><i>  CC
</i>><i> [M]  
</i>><i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o
</i>><i> In file included
</i>><i> from 
</i>><i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 
</i>><i> 
</i>><i> 
</i>><i> from 
</i>><i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 
</i>><i> 
</i>><i> include/linux/utsname.h:37:52: error: macro "init_utsname" passed 1
</i>><i> arguments, but takes just 0
</i>><i> In file included
</i>><i> from 
</i>><i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 
</i>><i> 
</i>><i> 
</i>><i> from 
</i>><i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 
</i>><i> 
</i>><i> include/linux/utsname.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
</i>><i> ‘__attribute__’ before ‘{’ token
</i>><i> make[3]: ***
</i>><i> [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o] 
</i>><i> Error 1
</i>><i> make[2]: ***
</i>><i> [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore] Error 2
</i>><i> make[1]: ***
</i>><i> [_module_/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16] Error
</i>><i> 2
</i>><i> make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.14.el5-x86_64'
</i>
Seems to build OK for me (2.6.18-53.1.14.el5-i386) ...

Did it build OK for previous 5.1 kernels?

Do you know where it is picking include/linux/utsname.h from? - it 
should be:

  /lib/modules/2.6.18-53.1.14.el5/build/include/linux/utsname.h

(which is really under /usr/src/kernels/2.6.18-53.1.14.el5-x86_64)

Where does the output of configure say about this?

James Pearson</pre>
</blockquote>
Jim,<br>
<br>
Yes it is getting it from
/lib/modules/2.6.18-53.1.14.el5/build/include/linux/utsname.h
<br>
<br>
I had to change the driver configure script :<br>
<br>
Original:<br>
<br>
if test "$kversion.$kpatchlevel" = "2.6" -a $ksublevel -ge 19; then<br>
  CONFIG_HAVE_INIT_UTSNAME=1<br>
<br>
My version:<br>
<br>
if test "$kversion.$kpatchlevel" = "2.6" -a $ksublevel -ge 18; then<br>
  CONFIG_HAVE_INIT_UTSNAME=1<br>
<br>
<br>
Jerry<br>
<br>
</body>
</html>