[sane-devel] Compile problem in 1.0.11
John Coppens
jcoppens at usa.net
Thu Apr 10 04:46:27 BST 2003
Hi all...
Get this error on compiling sane-backends 1.0.11:
gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
-DBACKEND_NAME=v4l -DLIBDIR=/usr/local/lib/sane v4l.c -fPIC -DPIC -o
v4l.lo
In file included from /usr/include/linux/videodev2.h:16,
from /usr/include/linux/videodev.h:14,
from v4l.c:76:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
/usr/include/linux/time.h:93: redefinition of `struct timezone'
/usr/include/linux/time.h:124: redefinition of `struct itimerval'
In v4l.c, line 67, I changed:
#include <sys/time.h>
to
#include <linux/time.h>
which eliminated two errors and left:
In file included from v4l.c:67:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
Any idea which other include references timespec again? Or just what to do
to get this working?
Thanks
John
More information about the sane-devel
mailing list