[alsa-devel] 1.0.16rc1 release -- error: ‘system_utsname’ undeclared

Takashi Iwai tiwai at suse.de
Wed Jan 23 08:31:32 CET 2008


At Wed, 23 Jan 2008 08:03:05 +0100,
I wrote:
> 
> At Wed, 23 Jan 2008 06:25:54 +1100,
> Rick Measham wrote:
> > 
> > [1  <multipart/signed (7bit)>]
> > [1.1  <text/plain; UTF-8 (quoted-printable)>]
> > Jaroslav Kysela wrote:
> > > 	1.0.16rc1 release is available for download on 
> > 
> > Running Kubuntu:
> > 
> > # uname -a
> > Linux lugtop 2.6.20-16-386 #2 Sun Sep 23 19:47:10 UTC 2007 i686 GNU/Linux
> > 
> > 
> > During the make:
> > 
> > In file included from 
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.c:7:
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c: 
> > In function ‘snd_sndstat_proc_read’:
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> > error: ‘system_utsname’ undeclared (first use in this function)
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> > error: (Each undeclared identifier is reported only once
> > /usr/src/alsa/alsa-driver-1.0.16rc1/acore/../alsa-kernel/core/info_oss.c:96: 
> > error: for each function it appears in.)
> > make[3]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore/info_oss.o] Error 1
> > make[2]: *** [/usr/src/alsa/alsa-driver-1.0.16rc1/acore] Error 2
> > make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.16rc1] Error 2
> > make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-386'
> > make: *** [compile] Error 2
> 
> Isn't it fixed on HG version?

Nevermind, I myself can confirm that it's broken.
The patch below should fix the problem.


Takashi

diff -r a5f603cb254a configure.in
--- a/configure.in	Tue Jan 22 17:52:34 2008 +0100
+++ b/configure.in	Wed Jan 23 08:28:56 2008 +0100
@@ -2571,7 +2571,7 @@ init_utsname="0"
 init_utsname="0"
 ac_save_CFLAGS="$CFLAGS"
 ac_save_CC="$CC"
-CFLAGS="$KERNEL_CHECK_CFLAGS -Werror"
+CFLAGS="$KERNEL_CHECK_CFLAGS -Werror=implicit-function-declaration"
 CC=$KCC
 AC_TRY_COMPILE([
 #define __KERNEL__


More information about the Alsa-devel mailing list