[Openswan Users] Fail to compile latest cvs agaist 2.6.22

Paul Wouters paul at xelerance.com
Tue Sep 18 14:31:57 EDT 2007

On Tue, 18 Sep 2007, Jorge Santos wrote:

> While trying to compile kernel 2.6.22-6 patched with klips and nat-t from
> latest cvs (18-09-2007), i get the following error:
>   CC      net/ipsec/ipsec_tunnel.o
> net/ipsec/ipsec_tunnel.c:241:9: warning: extra tokens at end of #else
> directive

I fixed that in CVS.
It should be:

#ifdef NET_26
                      ixs->sport = ntohs(inet_sk(ixs->skb->sk)->sport);
                      ixs->dport = ntohs(inet_sk(ixs->skb->sk)->dport);
                        struct udp_sock *us;

Two lines were mangled onto one.

>   CC      net/ipsec/ipsec_xmit.o
> net/ipsec/ipsec_xmit.c: In function 'ipsec_xmit_encap_bundle':
> net/ipsec/ipsec_xmit.c:1552: error: invalid operands to binary -
> make[2]: *** [net/ipsec/ipsec_xmit.o] Error 1
> make[1]: *** [net/ipsec] Error 2
> make: *** [net] Error 2

I can't see anything wrong there. I'll grab a later tonight and give
it a shot myself.

Note that there are still 3 pending merge bits from David's OCF patch left to do
in this CVS snapshot tree.

You might want to take 2.4.9 and apply the entire OCF patch instead.

Building and integrating Virtual Private Networks with Openswan:

More information about the Users mailing list