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

Karl Stevens openswan at northsun.ca
Sun Nov 8 18:19:56 EST 2009


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 2.6.28.8)  Am I doing something wrong?

Thanks,
Karl

cc -g  -DKLIPS -DSCANDIR_HAS_CONST
-I/root/n/openswan-2/ports/linux/include
-I/root/n/openswan-2/ports/linux/include
-I/root/n/openswan-2/ports/linux/include
-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
-DIPSECPOLICY -DPLUTO_SENDS_VENDORID -DUSE_KEYRR   -DDYNAMICDNS
-DNETKEY_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES -DPFKEY -DX509_PLUTO
-DUSE_TWOFISH -DUSE_BLOWFISH -DUSE_SERPENT -DUSE_SHA2  -DPLUTO -DKLIPS
-DHAVE_UDPFROMTO -DPFKEY   -DKLIPS_MAST   -DBUILDER=\"root at buildvm\"
-DDEBUG -DGCC_LINT -DUSE_AES -DUSE_3DES -DIKE_ALG -DKERNEL_ALG
-DAGGRESSIVE -DXAUTH -DMODECFG -DMODECFG_DNSWINS  -DNAT_TRAVERSAL
-DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
-DSHARED_SECRETS_FILE=\"/etc/ipsec.secrets\"
-DPOLICYGROUPSDIR=\"/etc/ipsec.d/policies\"
-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
/root/n/openswan-2/programs/pluto/kernel_netlink.c: In function
'netlink_add_sa':
/root/n/openswan-2/programs/pluto/kernel_netlink.c:678: error:
'XFRM_STATE_AF_UNSPEC' undeclared (first use in this function)
/root/n/openswan-2/programs/pluto/kernel_netlink.c:678: error: (Each
undeclared identifier is reported only once
/root/n/openswan-2/programs/pluto/kernel_netlink.c:678: error: for each
function it appears in.)
/root/n/openswan-2/programs/pluto/kernel_netlink.c:724: error: storage
size of 'algo' isn't known
/root/n/openswan-2/programs/pluto/kernel_netlink.c:730: error:
'XFRMA_ALG_AEAD' undeclared (first use in this function)
/root/n/openswan-2/programs/pluto/kernel_netlink.c:724: warning: unused
variable 'algo'
make[3]: *** [kernel_netlink.o] Error 1
make[3]: Leaving directory
`/root/n/openswan-2/OBJ.linux.i386/programs/pluto'
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