After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 137190 - compilation problem with "linux/cdrom.h" header in 2.6.4
compilation problem with "linux/cdrom.h" header in 2.6.4
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.7.6
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-14 21:05 UTC by Didier LINK
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Didier LINK 2004-03-14 21:05:39 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
Comment 1 David Schleef 2004-03-17 23:23:31 UTC
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?
Comment 2 Didier LINK 2004-03-18 19:37:07 UTC
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
Comment 3 David Schleef 2004-03-18 20:02:36 UTC
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.