<br clear="all">Hi all,<br><br>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.<br>
<br>/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c: In function ‘netlink_add_sa’:<br>/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:732: error: storage size of ‘algo’ isn’t known<br>/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:738: error: ‘XFRMA_ALG_AEAD’ undeclared (first use in this function)<br>
/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:738: error: (Each undeclared identifier is reported only once<br>/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:738: error: for each function it appears in.)<br>
/usr/src/openswan-2.6.24rc3/programs/pluto/kernel_netlink.c:732: warning: unused variable ‘algo’<br>make[3]: *** [kernel_netlink.o] Error 1<br>make[3]: Leaving directory `/usr/src/openswan-2.6.24rc3/OBJ.linux.i386/programs/pluto'<br>
make[2]: *** [programs] Error 1<br>make[2]: Leaving directory `/usr/src/openswan-2.6.24rc3/OBJ.linux.i386/programs'<br>make[1]: *** [programs] Error 1<br>make[1]: Leaving directory `/usr/src/openswan-2.6.24rc3/OBJ.linux.i386'<br>
make: *** [programs] Error 2<br><br>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 :))<br>
<br>build-essential<br>libgmp3-dev<br>bison<br>libgmp<br>flex<br>xmlto<br><br>How can I get rid of this build error? I am using Ubuntu 8.04.<br><br>Regards,<br>Murat Sezgin<br><a href="http://www.ubicom.com">www.ubicom.com</a><br>