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

Compilation and installation questions and stories
Post Reply
brodayga
Posts: 95
Joined: 23 Oct 2014, 06:13

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

Post 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
hugleo
Posts: 59
Joined: 13 Apr 2016, 14:28

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

Post 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
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

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

Post by Dmitry »

commit 5af337d4bd95ba001527f1a298f4594ad643f57b
brodayga
Posts: 95
Joined: 23 Oct 2014, 06:13

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

Post by brodayga »

thanks/спасибо.
Post Reply