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

Stephanos Piperoglou ta0002 at piperoglou.com
Wed Sep 29 12:29:27 CEST 2004


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

Stephanos Piperoglou wrote:

> I'm trying to get OpenS/WAN to work with a SuSE Linux 8.2 system 
> (kernel 2.4.20). For various reasons I can't go into right now, I 
> can't recompile my kernel, which incidentally includes an ipsec.o 
> module (patched in by SuSE), though I'm not fixated on using it, esp. 
> as I don't know the version which is probably some old FreeS/WAN 
> version, and need a recent X.509 patch that supports the %any value 
> for left/rightprotoport (I want to tunnel L2TP for a Mac OS X 10.3 
> road warrior).
>
> AFAIK unless I want to bother with NAT-T (and I don't) I don't have to 
> recompile my kernel, just another module and the ipsec-tools. However 
> 2.2.0 won't compile (see below for compiler output). Any ideas? Should 
> I maybe try an older version? As I said, I'm stuck with my current kernel.
>
> linux:~/openswan-2.2.0 # make KERNELSRC=/usr/src/linux module/
> *[...]*/
> cc  -DIPCOMP_PREFIX  -include 
> /root/openswan-2.2.0/packaging/linus/config-all.h 
> -I/root/openswan-2.2.0/linux/include -I/usr/src/linux/include  
> -I/root/openswan-2.2.0/linux/lib/zlib -DCONFIG_IPSEC_ALG -O3 -Wall 
> -DARCH=i386  -DMODVERSIONS -include 
> /usr/src/linux/include/linux/modversions.h -DMODULE  -D__KERNEL__ 
> -I/usr/src/linux-2.4.20.SuSE/include -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-sign-compare 
> -finline-limit=2000 -fomit-frame-pointer -pipe 
> -mpreferred-stack-boundary=2 -march=i586 -DIPCOMP_PREFIX  -include 
> /root/openswan-2.2.0/packaging/linus/config-all.h 
> -I/root/openswan-2.2.0/linux/include -I/usr/src/linux/include  
> -I/root/openswan-2.2.0/linux/lib/zlib -DCONFIG_IPSEC_ALG -O3 -Wall 
> -DARCH=i386  -DMODVERSIONS -include 
> /usr/src/linux/include/linux/modversions.h -DMODULE  -D__KERNEL__ 
> -I/usr/src/linux-2.4.20.SuSE/include -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-sign-compare 
> -finline-limit=2000 -fomit-frame-pointer -pipe 
> -mpreferred-stack-boundary=2 -march=i586  
> -DKBUILD_BASENAME=ipsec_xmit  -c -o ipsec_xmit.o 
> /root/openswan-2.2.0/linux/net/ipsec/ipsec_xmit.c
> /root/openswan-2.2.0/linux/net/ipsec/ipsec_xmit.c: In function 
> `ipsec_xmit_encap_once':
> /root/openswan-2.2.0/linux/net/ipsec/ipsec_xmit.c:919: error: too many 
> arguments to function `ip_select_ident'
> make[1]: *** [ipsec_xmit.o] Error 1
> make[1]: Leaving directory `/root/openswan-2.2.0/modobj'
> make: *** [module] Error 2
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openswan.org
>http://lists.openswan.org/mailman/listinfo/users
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20040929/df040b1c/attachment.htm


More information about the Users mailing list