[Openswan Users] Problem linux-2.6.22.2/openswan-2.4.9 KLIPS

Paul Wouters paul at xelerance.com
Thu Aug 16 12:43:06 EDT 2007


On Thu, 16 Aug 2007, Den wrote:

> I can't compile linux-2.6.22.2/openswan-2.4.9 KLIPS.
> Please, help me.

If you really need kernels that new, you might want to try the git repository
of openswan, the #testing branch. That's where we are currently comitting
fixes for newer kernels, though not all of them are in. A lof of surgery
happened to the skb (again).

By far the easiest is to go back to something like 2.6.18.7.

Paul

> openswan-2.4.9>make nattpatch | (cd /usr/src/linux-2.6.22.2 && patch -p1)
> patching file include/net/xfrmudp.h
> patching file net/ipv4/Kconfig
> Hunk #1 succeeded at 351 with fuzz 1.
> patching file net/ipv4/udp.c
> Hunk #1 succeeded at 110 with fuzz 1.
> Hunk #2 succeeded at 922 with fuzz 2 (offset 25 lines).
> Hunk #3 FAILED at 965.
> Hunk #4 FAILED at 1085.
> Hunk #5 FAILED at 1182.
> Hunk #6 succeeded at 1759 (offset 146 lines).
> 3 out of 6 hunks FAILED -- saving rejects to file net/ipv4/udp.c.rej
>
> /usr/src/linux-2.6.22.2>make
> ...
>   IP: TCP syncookie support (disabled per default) (SYN_COOKIES) [N/y/?] n
>   IPSEC NAT-Traversal (KLIPS compatible) (IPSEC_NAT_TRAVERSAL) [N/y/?] (NEW)
> ...
>
> /usr/src/openswan-2.4.9>make KERNELSRC=/usr/src/linux-2.6 programs module
> ...
> /usr/src/openswan-2.4.9/linux/include/openswan/ipsec_proto.h:76:
> warning: "struct iphdr" declared inside parameter list
> /usr/src/openswan-2.4.9/linux/include/openswan/ipsec_proto.h:76:
> error: conflicting types for 'ipsec_print_ip'
> /usr/src/openswan-2.4.9/linux/include/openswan/ipsec_param.h:178:
> error: previous declaration of 'ipsec_print_ip' was here
> /usr/src/openswan-2.4.9/linux/include/openswan/ipsec_proto.h:76:
> error: conflicting types for 'ipsec_print_ip'
> /usr/src/openswan-2.4.9/linux/include/openswan/ipsec_param.h:178:
> error: previous declaration of 'ipsec_print_ip' was here
> make[3]: *** [/usr/src/openswan-2.4.9/modobj26/ipsec_life.o] Error 1
> make[2]: *** [_module_/usr/src/openswan-2.4.9/modobj26] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.22.2'
> _______________________________________________
> Users at openswan.org
> http://lists.openswan.org/mailman/listinfo/users
> Building and Integrating Virtual Private Networks with Openswan:
> http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
>

-- 
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