Bug#252651: linux-kernel-headers: syntax errors in file "/usr/include/linux/videodev2.h"
At Fri, 04 Jun 2004 17:00:57 +0200,
A.M.P. Boelens <arnie@vvier.xs4all.nl> wrote:
> When building kde 3.3 alpha1 with Konstruct I get the following error
> message about videodev2.h:
>
> make[7]: Entering directory
> `/home/test/konstruct/kde/kdeedu/work/kdeedu-3.2.90/kstars/kstars/indi/webcam'
> if /bin/sh ../../../../libtool --silent --mode=compile --tag=CXX g++
> -DHAVE_CONFIG_H -I. -I. -I../../../.. -DQT_THREAD_SUPPORT
> -I/home/test/kde3.3-alpha1/include -I/usr/X11R6/include
> -I/home/test/kde3.3-alpha1/include -I/usr/X11R6/include -D_REENTRANT
> -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
~~~~~
This is another -ansi things. I wonder why KDE guys want to use
-ansi because C99 is the new standard C these days.
> In file included from /usr/include/linux/videodev.h:8,
> from QCamV4L.h:7,
> from QCamV4L.cpp:14,
> from libwebcam_linux_la.all_cpp.cpp:4
> /usr/include/linux/videodev2.h:432: error: syntax error before `;' token
> /usr/include/linux/videodev2.h:500: error: 'v4l2_std_id' is used as a type, but
> is not defined as a type.
> /usr/include/linux/videodev2.h:518: error: syntax error before `;' token
> /usr/include/linux/videodev2.h:555: error: syntax error before `;' token
At least on i386, the following patch should fix this problem:
--- include/asm-i386/types.h 2004-06-06 05:22:54.000000000 +0900
+++ include/asm-i386/types.h 2004-06-06 05:22:56.000000000 +0900
@@ -19,9 +19,9 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
-typedef __signed__ long long __s64;
-typedef unsigned long long __u64;
+#if defined(__GNUC__)
+__extension__ typedef __signed__ long long __s64;
+__extension__ typedef unsigned long long __u64;
#endif
#endif /* __ASSEMBLY__ */
I may put this patch into lkh not only for i386 but also for other
archs. No objections?
Regards,
-- gotom
Reply to: