multipath-tcp / iproute-mptcp

IP-Route extensions for the out-of-tree MultiPath TCP kernel
http://multipath-tcp.org/pmwiki.php/Users/Tools
GNU General Public License v2.0
31 stars 19 forks source link

Compilation Error On Raspbian custom kernel with mptcp support #10

Open Dvineone opened 2 years ago

Dvineone commented 2 years ago

Error when compiling on Raspbian. Custom compiled kernel.

Kernel Version: Linux raspberrypi 4.19.206-v7-MPTCP+ #3 SMP Thu Dec 16 13:35:09 CST 2021 armv7l GNU/Linux

OS Version: PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian

Error: make[1]: Entering directory '/home/pi/iproute2/lib' gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -pipe -I../include -I../include/uapi -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -DNETNS_RUN_DIR=\"/var/run/netns\" -DNETNS_ETC_DIR=\"/etc/netns\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_SETNS -DNEED_STRLCPY -DHAVE_SETNS -DNEED_STRLCPY -fPIC -c -o libnetlink.o libnetlink.c In file included from /usr/include/arm-linux-gnueabihf/bits/fcntl-linux.h:353, from /usr/include/arm-linux-gnueabihf/bits/fcntl.h:54, from /usr/include/fcntl.h:35, from libnetlink.c:17: /usr/include/linux/falloc.h:13:2: error: unknown type name ‘s16’ 13 | s16 l_type; | ^~~~~ /usr/include/linux/falloc.h:14:2: error: unknown type name ‘s16’ 14 | s16 l_whence; | ^~~~~ /usr/include/linux/falloc.h:15:2: error: unknown type name ‘s64’ 15 | s64 l_start; | ^~~~~ /usr/include/linux/falloc.h:16:2: error: unknown type name ‘s64’ 16 | s64 l_len; / len == 0 means until end of file / | ^~~~~ /usr/include/linux/falloc.h:17:2: error: unknown type name ‘s32’ 17 | s32 l_sysid; | ^~~~~ /usr/include/linux/falloc.h:18:2: error: unknown type name ‘u32’ 18 | u32 l_pid; | ^~~~~ /usr/include/linux/falloc.h:19:2: error: unknown type name ‘s32’ 19 | s32 l_pad[4]; / reserved area /

matttbe commented 2 years ago

Hi,

Which version of iproute2 did you compile? Did you use the code from the master branch? https://github.com/multipath-tcp/iproute-mptcp/tree/master

Or mptcp_v0.96 branch?

This doesn't seem to be an issue due to the modifications done for MPTCP. Maybe a generic issue with an old version of iproute2 already fixed in master?