[Openswan Users] Problem building ipsec module on SLES10-SP1

Paul Wouters paul at xelerance.com
Wed Nov 7 09:21:28 EST 2007


On Wed, 7 Nov 2007, Nicole Hähnel wrote:

> I'm trying to build ipsec module on SLES10 SP1 kernel
> 2.6.16.53-0.16-default.
> Last version which works is openswan-2.4.7, all others up to 2.4.10 are
> not working.

> ln -s -f /usr/src/openswan-2.4.10/linux/net/ipsec/ipsec_rcv.c
> /usr/src/openswan-2.4.10/modobj26/ipsec_rcv.c
>   CC [M]  /usr/src/openswan-2.4.10/modobj26/ipsec_rcv.s
> /usr/src/openswan-2.4.10/modobj26/ipsec_rcv.c: In function â?~ipsec_rcvâ?T:
> /usr/src/openswan-2.4.10/modobj26/ipsec_rcv.c:1428: error: too many
> arguments to function â?~skb_linearizeâ?T

skb_linearize is controlled by ./linux/include/openswan/ipsec_kversion.h:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
#define HAVE_NEW_SKB_LINEARIZE
#endif

I do notice that the XEN check, which also changes this, is missing, so
try adding just below there:

/* this is the best we can do to detect XEN, which makes
 * patches to linux/skbuff.h, making it look like 2.6.18 version
 */
#ifdef CONFIG_XEN
#define HAVE_NEW_SKB_LINEARIZE
#endif

Paul
-- 
Building and integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


More information about the Users mailing list