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

Ian Campbell ian.campbell at citrix.com
Sun Sep 14 17:35:19 UTC 2014


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.




More information about the libvir-list mailing list