[Openswan Users] Recommended version for kernel 2.4?

Nels Lindquist nlindq at maei.ca
Thu Dec 4 14:00:40 EST 2008


Hi, folks.

I'm running OpenSWAN on an elderly (but still supported) distribution
with kernel 2.4.  I've been receiving "unhandled UDP encap" errors and
thought I should probably try upgrading OpenSWAN.

I'm currently running 2.4.7 (no KLIPS) and thought I'd try upgrading to
the latest 2.6.x version.  However, when attempting to build a 2.6.19
RPM I received the following error:

> make[3]: Entering directory
> `/usr/src/redhat/BUILD/openswan-2.6.19/OBJ.linux.i386/programs/pluto'
>  cc -g -O2 -g -pipe -march=i686 -fPIE -pie
> -I/usr/src/redhat/BUILD/openswan-2.6.19/ports/linux/include
> -I/usr/src/redhat/BUILD/openswan-2.6.19/ports/linux/include
> -I/usr/src/redhat/BUILD/openswan-2.6.19/ports/linux/include
> -I/usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/linux26
> -I/usr/src/redhat/BUILD/openswan-2.6.19/include
> -I/usr/src/redhat/BUILD/openswan-2.6.19/lib/libcrypto
> -I/usr/src/redhat/BUILD/openswan-2.6.19/linux/include   -DIPSECPOLICY
> -DPLUTO_SENDS_VENDORID -DUSE_KEYRR  -DUSE_LWRES  -DNETKEY_SUPPORT
> -DKERNEL26_HAS_KAME_DUPLICATES -DPFKEY -DX509_PLUTO -DUSE_TWOFISH
> -DUSE_BLOWFISH -DUSE_SERPENT -DUSE_SHA2   -DPLUTO -DKLIPS
> -DHAVE_UDPFROMTO -DPFKEY   -DKLIPS_MAST
> -DBUILDER=\"root at yycgate.yyc.maei.ca\" -DDEBUG -DGCC_LINT -DUSE_AES
> -DUSE_3DES -DIKE_ALG -DKERNEL_ALG -DAGGRESSIVE -DXAUTH -DMODECFG
> -DMODECFG_DNSWINS  -DNAT_TRAVERSAL
> -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT
> -DHAVE_OCF   -DSHARED_SECRETS_FILE=\"/etc/ipsec.secrets\"
> -DPOLICYGROUPSDIR=\"/etc/ipsec.d/policies\"
> -DPERPEERLOGDIR=\"/var/log/pluto/peer\" -g -Wall -W
> -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wcast-qual
> -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes   -c
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c In
> file included from
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:55:
>  
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/ipsec_doi.h:118:
> warning: duplicate `const' 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:1442:1:
> directives may not be used inside a macro argument 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:1440:32:
> unterminated argument list invoking macro "DBG" 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:
> In function `add_connection': 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:1457:
> `DBG' undeclared (first use in this function) 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:1457:
> (Each undeclared identifier is reported only once 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:1457:
> for each function it appears in.) 
> /usr/src/redhat/BUILD/openswan-2.6.19/programs/pluto/connections.c:1457:
> syntax error before "openswan_DBG_log" make[3]: *** [connections.o]
> Error 1 make[3]: Leaving directory
> `/usr/src/redhat/BUILD/openswan-2.6.19/OBJ.linux.i386/programs/pluto'
>  make[2]: *** [programs] Error 1

So, is there a way to overcome this?  Should I be trying to build 2.6.x
at all, or just upgrade to the latest 2.4.x maintenance release?

Thanks for any advice.

Nels Lindquist


More information about the Users mailing list