Am Sonntag, 30. November 2014, 14:20:13 schrieb Paul Wouters 🔓: > 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.
Thanks for the hint. Since adding a # define IP_SELECT_IDENT_NEW in ipsec_kversion.h did not help, even behind the #if block, I added a #define KLIPS_IP_SELECT_IDENT(iph, skb) __ip_select_ident(iph, skb_dst(skb), 0) behind the #if section in ipsec_param2.h. Now the dkms package installs. I still do not understand, why defining the IP_SELECT_IDENT_NEW does not help. Mit freundlichen Grüßen, Michael Schwartzkopff -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Swan mailing list [email protected] https://lists.libreswan.org/mailman/listinfo/swan
