[vdr] [ANNOUNCE] VDR developer version 1.7.9

Anssi Hannula anssi.hannula at gmail.com
Sun Aug 23 22:30:09 CEST 2009


Anssi Hannula wrote:
> Thank you. The bug is in libcap header file
> /usr/include/sys/capability.h
> 
> It does evil stuff like this:
> 
>   25 /*
>   26  * Make sure we can be included from userland by preventing
>   27  * capability.h from including other kernel headers
>   28  */
>   29 #define _LINUX_TYPES_H
>   30 #define _LINUX_FS_H
>   31 #define __LINUX_COMPILER_H
>   32 #define __user
>   33
>   34 typedef unsigned int __u32;
>   35 typedef __u32 __le32;
> 
> This completely prevents including /usr/include/linux/types.h, etc.
> 
> It seems my distro has a patch that removes all the above lines to
> resolve this issue. I'll try contacting libcap upstream on this issue.

In the meantime, attached is a workaround that contains a clear comment
describing the issue.

-- 
Anssi Hannula
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-workaround-broken-sys-capability.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://www.linuxtv.org/pipermail/vdr/attachments/20090823/9e107e3f/attachment.bin>


More information about the vdr mailing list