[Openswan Users] OpenS/WAN and SuSE 8.2 / Kernel 2.4.20

Ken Bantoft ken at xelerance.com
Fri Oct 1 04:53:22 CEST 2004

On Wed, 29 Sep 2004, Stephanos Piperoglou wrote:

> Found it, it's my kernel's weird single-argument ip_select_ident(), just 
> stuck in
> #define SUSE_LINUX_2_4_19_IS_STUPID
> In a couple of places. I also added -DUSE_NAT_TRAVERSAL=0 to my make 
> command to get the KLIPS module (success!), but now I get the following 
> error when I do make programs. I'm not a C coder, please help :-). 
> Should I be posting this to the developer list instead?
> make[2]: Entering directory `/root/openswan-2.2.0/programs/spi'
> cc -g -O3 -I../.. -I../../linux/include -I../../include -Wall 
> -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast  
> -DKERNEL_ALG -DIKE_ALG -Werror   -c -o spi.o spi.c
> spi.c: In function `main':
> spi.c:1005: warning: comparison between signed and unsigned
> make[2]: *** [spi.o] Error 1
> make[2]: Leaving directory `/root/openswan-2.2.0/programs/spi'
> make[1]: *** [programs] Error 1
> make[1]: Leaving directory `/root/openswan-2.2.0/programs'
> make: *** [programs] Error 1

Change programs/Makefile.programs and remove the -Werror option.

# die if there are any warnings
ifndef WERROR
WERROR:= -Werror

Comment out / remove that bit.  It's crapping out due to the warning, 
which isn't critical in this case. 


More information about the Users mailing list