Re: Another compiling issue em28xx-audio.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Samstag, 19. Januar 2008 schrieb ewomer@xxxxxxxxxxx:
> im running ubuntu hardy 8.04 with the 2.6.24-4-generic linux kernel based
> of of the 2.6.24-rc6 linux kerneli get this error running make in the
> v4l-dvb folder
>
> make -C /home/eric/build/mercurial/v4l-dvb/v4l
> make[1]: Entering directory `/home/eric/build/mercurial/v4l-dvb/v4l'
> creating symbolic links...
> Kernel build directory is /lib/modules/2.6.24-4-generic/build
> make -C /lib/modules/2.6.24-4-generic/build
> SUBDIRS=/home/eric/build/mercurial/v4l-dvb/v4l  modules make[2]: Entering
> directory `/usr/src/linux-headers-2.6.24-4-generic' CC [M] 
> /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.o
> In file included from
> /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.c:39:
> include/sound/core.h:281: error: 'SNDRV_CARDS' undeclared here (not in a
> function) /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.c:58:
> error: array index in initializer not of integer type
> /home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.c:58: error: (near
> initialization for 'index') make[3]: ***
> [/home/eric/build/mercurial/v4l-dvb/v4l/em28xx-audio.o] Error 1 make[2]:
> *** [_module_/home/eric/build/mercurial/v4l-dvb/v4l] Error 2 make[2]:
> Leaving directory `/usr/src/linux-headers-2.6.24-4-generic' make[1]: ***
> [default] Error 2
> make[1]: Leaving directory `/home/eric/build/mercurial/v4l-dvb/v4l'
> make: *** [all] Error 2
>
> is it another issue like the radio-si470x.c not compiling

I'm not sure, if it's the right fix, but this patch fixed it for me:

--- em28xx-audio.c~	2008-01-19 00:14:24.000000000 +0100
+++ em28xx-audio.c	2008-01-19 00:33:26.891186900 +0100
@@ -36,6 +36,7 @@
 #include <linux/proc_fs.h>
 #include <linux/module.h>
 #include "compat.h"
+#include <sound/driver.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>


Hth,
Pete

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux