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

MKL23 mkl23 at hotmail.com
Thu Feb 21 23:33:33 EST 2008


Hi,
I'm new commer of openswan and linux, so please forgive me if there's any
thing stupid.
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.

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

	if [ -f /usr/src/linux/Makefile ]; then \
	make nattpatch2.6; \
	else echo "Cannot determine Linux kernel version. Perhaps you need
to set KERNELSRC? (eg: export KERNELSRC=/usr/src/linux-`uname -r`/)"; exit
1; \
	fi;
	make[1]: Entering directory
`/home/mac/star/str8100-lsdk/apps-pool/openswan-2.5.16'
	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
	@@ -0,0 +1,22 @@
	(......................................................)


Best Regards,
Mac Lin





More information about the Dev mailing list