Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 19981

Summary: glibc / linux-2.5 / v4l compile problems
Product: Gentoo Linux Reporter: Bret Towe <magnade>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED INVALID    
Severity: normal CC: media-tv
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bret Towe 2003-04-25 23:35:49 UTC
those using 2.5 kernel headers to build a system will see problems like...
In file included from /usr/include/linux/videodev2.h:16,
                 from /usr/include/linux/videodev.h:14,
                 from filters.c:15:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:15: redefinition of `struct timeval'
/usr/include/linux/time.h:181: redefinition of `struct itimerspec'

when trying to build an app that requires the videodev.h and videodev2.h kernel
headers the problem is due to time.h stuff being defined already by glibc
it is mentioned here:
http://marc.theaimsgroup.com/?l=linux-video&m=104884621625451&w=2
i think this is more a glibc problem than kernel but i dont know the policys of
ether project well enuf to knwo for sure

i think we need a fix in glibc to fix all apps so we dont have to have patchs
like the one ill attach for gqcam

im not sure if this is just related to glibc-2.3.1 or if its fixed under 2.3.2

Reproducible: Always
Steps to Reproduce:
1. using 2.5 kernel headers merge any v4l related app
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-10-31 14:07:44 UTC
Erm, 2.5 / 2.6 headers are not officially supported yet because of the horrendous
breakage they cause.