<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Paul, thanks for uploading them, but the kmod-openswan is for the wrong
version of the kernel (kamikaze is at 2.5.25-12 now).<br>
<br>
I've been trying to&nbsp; work with the kamikaze build system, but haven't
figured out how to get it to compile correctly. For example, the
patches don't seem to work correctly. Running it without patches, I get
this error (which is farther than I've gotten before). Anything you can
do to help?<br>
<br>
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32
-funit-at-a-time
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/linux/include
-I/home/savarese/kamikaze_7.09/staging_dir_mipsel/usr/include
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/linux-2.6.22/include
-L/home/savarese/kamikaze_7.09/staging_dir_mipsel/usr/lib&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/unix/include
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/../libisc/unix/include
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/../libisc/include
-I. -I./include
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/include&nbsp;
-g -Werror&nbsp;&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include&nbsp;
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include&nbsp;
-I.
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/linux/net/ipsec
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/linux/include
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/include&nbsp;&nbsp;
-DDEBUG -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/linux/include
-I/home/savarese/kamikaze_7.09/staging_dir_mipsel/usr/include
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/linux-2.6.22/include
-L/home/savarese/kamikaze_7.09/staging_dir_mipsel/usr/lib -Wall
-Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast&nbsp;
-DNAT_TRAVERSAL -DKLIPS&nbsp;&nbsp; -c -o context.o
/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/context.c<br>
cc1: warnings being treated as errors<br>
/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/context.c:
In function 'lwres_context_sendrecv':<br>
/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/context.c:373:
warning: dereferencing type-punned pointer will break strict-aliasing
rules<br>
make[7]: *** [context.o] Error 1<br>
make[7]: Leaving directory
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/OBJ.linux.mips/lib/liblwres'<br>
make[6]: *** [programs] Error 1<br>
make[6]: Leaving directory
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/OBJ.linux.mips/lib'<br>
make[5]: *** [programs] Error 1<br>
make[5]: Leaving directory
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/OBJ.linux.mips'<br>
make[4]: *** [programs] Error 2<br>
make[4]: Leaving directory
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16'<br>
make[3]: ***
[/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/.built]
Error 2<br>
make[3]: Leaving directory
`/home/savarese/kamikaze_7.09/package/openswan'<br>
make[2]: *** [openswan-compile] Error 2<br>
make[2]: Leaving directory `/home/savarese/kamikaze_7.09/package'<br>
make[1]: *** [package/compile] Error 2<br>
make[1]: Leaving directory `/home/savarese/kamikaze_7.09'<br>
make: *** [world] Error 2<br>
<br>
<br>
Paul Wouters wrote:
<blockquote
 cite="mid:Pine.LNX.4.64.0808261621240.30325@newtla.xelerance.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">I'm trying to get openswan to work on then openwrt platform 
(openwrt.org). I see older packages for the 2.4 kernel, but nothing for 
the 2.6 kernel. Has anybody compiled openswan for openwrt before? I've 
been trying to do it using openwrt's build system but am having problems.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The supporting files are in packaging/openwrt. Those should be enough to
get things going with their buildroot system.

I had some builds lying around for the mips (eg tested on Asus WL500gP)
which I just uploaded to <a class="moz-txt-link-freetext" href="ftp://ftp.openswan.org/openswan/binaries/openwrt/">ftp://ftp.openswan.org/openswan/binaries/openwrt/</a>

These are:

openswan_2.6.16dr4-1_mipsel.ipk
kmod-openswan_2.6.25.10+2.6.16dr4-brcm47xx-1_mipsel.ipk

Paul
  </pre>
</blockquote>
</body>
</html>