GNOME Bugzilla – Bug 558638
Compiler error on v4l2
Last modified: 2009-01-23 08:43:19 UTC
Please describe the problem: When crosscompiling gst-plugins-good-0.10.11 with OpenEmbedded, compiling interrupts with libgstvideo4linux2 Steps to reproduce: 1. used bitbake package (correspponds to an ebuild file) from version 0.10.8 2. reversioned it to 0.10.11 3. ran bitbake gst-plugins-good Actual results: ccache mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I/dream/8k/build/tmp/work/gst-plugins-good-0.10.11-r0/gst-plugins-good-0.10.11/sys/v4l2 -I../.. -I/dream/8k/build/tmp/staging/mipsel-linux/include -pthread -I/dream/8k/build/tmp/staging/mipsel-linux/include/gstreamer-0.10 -I/dream/8k/build/tmp/staging/mipsel-linux/include/glib-2.0 -I/dream/8k/build/tmp/staging/mipsel-linux/lib/glib-2.0/include -I/dream/8k/build/tmp/staging/mipsel-linux/include/libxml2 -pthread -I/dream/8k/build/tmp/staging/mipsel-linux/include/gstreamer-0.10 -I/dream/8k/build/tmp/staging/mipsel-linux/include/glib-2.0 -I/dream/8k/build/tmp/staging/mipsel-linux/lib/glib-2.0/include -I/dream/8k/build/tmp/staging/mipsel-linux/include/libxml2 -I/dream/8k/build/tmp/work/gst-plugins-good-0.10.11-r0/gst-plugins-good-0.10.11/gst-libs -I../../gst-libs -pthread -I/dream/8k/build/tmp/staging/mipsel-linux/include/gstreamer-0.10 -I/dream/8k/build/tmp/staging/mipsel-linux/include/glib-2.0 -I/dream/8k/build/tmp/staging/mipsel-linux/lib/glib-2.0/include -I/dream/8k/build/tmp/staging/mipsel-linux/include/libxml2 -Wall -Wdeclaration-after-statement -g -I/dream/8k/build/tmp/staging/mipsel-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -MT libgstvideo4linux2_la-v4l2src_calls.lo -MD -MP -MF .deps/libgstvideo4linux2_la-v4l2src_calls.Tpo -c v4l2src_calls.c -fPIC -DPIC -o .libs/libgstvideo4linux2_la-v4l2src_calls.o v4l2src_calls.c: In function 'gst_v4l2src_format_get_rank': v4l2src_calls.c:478: error: 'V4L2_PIX_FMT_PWC1' undeclared (first use in this function) v4l2src_calls.c:478: error: (Each undeclared identifier is reported only once v4l2src_calls.c:478: error: for each function it appears in.) v4l2src_calls.c:480: error: 'V4L2_PIX_FMT_PWC2' undeclared (first use in this function) make[3]: *** [libgstvideo4linux2_la-v4l2src_calls.lo] Fehler 1 Expected results: no compiler error Does this happen every time? yes Other information:
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_format_get_rank): Guard more uncommon formats with ifdefs so that we can compile on older versions.