[Swan] Problems compiling: ipsec_xmit.c

Paul Wouters 🔓 paul at nohats.ca
Sun Nov 30 21:20:13 EET 2014


On Sun, 30 Nov 2014, Michael Schwartzkopff wrote:

> I downloaded the latest code from libreswan and wanted to compile KLIPS. On my
> debian machine I generated all binaries, but installing the dkms kernel module
> fails. I tracked down the problem to the directory /usr/src/modules/libreswan.
> A make modules in that directory results in:

>  CC [M]  /usr/src/modules/libreswan/modobj/ipsec_xmit.o
> /usr/src/modules/libreswan/modobj/ipsec_xmit.c: In function ‘ipsec_xmit_ipip’:
> /usr/src/modules/libreswan/modobj/ipsec_xmit.c:1242:3: warning: passing
> argument 2 of ‘__ip_select_ident’ makes pointer from integer without a cast
> [enabled by default]

Looks like a backport of some newer IDENT code. See the
IP_SELECT_IDENT_NEW macro in ./include/libreswan/ipsec_kversion.h
You probably just want to #define IP_SELECT_IDENT_NEW for your kernel
version.

Paul


More information about the Swan mailing list