[Cake] iproute2 doesn't build

Toke Høiland-Jørgensen toke at toke.dk
Fri Oct 16 09:02:30 EDT 2015


>From the kau.toke.dk:cake/iproute2 repo:

$ make
make[1]: Entering directory '/home/alrua/build/debian/iproute2/lib'
gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -fPIC   -c -o libgenl.o libgenl.c
gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -fPIC   -c -o ll_map.o ll_map.c
gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -fPIC   -c -o libnetlink.o libnetlink.c
ar rcs libnetlink.a libgenl.o ll_map.o libnetlink.o
gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -fPIC   -c -o utils.o utils.c
In file included from utils.c:34:0:
../include/namespace.h:34:19: error: static declaration of 'setns' follows non-static declaration
 static inline int setns(int fd, int nstype)
                   ^
In file included from /usr/include/sched.h:41:0,
                 from ../include/namespace.h:4,
                 from utils.c:34:
/usr/include/x86_64-linux-gnu/bits/sched.h:91:12: note: previous declaration of 'setns' was here
 extern int setns (int __fd, int __nstype) __THROW;
            ^
<builtin>: recipe for target 'utils.o' failed
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory '/home/alrua/build/debian/iproute2/lib'
Makefile:45: recipe for target 'all' failed
make: *** [all] Error 2


This is on Debian Jessie.

-Toke



More information about the Cake mailing list