compile problem

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

 



Hi,

it isn't possible to compile the current v4l-tree with linux 2.6.22.2:

very-new-darkstar:/usr/src/v4l-dvb-test # make
make -C /usr/src/v4l-dvb-test/v4l
make[1]: Entering directory `/usr/src/v4l-dvb-test/v4l'
creating symbolic links...
make -C /lib/modules/2.6.22.2-test/build SUBDIRS=/usr/src/v4l-dvb-test/v4l  modules
make[2]: Entering directory `/usr/src/linux-2.6.22.2'
  CC [M]  /usr/src/v4l-dvb-test/v4l/c-qcam.o
In file included from /usr/src/v4l-dvb-test/v4l/../linux/include/media/v4l2-dev.h:18,
                 from /usr/src/v4l-dvb-test/v4l/../linux/include/media/v4l2-common.h:29,
                 from /usr/src/v4l-dvb-test/v4l/c-qcam.c:38:
include/linux/device.h:533:41: error: macro "device_create" requires 7 arguments, but only 5 given
In file included from /usr/src/v4l-dvb-test/v4l/../linux/include/media/v4l2-dev.h:18,
                 from /usr/src/v4l-dvb-test/v4l/../linux/include/media/v4l2-common.h:29,
                 from /usr/src/v4l-dvb-test/v4l/c-qcam.c:38:
include/linux/device.h:534: warning: 'format' attribute only applies to function types
make[3]: *** [/usr/src/v4l-dvb-test/v4l/c-qcam.o] Error 1
make[2]: *** [_module_/usr/src/v4l-dvb-test/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.22.2'
make[1]: *** [default] Fehler 2
make[1]: Leaving directory `/usr/src/v4l-dvb-test/v4l'
make: *** [all] Fehler 2
very-new-darkstar:/usr/src/v4l-dvb-test #

The attached patch does fix this problem.

- Hartmut

diff -r 96c5b8101ea3 v4l/compat.h
--- a/v4l/compat.h	Fri Aug 17 03:20:35 2007 -0300
+++ b/v4l/compat.h	Sat Aug 18 09:13:24 2007 +0200
@@ -284,7 +284,7 @@ static inline int vm_insert_page(struct 
 # define class_destroy(a) class_simple_destroy(a)
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
 # define class_device_create(a, b, c, d, e, f, g, h) class_device_create(a, c, d, e, f, g, h)
-#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
 # define device_create(a, b, c, d, e, f, g) class_device_create(a, NULL, c, b, d, e, f, g)
 # define device_destroy(a, b) class_device_destroy(a, b)
 #endif
_______________________________________________
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