[Openswan Users] XL2TP and NAT problems with Ubuntu 9.10 and Openswan 6.22

Karl Stevens openswan at northsun.ca
Mon Nov 9 11:45:15 EST 2009

Tuomo Soini wrote:
> Karl Stevens wrote:
>> Tuomo Soini wrote:
>>> Openswan-2.6.x where x < 24rc2 won't work with natted transport mode.
>>> Upgrading to 2.6.24rc2 will help us to nail possible bugs caused by
>>> fixing this issue. If you can, please test it.
>> I am unable to compile 2.6.24rc2 - see the output from "./buildlin.sh"
>> below.
>> Note that if I switch to 2.6.24rc1 (with "git checkout v2.6.24rc1") or
>> any of the other tags, it compiles just fine.  (This is on Slackware
>> 12.1, kernel  Am I doing something wrong?
>> Thanks,
>> Karl
> You need kernel headers installed to compile 2.6.24rc2 linux/xfrm.h is
> needed. Other possibility is to apply over 2.6.24rc2 attached patch from
> git.

Hi Tuomo,

Thanks.  I do have the kernel headers ( installed, and
linux/xfrm.h exists.  I tried the patch you supplied, and get a
different error (see below.)


-I/root/n/openswan-2/programs/pluto/linux26 -I/root/n/openswan-2/include
-I/root/n/openswan-2/lib/libcrypto -I/root/n/openswan-2/linux/include
-DPERPEERLOGDIR=\"/var/log/pluto/peer\" -g -Wall -W -Wmissing-prototypes
-Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-declarations
-Wwrite-strings -Wstrict-prototypes   -c
/root/n/openswan-2/programs/pluto/kernel_netlink.c: In function
/root/n/openswan-2/programs/pluto/kernel_netlink.c:732: error: storage
size of 'algo' isn't known
/root/n/openswan-2/programs/pluto/kernel_netlink.c:738: error:
'XFRMA_ALG_AEAD' undeclared (first use in this function)
/root/n/openswan-2/programs/pluto/kernel_netlink.c:738: error: (Each
undeclared identifier is reported only once
/root/n/openswan-2/programs/pluto/kernel_netlink.c:738: error: for each
function it appears in.)
/root/n/openswan-2/programs/pluto/kernel_netlink.c:732: warning: unused
variable 'algo'
make[3]: *** [kernel_netlink.o] Error 1
make[3]: Leaving directory
make[2]: *** [programs] Error 1
make[2]: Leaving directory `/root/n/openswan-2/OBJ.linux.i386/programs'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/root/n/openswan-2/OBJ.linux.i386'
make: *** [programs] Error 2

More information about the Users mailing list