[gst-devel] gst-plugins not compiling with Linux 2.6.0

wrobell wrobell at ite.pl
Tue Feb 10 12:52:29 CET 2004


On Fri, Dec 19, 2003 at 04:10:08PM +0000, Gustavo J. A. M. Carneiro wrote:
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DARCH_X86=1 -DHAVE_MMX=1
> -DTUNECPU=generic -DHAVE_STRPTIME=1 -DHAVE_LRINTF=1 -DCONFIG_ENCODERS=1
> -DCONFIG_DECODERS=1 -DCONFIG_PP=1 -DCONFIG_MPEGAUDIO_HP=1
> -DCONFIG_HAVE_DLOPEN=1 -DCONFIG_HAVE_DLFCN=1 -DHAVE_MALLOC_H=1
> -DHAVE_MEMALIGN=1 -DSIMPLE_IDCT=1 -DCONFIG_RISKY=1 -Wall -I. -I./ffmpeg
> -I./ffmpeg/libavformat -I./ffmpeg/libavcodec
> -I../../../gst-libs/ext/linux/ -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_GNU_SOURCE -g -O2 -march=pentium4 -MT
> libavformat_la-grab.lo -MD -MP -MF .deps/libavformat_la-grab.Tpo -c
> ffmpeg/libavformat/grab.c  -fPIC -DPIC -o .libs/libavformat_la-grab.o
> In file included from /usr/include/linux/device.h:15,
>                  from /usr/include/linux/videodev.h:6,
>                  from ffmpeg/libavformat/grab.c:26:
> /usr/include/linux/ioport.h:118: syntax error before "__attribute__"
> In file included from /usr/include/linux/device.h:17,
>                  from /usr/include/linux/videodev.h:6,
>                  from ffmpeg/libavformat/grab.c:26:
> /usr/include/linux/list.h:588:2: warning: #warning "don't include kernel
> headers in userspace"
> 	(...etc..)
> 
> 	This is with linux 2.6.0 and gcc 3.2.3.  Is this a known problem?

The problem is, as I know, that linux kernel headers are not guaranteed
to be usable with user space programs any more.

You can try headers from

    http://www.kernel.pl/~mmazur/glibc-kernel-headers

The headers are created with support for x86, sparc, ppc, alpha
and am64 in mind (but they are not widely tested yet).

RPM packages should be on ftp://ftp.pld-linux.org

    wrobell <wrobell at ite.pl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20040210/362a2cc6/attachment.pgp>


More information about the gstreamer-devel mailing list