[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    [CentOS] Re: alsa 1.016 compile error on latest kernel centos 5.1
From:       Jerry Geis <geisj () pagestation ! com>
Date:       2008-03-31 15:52:56
Message-ID: 47F108D8.2080002 () pagestation ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>
> Jerry Geis wrote:
> >/ Hi all,
> />/ 
> />/ I need to compile alsa-project 1.0.16 on the latest centos 5.1 kernel.
> />/ I am getting this error. What to do... ?
> />/ 
> />/ CC
> />/ [M]  
> />/ /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/sound_oss.o
> />/  CC
> />/ [M]  
> />/ /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o
> />/ In file included
> />/ from 
> />/ /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 
> />/ 
> />/ 
> />/ from 
> />/ /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 
> />/ 
> />/ include/linux/utsname.h:37:52: error: macro "init_utsname" passed 1
> />/ arguments, but takes just 0
> />/ In file included
> />/ from 
> />/ /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 
> />/ 
> />/ 
> />/ from 
> />/ /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 
> />/ 
> />/ include/linux/utsname.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> />/ ‘__attribute__’ before ‘{’ token
> />/ make[3]: ***
> />/ [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o] 
> />/ Error 1
> />/ make[2]: ***
> />/ [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore] Error 2
> />/ make[1]: ***
> />/ [_module_/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16] Error
> />/ 2
> />/ make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.14.el5-x86_64'
> /
> 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
Jim,

Yes it is getting it from 
/lib/modules/2.6.18-53.1.14.el5/build/include/linux/utsname.h

I had to change the driver configure script :

Original:

if test "$kversion.$kpatchlevel" = "2.6" -a $ksublevel -ge 19; then
  CONFIG_HAVE_INIT_UTSNAME=1

My version:

if test "$kversion.$kpatchlevel" = "2.6" -a $ksublevel -ge 18; then
  CONFIG_HAVE_INIT_UTSNAME=1


Jerry


[Attachment #5 (text/html)]

<!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:
&gt;<i> Hi all,
</i>&gt;<i> 
</i>&gt;<i> I need to compile alsa-project 1.0.16 on the latest centos 5.1 kernel.
</i>&gt;<i> I am getting this error. What to do... ?
</i>&gt;<i> 
</i>&gt;<i> CC
</i>&gt;<i> [M]  
</i>&gt;<i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/sound_oss.o
 </i>&gt;<i>  CC
</i>&gt;<i> [M]  
</i>&gt;<i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o
</i>&gt;<i> In file included
</i>&gt;<i> from 
</i>&gt;<i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, \
 </i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> from 
</i>&gt;<i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: \
 </i>&gt;<i> 
</i>&gt;<i> include/linux/utsname.h:37:52: error: macro "init_utsname" passed 1
</i>&gt;<i> arguments, but takes just 0
</i>&gt;<i> In file included
</i>&gt;<i> from 
</i>&gt;<i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, \
 </i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> from 
</i>&gt;<i> /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: \
 </i>&gt;<i> 
</i>&gt;<i> include/linux/utsname.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
</i>&gt;<i> ‘__attribute__’ before ‘{’ token
</i>&gt;<i> make[3]: ***
</i>&gt;<i> [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o] \
 </i>&gt;<i> Error 1
</i>&gt;<i> make[2]: ***
</i>&gt;<i> [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore] Error 2
</i>&gt;<i> make[1]: ***
</i>&gt;<i> [_module_/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16] Error
</i>&gt;<i> 2
</i>&gt;<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>



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic