Compile problem in 1.0.11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux