sctp / lksctp-tools

The Linux SCTP helper library
https://github.com/sctp/lksctp-tools
GNU General Public License v2.0
102 stars 38 forks source link

test_interleave.c:139:23: error: ‘SCTP_INTERLEAVING_SUPPORTED’ undeclared #49

Open thekingofspain opened 1 year ago

thekingofspain commented 1 year ago

Getting an error trying to make this on archlinux.

./bootstrap ./confiure make

make all-recursive ... CC test_interleave.o test_interleave.c: In function ‘main’: test_interleave.c:139:23: error: ‘SCTP_INTERLEAVING_SUPPORTED’ undeclared (first use in this function); did you mean ‘SCTP_RECONFIG_SUPPORTED’? test_setsockopt(sk1, SCTP_INTERLEAVING_SUPPORTED, ^~~~~~~ SCTP_RECONFIG_SUPPORTED test_interleave.c:139:23: note: each undeclared identifier is reported only once for each function it appears in make[3]: [Makefile:1184: test_interleave.o] Error 1 make[3]: Leaving directory '/root/lksctp-tools/src/func_tests' make[2]: [Makefile:380: all-recursive] Error 1 make[2]: Leaving directory '/root/lksctp-tools/src' make[1]: [Makefile:492: all-recursive] Error 1 make[1]: Leaving directory '/root/lksctp-tools' make: [Makefile:398: all] Error 2

marceloleitner commented 1 year ago

Which kernel headers are you using there? SCTP_INTERLEAVING_SUPPORTED was defined in 772a58693fc31 , in v4.16.