ipset 6.32 - build failure
With 4.10.3, ipset 6.32 seems to run into an issue:
[ 59s] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c: In function 'set_match_v0': [ 59s] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:75:18: error: 'struct xt_action_param' has no member named 'family' [ 59s] ADT_OPT(opt, par->family, info->match_set.u.compat.dim, [ 59s] ^ [ 59s] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:61:12: note: in definition of macro 'ADT_OPT' [ 59s] .family = f, \ [ 59s] ^
abuild@a4:/home/abuild/rpmbuild/BUILD/ipset-default-6.32> make modules
make -C /usr/src/linux-obj/x86_64/default M=$PWD/kernel/net V= \
KCFLAGS="-DPACKAGE_VERSION=6.32" \
IP_SET_MAX=256 KDIR=$PWD/kernel modules
make[1]: Entering directory '/usr/src/linux-4.10.3-1-obj/x86_64/default'
CC [M] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.o/home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c: In function 'set_match_v0':/home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:75:18: error: 'struct xt_action_param' has no member named 'family'
ADT_OPT(opt, par->family, info->match_set.u.compat.dim,
^
/home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:61:12: note: in definition of macro 'ADT_OPT'
.family = f, \
^Commit 613dbd95723aee7abd16860745691b6c7bda20dc in the kernel was the one to remove par->family. There is a new function called xt_family().
Quoted 19 lines · Jan Engelhardt
With 4.10.3, ipset 6.32 seems to run into an issue:
[ 59s] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c: In function 'set_match_v0': [ 59s] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:75:18: error: 'struct xt_action_param' has no member named 'family' [ 59s] ADT_OPT(opt, par->family, info->match_set.u.compat.dim, [ 59s] ^ [ 59s] /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:61:12: note: in definition of macro 'ADT_OPT' [ 59s] .family = f, \ [ 59s] ^abuild@a4:/home/abuild/rpmbuild/BUILD/ipset-default-6.32> make modules
make -C/usr/src/linux-obj/x86_64/defaultM=$PWD/kernel/net V= \
KCFLAGS="-DPACKAGE_VERSION=6.32" \
IP_SET_MAX=256 KDIR=$PWD/kernel modules
make[1]: Entering directory '/usr/src/linux-4.10.3-1-obj/x86_64/default'
CC [M]/home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.o/home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c: In function 'set_match_v0':/home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:75:18: error: 'structxt_action_param' has no member named 'family'
ADT_OPT(opt,par->family,info->match_set.u.compat.dim,
Quoted 8 lines
^ /home/abuild/rpmbuild/BUILD/ipset-default-6.32/kernel/net/netfilter/xt_set.c:61:12: note: in definition of macro 'ADT_OPT' .family = f, \ ^Commit
613dbd95723aee7abd16860745691b6c7bda20dcin the kernel was the one to removepar->family. There is a new function calledxt_family().
Thanks for the report, I'm going to add the required compatibility hoops to handle the API change.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary