[Openswan Users] Compile Errors with openswan-2.1.1

Dennis Leist dl at byteeffect.de
Wed Mar 31 04:41:28 CEST 2004


Hi All,

Well, troubles never ends ;-(
I want to use openswan-2.1.1 with kernel 2.4.21-199 (SuSE 9.0).
According to the README -File I add NAT-T by

#> make nattpatch | (cd /usr/src/linux && patch -p1 && make bzImage)

which works fine.

But compiling the programs and modul with:

#> make KERNELSRC=/usr/src/linux programs module

ends up with:

cc  -DIPCOMP_PREFIX -include 
/root/download/openswan-2.1.1/packaging/linus/config-all.h 
-I../../include -I/usr/src/linux/include  -I../../lib/zlib  -Wall 
-DARCH=i386  -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h -DMODULE -DMODVERSIONS 
-include /usr/src/linux-2.4.21-199/include/linux/modversions.h  
-D__KERNEL__ -I/usr/src/linux-2.4.21-199/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -fno-unit-at-a-time -pipe -msoft-float 
-mpreferred-stack-boundary=2  -DKBUILD_BASENAME=ipsec_proc  -c -o 
ipsec_proc.o ipsec_proc.c
ipsec_proc.c:364:8: Warnung: extra tokens at end of #endif directive
ipsec_proc.c: In function `ipsec_spi_get_info':
ipsec_proc.c:343: Warnung: `natttype_name' might be used uninitialized 
in this function
cc  -DIPCOMP_PREFIX -include 
/root/download/openswan-2.1.1/packaging/linus/config-all.h 
-I../../include -I/usr/src/linux/include  -I../../lib/zlib  -Wall 
-DARCH=i386  -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h -DMODULE -DMODVERSIONS 
-include /usr/src/linux-2.4.21-199/include/linux/modversions.h  
-D__KERNEL__ -I/usr/src/linux-2.4.21-199/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -fno-unit-at-a-time -pipe -msoft-float 
-mpreferred-stack-boundary=2  -DKBUILD_BASENAME=ipsec_tunnel  -c -o 
ipsec_tunnel.o ipsec_tunnel.c
cc  -DIPCOMP_PREFIX -include 
/root/download/openswan-2.1.1/packaging/linus/config-all.h 
-I../../include -I/usr/src/linux/include  -I../../lib/zlib  -Wall 
-DARCH=i386  -DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h -DMODULE -DMODVERSIONS 
-include /usr/src/linux-2.4.21-199/include/linux/modversions.h  
-D__KERNEL__ -I/usr/src/linux-2.4.21-199/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -fno-unit-at-a-time -pipe -msoft-float 
-mpreferred-stack-boundary=2  -DKBUILD_BASENAME=ipsec_xmit  -c -o 
ipsec_xmit.o ipsec_xmit.c
ipsec_xmit.c: In function `ipsec_xmit_encap_once':
ipsec_xmit.c:862: error: too many arguments to function 
`ip_select_ident_Rd603b6c5'
make[1]: *** [ipsec_xmit.o] Fehler 1
make[1]: Leaving directory `/root/download/openswan-2.1.1/linux/net/ipsec'
make: *** [module] Error 2

Any ideas?

Greets Dennis


More information about the Users mailing list