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

Re: [libvirt] [PATCH] virprocess: Introduce our own setns() wrapper



On Wed, 2014-09-10 at 12:20 +0200, Michal Privoznik wrote:
>  
> +/*
> + * Workaround older glibc. While kernel may support the setns
> + * syscall, the glibc wrapper might not exist. If that's the
> + * case, use our own.
> + */
> +#ifndef __NR_setns
> +# if defined(__x86_64__)
> +#  define __NR_setns 308
> +# elif defined(__i386__)
> +#  define __NR_setns 346
> +# else
> +#  error "__NR_setns is not defined"
> +# endif
> +#endif

Xen's automated build tests of libvirt have just failed with this when
building for armhf:
        util/virprocess.c:75:4: error: #error "__NR_setns is not
        defined"

is this another aspect of the "out of date glibc" issue?

(build log at
http://www.chiark.greenend.org.uk/~xensrcts/logs/30238/build-armhf-libvirt/5.ts-libvirt-build.log and full test run logs linked from http://lists.xen.org/archives/html/xen-devel/2014-09/msg02146.html  

Ian.


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