[Openswan Users] compile error with 2.6.24rc3

Murat Sezgin sezginmurat at gmail.com
Tue Dec 22 21:35:18 EST 2009

Hi all,

I was trying to run the openswan 2.6.18 version on our openwrt router. I was
trying to connect it from a NAT'd client. I spent a few days on this and
then I saw that this version has a bug on this feature. I had already tried
it on my linux machine but the result was the same. Today I saw that the
2.6.24rc3 version has fixed this issue. I downloaded it. Before porting it
to openwrt, I wanted to compile and run it on my linux machine, but I get
the following build error.

/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c: In function
/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:732: error:
storage size of ‘algo’ isn’t known
/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:738: error:
‘XFRMA_ALG_AEAD’ undeclared (first use in this function)
/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:738: error:
(Each undeclared identifier is reported only once
/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:738: error: for
each function it appears in.)
/usr/src/openswan-2.6.24rc3/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
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/usr/src/openswan-2.6.24rc3/OBJ.linux.i386'
make: *** [programs] Error 2

I have the header file xfrma.h under include/linux directory. I have also
installed the following packages that I saw in a previous email (from this
email I also learned the bug :))


How can I get rid of this build error? I am using Ubuntu 8.04.

Murat Sezgin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20091222/b9751480/attachment.html 

More information about the Users mailing list