GNOME Bugzilla – Bug 541081
[v4l2src] Doesn't compile with on old kernel
Last modified: 2008-07-08 08:24:46 UTC
Please describe the problem: as i wrote in http://bugzilla.gnome.org/show_bug.cgi?id=536317 these changes is not working in older kernel eg. rhel/centos 5.x Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
What exactly is the compiler output when compiling on older kernels? V4L2_CID_TILT_RESET and the other one is only used if available.
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../gst-libs -I../../gst-libs -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -MT libgstvideo4linux2_la-gstv4l2vidorient.lo -MD -MP -MF .deps/libgstvideo4linux2_la-gstv4l2vidorient.Tpo -c gstv4l2vidorient.c -o libgstvideo4linux2_la-gstv4l2vidorient.o >/dev/null 2>&1 v4l2_calls.c: In function 'gst_v4l2_fill_lists': v4l2_calls.c:278: error: 'V4L2_CID_PAN_RESET' undeclared (first use in this function) v4l2_calls.c:278: error: (Each undeclared identifier is reported only once v4l2_calls.c:278: error: for each function it appears in.) v4l2_calls.c:279: error: 'V4L2_CID_TILT_RESET' undeclared (first use in this function) make[3]: *** [libgstvideo4linux2_la-v4l2_calls.lo] Error 1 make[3]: *** Waiting for unfinished jobs....
Is this with latest CVS? The code currently is the following and can't fail this way [...] case V4L2_CID_VCENTER: #ifdef V4L2_CID_PAN_RESET case V4L2_CID_PAN_RESET: #endif #ifdef V4L2_CID_TILT_RESET case V4L2_CID_TILT_RESET: #endif [...]
now it's high time for a new release.
Ok, so it's fixed in CVS... good. A new release of gst-plugins-good should be there in the next weeks I guess.