Mailing List archive

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

[vdr] Re: Building vdr again the new 2.6 kernel tree



On Sun, Nov 23, 2003 at 02:06:24PM +0100, Tilman Baumann wrote:
> As far as i know, this situation changed with 2.6... Not sure...
> 
> However. The same problem with
> CC       ?= gcc-2.95
> CXX      ?= g++-2.95
> 
> 
> g++ -g -O2 -Wall -Woverloaded-virtual -c -DREMOTE_KBD -DREMOTE_ 
> -D_GNU_SOURCE -DVIDEODIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\" 
> -I/usr/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
> 

I just joined this list, and missed the beginning of this thread, but I got the                                                                                                                          
same error, and did this in order to get it to compile (on 2.4 kernel):                                                                                                                                  
                                                                                                                                                                                                         
--- Make.config.template        2003-08-09 14:03:25.000000000 +0300                                                                                                                                      
+++ Make.config 2003-11-23 15:31:54.000000000 +0200                                                                                                                                                      
@@ -13,12 +13,16 @@                                                                                                                                                                                      
 CC       = gcc                                                                                                                                                                                          
 CFLAGS   = -O2                                                                                                                                                                                          
                                                                                                                                                                                                         
+KERNEL_VERSION := $(shell uname -r)                                                                                                                                                                     
+KERNEL_LOCATION = /lib/modules/$(KERNEL_VERSION)/build                                                                                                                                                  
+                                                                                                                                                                                                        
 CXX      = g++                                                                                                                                                                                          
-CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual                                                                                                                                                            
+CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual -I $(KERNEL_LOCATION)/include                                                                                                                              
                                                                                                                                                                                                         
 ### The directory environment:                                                                                                                                                                          
                                                                                                                                                                                                         
                                                                                                                                                                                                         



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



Home | Main Index | Thread Index