Re: apps compilation errors with nev v4l API

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



Ronald Bultje wrote:
Hi,

On Fri, 2002-12-06 at 02:03, WK wrote:

In file included from /usr/include/linux/videodev2.h:16,
                 from /usr/include/linux/videodev.h:14,
                 from console/radio.c:30:
		 (for libavcodec another file)
/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'
Is that my fault couse patch is for rc4, but not for final version?


Well, the 'old' videodev2.h didn't include a time header file, so
timeval e.d. were unknown to it. that's why people included time.h in
their own apps. (note: time.h means /usr/include/time.h, it defines
struct timespec and some others on my RH-8.0 box). The 'new' videodev2.h
does include a time.h (/usr/include/>>linux/<<time.h, so another file!),
which defines these. However, some apps still include time.h, so the
struct is defined twice and compilation horribly fails.


Maybe sombody knows any cure?


Remove "#include <linux/time.h>" from videodev2.h, or remove "#include
<time.h>", or whatever include indirectly includes time.h, from the
source you're trying to compile.

Ronald


That woks only "half" another errors apears - redefinitions of funcy\tions from select.h in time.h.
Toomorow i will send details.
Regards





[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