[gstreamer-bugs] [Bug 597867] Plugins good do not build on Ubuntu Hardy (kernel 2.6.24)

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Oct 9 02:24:25 PDT 2009


https://bugzilla.gnome.org/show_bug.cgi?id=597867
  GStreamer | gst-plugins-good | 0.10.16

Pau Garcia i Quiles <pgquiles> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NOTGNOME                    |

--- Comment #3 from Pau Garcia i Quiles <pgquiles at elpauer.org> 2009-10-09 09:24:18 UTC ---
> Actually this looks more like a problem with your headers... _IOWR and _IOW are
> not used anywhere in the v4l2 plugin sources.
> The first line that fails because _IOWR is not found is:
>>    if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_ENUM_FMT, format) < 0) {

There is no problem with my headers. _IOWR and _IOW are used in the v4l2 plugin
because the v4l2 plugin includes videodev2.h. VIDIOC_ENUM_FMT is defined in
videodev2.h as:

/usr/include/linux/videodev2.h:#define VIDIOC_ENUM_FMT         _IOWR ('V',  2,
struct v4l2_fmtdesc)

And no, sys/ioctl.h is not already included via v4l2_calls.h, and my patch
should be a proof of that: unless I explictly #include <sys/ioctl.h>,
compilation fails. This is probably due to wrong detection of libv4l2:

#ifdef HAVE_LIBV4L2
#  include <libv4l2.h>
#else
#  include <sys/ioctl.h>
#  include <linux/videodev.h>
#  include <linux/videodev2.h>
#  define v4l2_fd_open(fd, flags) (fd)
#  define v4l2_close    close
#  define v4l2_dup      dup
#  define v4l2_ioctl    ioctl
#  define v4l2_read     read
#  define v4l2_mmap     mmap
#  define v4l2_munmap   munmap
#endif

You can easily check this by installing Ubuntu Hardy, then updating the
GStreamer stuff from my PPA ( http://launchpad.net/~pgquiles/+archive/ppa ).
The plugins good package there already includes the patch. That patch is not
needed in Ubuntu Jaunty, so there is some kind of trouble with old kernels.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list