[Bug 793103] v4l2: compilation failure with mmap/mmap64 signature miss-match
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Mar 26 04:36:34 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=793103
--- Comment #38 from haihao.xiang at intel.com ---
Both <sys/types.h> and <sys/mman.h> define off_t in the same way on Ubuntu
17.10
#ifndef __off_t_defined
# ifndef __USE_FILE_OFFSET64
typedef __off_t off_t;
# else
typedef __off64_t off_t;
# endif
# define __off_t_defined
#endif
The preprocessor output shows off_t is not defined when off_t is used in the
first place, I may attach the preprocessor output if you need it.
The issue still exists even if I reinstalled libc6-dev.
The error in comment #36 disappears if I included <sys/types.h> or <sys/mman.h>
before gstv4l2object.h in gstv4l2allocator.c, but another error is exposed when
compiling gstv4l2colorbalance.c
CC libgstvideo4linux2_la-gstv4l2colorbalance.lo
In file included from gstv4l2colorbalance.h:30:0,
from gstv4l2colorbalance.c:29:
gstv4l2object.h:197:17: error: unknown type name ‘off_t’; did you mean
‘__off_t’?
gint fd, off_t offset);
^~~~~
__off_t
So it would be better to include <sys/types.h> or <sys/mman.h> in
gstv4l2object.h
--
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