Mailing List archive

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

[vdr] Re: VDR fails to build (because of time.h inconsistency?)



On Friday 19 December 2003 12:26, Paavo Hartikainen wrote:
> This is where it breaks:
> ---
> g++ -g -O2 -Wall -Woverloaded-virtual -mcpu=604e -c -DREMOTE_KBD -DREMOTE_
> -D_GNU_SOURCE -DVIDEODIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\"
> -I../DVB/include dvbdevice.c In file included from
> /usr/include/linux/videodev2.h:16,
>                  from /usr/include/linux/videodev.h:8,
>                  from dvbdevice.c:20:
> /usr/include/linux/time.h:9: error: redefinition of `struct timespec'
> /usr/include/time.h:119: error: previous definition of `struct timespec'
> /usr/include/linux/time.h:15: error: redefinition of `struct timeval'
> /usr/include/bits/time.h:70: error: previous definition of `struct timeval'
> /usr/include/linux/time.h:354: error: redefinition of `struct itimerspec'
> /usr/include/time.h:160: error: previous definition of `struct itimerspec'
> make: *** [dvbdevice.o] Error 1
> ---

Ahh just had to too, don't remember the exact steps, it happened when 
compiling xine from konstruct for a kde beta2.

basically the problem is that <linux/time.h> is included, but a userspace app 
should never include linux headers directly, rather <sys/time.h>.
The problem here however is that the linux header is included by videodev.h, 
you have to replace that with <sys/time.h>, and i think there is another 
problem there but I did get around it eventually, if you're having lots of 
problems still i will try to compile VDR on this 2.6.0 later and see if I 
remember how to get around it :-)

Cheers,
Dennis


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index