> Hi,
> building uwsgi against libcap < 2.17 breaks plugins which make
> use of Linux kernel functionality such as rados or tuntap which
> include e.g. <linux/types.h>.
> The problem is that <sys/capability.h> in older libcap version
> breaks the inclusion of kernel headers with the following
> section:
> [...]
> /*
>  * Make sure we can be included from userland by preventing
>  * capability.h from including other kernel headers
>  */
> #define _LINUX_TYPES_H
> #define _LINUX_FS_H
> #define __LINUX_COMPILER_H
> #define __user
> #define _ASM_X86_SIGCONTEXT_H
> #define _ASM_POWERPC_SIGCONTEXT_H
> #define _SPARC_SIGCONTEXT_H
>
> This is mainly a problem with RHEL6 (or other older enterprise
> distros) which ships libcap 2.16, any ideas how to fix that short
> of disabling capabilities support?
> --
> Guido Berhoerster
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

This is an interesting problem.

I think the fastest approach will be commenting the line in uwsgiconfig.py:

if self.has_include('sys/capability.h') and uwsgi_os == 'Linux':

or uninstalling libcap devel package

Before 2.0 i will try to add a better check

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to