[Swan-dev] KLIPS build failure with linux-3.15 and CONFIG_USER_NS=n

Mike Gilbert floppym at gentoo.org
Thu Jul 10 04:58:10 EEST 2014


There are a few places in the code that utilize kuid_t and related
functions if HAVE_USER_NS is defined. In recent linux versions it is
no longer possible to use uint32_t as a stand-in for kuid_t,
regardless of user namespace support.

Here is a log excerpt:

/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2.c:
In function ‘pfkey_create’:
/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2.c:749:14:
error: incompatible types when assigning to type ‘uint32_t’ from type
‘kuid_t’
  key_pid(sk) = current_uid();
              ^
/home/floppym/kernel/source/scripts/Makefile.build:318: recipe for
target '/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2.o'
failed
make[5]: *** [/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2.o]
Error 1
make[5]: *** Waiting for unfinished jobs....
/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2_parser.c:
In function ‘pfkey_register_reply’:
/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2_parser.c:1731:26:
error: type mismatch in conditional expression
           ->sadb_msg_pid :
                          ^
/home/floppym/kernel/source/scripts/Makefile.build:318: recipe for
target '/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2_parser.o'
failed
make[5]: *** [/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj/pfkey_v2_parser.o]
Error 1
/home/floppym/kernel/source/Makefile:1310: recipe for target
'_module_/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj'
failed
make[4]: *** [_module_/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9/modobj]
Error 2
Makefile:134: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:26: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/floppym/kernel/build-3.15'
Makefile:391: recipe for target 'module26' failed
make[1]: *** [module26] Error 2
make[1]: Leaving directory
'/tmp/portage/net-misc/libreswan-klips-3.9/work/libreswan-3.9'
Makefile:294: recipe for target 'module' failed
make: *** [module] Error 2


More information about the Swan-dev mailing list