[Openswan Users] Help compiling openswan on openwrt

Scott Savarese openswan at scottsavarese.com
Mon Sep 1 17:06:12 EDT 2008


I'm trying to compile the latest version of openswan on openwrt with a 
2.6 kernel. I'm running into an error compiling it. I was able to 
compile it properly outside of the openwrt environment.

Here is the error that I get. Any help in telling me what went wrong 
would be greatly appreciated... I took all the defaults in the openwrt 
configuration.

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




More information about the Users mailing list