[Openswan Users] Openswan and Openwrt

Scott Savarese openswan at scottsavarese.com
Wed Aug 27 04:43:27 EDT 2008


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).

I've been trying to  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?

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  
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include  
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include  
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include  
-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  
-g -Werror   
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include  
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include  
-I/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/ports/linux/include  
-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   
-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  
-DNAT_TRAVERSAL -DKLIPS   -c -o context.o 
/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/context.c
cc1: warnings being treated as errors
/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/lib/liblwres/context.c: 
In function 'lwres_context_sendrecv':
/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
make[7]: *** [context.o] Error 1
make[7]: Leaving directory 
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/OBJ.linux.mips/lib/liblwres'
make[6]: *** [programs] Error 1
make[6]: Leaving directory 
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/OBJ.linux.mips/lib'
make[5]: *** [programs] Error 1
make[5]: Leaving directory 
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/OBJ.linux.mips'
make[4]: *** [programs] Error 2
make[4]: Leaving directory 
`/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16'
make[3]: *** 
[/home/savarese/kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/openswan-2.6.16/.built] 
Error 2
make[3]: Leaving directory `/home/savarese/kamikaze_7.09/package/openswan'
make[2]: *** [openswan-compile] Error 2
make[2]: Leaving directory `/home/savarese/kamikaze_7.09/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/savarese/kamikaze_7.09'
make: *** [world] Error 2


Paul Wouters wrote:
>> 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.
>>     
>
> 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 ftp://ftp.openswan.org/openswan/binaries/openwrt/
>
> These are:
>
> openswan_2.6.16dr4-1_mipsel.ipk
> kmod-openswan_2.6.25.10+2.6.16dr4-brcm47xx-1_mipsel.ipk
>
> Paul
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20080827/02fc2405/attachment.html 


More information about the Users mailing list