GNOME Bugzilla – Bug 137190
compilation problem with "linux/cdrom.h" header in 2.6.4
Last modified: 2004-12-22 21:47:04 UTC
I've download the latest GStreamer and gst-plugins (0.7.6) and try to compile it with the latest stable (2.6.4) kernel and I can't because of this errors : gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DGST_DISABLE_DEPRECATED -Wall -Wno-sign-compare -g -O2 -MT libgstvcdsrc_la-vcdsrc.lo -MD -MP -MF .deps/libgstvcdsrc_la-vcdsrc.Tpo -c vcdsrc.c -fPIC -DPIC -o .libs/libgstvcdsrc_la-vcdsrc.o In file included from /usr/include/linux/cdrom.h:14, from vcdsrc.c:35: /usr/include/asm/byteorder.h:14: error: syntax error before "__u32" /usr/include/asm/byteorder.h:28: error: syntax error before "__u64" In file included from /usr/include/linux/byteorder/little_endian.h:11, from /usr/include/asm/byteorder.h:57, from /usr/include/linux/cdrom.h:14, from vcdsrc.c:35: /usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16" /usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32" /usr/include/linux/byteorder/swab.h:160: error: syntax error before "__u64" make[1]: *** [libgstvcdsrc_la-vcdsrc.lo] Erreur 1 make[1]: Leaving directory `/usr/local/src/g/gst-plugins-0.7.6/sys/vcd' make: *** [all-recursive] Erreur 1 make: Leaving directory `/usr/local/src/g/gst-plugins-0.7.6/sys' I've searching in the sources (sys/vcd/vcdsrc.[ch]) and not found the problem (just a duplication of inclusion of the <linux/cdrom.h> header in this source files). I use gcc-3.3.1, make 3.80 ... Any idea ?? Thank's for atention Didier LINK
Define "with the latest kernel". /usr/include/linux and /usr/include/asm have nothing to do with the kernel you are running. What distro are you running?
So, I'm not really a novice in Linux, I've made a LFS ;))))) I use Linux kernel 2.6.4 and the headers in /usr/include are the headers of the 2.6.4 regards. Didier Link
In that case, you should know that the headers from the kernel are not useful as user-space header files, and are never supposed to be copied verbatim to /usr/include. We don't support this, because it's just not possible.