[Openswan dev] Can't build openswan 2.5.16 using NETKEY on linux-2.6.16

Paul Wouters paul at xelerance.com
Fri Feb 22 05:28:04 EST 2008

On Fri, 22 Feb 2008, MKL23 wrote:

> I tried to cross compile the new openswan 2.5.16 on linux-2.6.16, found that
> I couldn't built with NETKEY enabled, and the error message as follow.
> 	openswan-2.5.16/programs/pluto/linux26/rtnetlink.h:5:27:
> linux/if_link.h: No such file or directory
> 	openswan-2.5.16/programs/pluto/linux26/rtnetlink.h:6:27:
> linux/if_addr.h: No such file or directory
> 	openswan-2.5.16/programs/pluto/linux26/rtnetlink.h:7:29:
> linux/neighbour.h: No such file or directory
> 	make[4]: *** [kernel_netlink.o] Error 1
> Both if_link.h and if_addr.h only exist in 2.6.19 and above. And neighbour.h
> is moved from include/net/ to include/linux after 2.6.19.

Yes, updating the linux include files in programs/pluto/linux26 caused
that. A proper fix will be to take only what we really need from those
include files and build our own (or require kernel headers/source to be
installed). I'll probably do a new release in a day or two that addresses
this issue.

A quick fix to pick up the linux26 directory from the previous version.

> BTW, the NAT-T patch with make nattpatch patches the .svn files?
> 	openswan-2.5.16 # make nattpatch

> 	packaging/utils/nattpatch 2.6
> 	--- /dev/null 2008-02-02 20:09:24.144292949 +0000
> 	+++ nat-t/.svn/entries 2008-02-21 14:47:42.133786674 +0000

Hmm, we have never used svn for openswan. I'll have to look into that.
We hope to obsolete the natt patch soon.

Building and integrating Virtual Private Networks with Openswan:

More information about the Dev mailing list