[Bug 793103] v4l2: compilation failure with mmap/mmap64 signature miss-match

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 7 18:43:37 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=793103

--- Comment #17 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
(In reply to Michael Tretter from comment #16)
> Thanks for pointing me here.
> 
> I'm using autotools to build the modules for i.MX6. config.log reports that
> off_t has 4 bytes. mmap64 is not declared. I simply cannot pass a 64 bit
> offset to mmap.
> 
> I would suggest to go the other way around: make the signature of mmap in
> v4l2object platform dependent and wrap the call to libv4l2. As far as I can
> tell only the allocator uses mmap and actually uses a __u32 for the offset.
> I don't understand, why we should use libv4l2 as definition how to use
> syscalls in GStreamer.

It's not related to GStreamer, the libv4l2 headers was copy pasted to make the
defines, that's all. We can flip it up using arch dependent in the dynamic
table, but I still need a decent wrapper to be implemented. Also, a proper
patch would pick the wrapper only when needed (no mmap64, off_t being 32bit). I
have no idea what you guys are doing/using, so someone have to provide that
patch. I've tried on various platform and arch, and could not reproduce.

-- 
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