Page 1 of 1

последняя версия с гит не собралась

Posted: 19 Jul 2016, 08:04
by brodayga

Code: Select all

CMakeFiles/accel-pppd.dir/net.c.o: In function `enter_ns':
net.c:(.text+0x3f6): undefined reference to `setns'

Code: Select all

 Debian 3.2.73-2+deb7u2

Re: последняя версия с гит не собралась

Posted: 19 Jul 2016, 12:54
by hugleo
I think glibc is to old in debian wheezy.

Maybe a patch like that for accel:

+/*
+ * Use raw setns syscall for versions of glibc that don't include it (namely
+ * glibc-2.12)
+ */
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 14
+#ifdef SYS_setns
+int setns(int fd, int nstype)
+{
+ return syscall(SYS_setns, fd, nstype);
+}
+#endif
+#endif
+

https://sourceforge.net/p/ltp/mailman/message/34252897/

The other way that a can think is try to upgrade linux-libc/linux-libc-dev

Re: последняя версия с гит не собралась

Posted: 19 Jul 2016, 13:26
by Dmitry
commit 5af337d4bd95ba001527f1a298f4594ad643f57b

Re: последняя версия с гит не собралась

Posted: 19 Jul 2016, 14:57
by brodayga
thanks/спасибо.