[Openswan Users] KLIPS in kernel >= 2.6.24

Andraz Sraka a at aufbix.org
Mon Jul 21 09:18:45 EDT 2008


re

I am trying to compile new kernel with KLIPS support (I have applied
KLIPS kernel patch and deselect 26sec ipsec stack from kernel) and I am
facing some weird problems.

With openswan 2.4.13 + vanilla kernel 2.6.24.5 I get this kind of
problems ..
  CC      net/ipsec/ipsec_life.o
  CC      net/ipsec/ipsec_proc.o
  CC      net/ipsec/ipsec_tunnel.o
net/ipsec/ipsec_tunnel.c: In function 'ipsec_tunnel_attach':
net/ipsec/ipsec_tunnel.c:1230: error: 'struct net_device' has no member
named 'hard_header'
net/ipsec/ipsec_tunnel.c:1231: error: 'struct net_device' has no member
named 'hard_header'
net/ipsec/ipsec_tunnel.c:1232: error: 'struct net_device' has no member
named 'hard_header'
net/ipsec/ipsec_tunnel.c:1234: error: 'struct net_device' has no member
named 'hard_header'
net/ipsec/ipsec_tunnel.c:1236: error: 'struct net_device' has no member
named 'rebuild_header'
net/ipsec/ipsec_tunnel.c:1237: error: 'struct net_device' has no member
named 'rebuild_header'
net/ipsec/ipsec_tunnel.c:1238: error: 'struct net_device' has no member
named 'rebuild_header'
net/ipsec/ipsec_tunnel.c:1240: error: 'struct net_device' has no member
named 'rebuild_header'
net/ipsec/ipsec_tunnel.c:1256: error: 'struct net_device' has no member
named 'header_cache_update'
net/ipsec/ipsec_tunnel.c:1257: error: 'struct net_device' has no member
named 'header_cache_update'
net/ipsec/ipsec_tunnel.c:1258: error: 'struct net_device' has no member
named 'header_cache_update'
net/ipsec/ipsec_tunnel.c:1260: error: 'struct net_device' has no member
named 'header_cache_update'
net/ipsec/ipsec_tunnel.c: In function 'ipsec_tunnel_init':
net/ipsec/ipsec_tunnel.c:1705: error: 'struct net_device' has no member
named 'hard_header'
net/ipsec/ipsec_tunnel.c:1706: error: 'struct net_device' has no member
named 'rebuild_header'
net/ipsec/ipsec_tunnel.c:1711: error: 'struct net_device' has no member
named 'header_cache_update'
make[3]: *** [net/ipsec/ipsec_tunnel.o] Error 1
make[2]: *** [net/ipsec] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.5'
make: *** [debian/stamp-build-kernel] Error 2


with openswan 2.6.14 and 2.6.15 (same vanilla 2.6.24.5 kernel) different
kind of problems ..

====== making target configure-indep [new prereqs:
stamp-configure-indep]======
====== making stamp-configure because of  ======
====== making target debian/stamp-build-kernel [new prereqs:
sanity_check stamp-kernel-conf]======
This is kernel package version 10.067.
/usr/bin/make    ARCH=i386 \
                             bzImage
make[1]: Entering directory `/usr/src/linux-2.6.24.5'
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
net/built-in.o: In function `ipsec_tunnel_start_xmit':
(.text+0xadfb2): undefined reference to `ipsec_nat_encap'
net/built-in.o: In function `ipsec_mast_start_xmit':
(.text+0xb3921): undefined reference to `ipsec_nat_encap'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.24.5'
make: *** [debian/stamp-build-kernel] Error 2

any suggestions how to fix this and I guess taking a older version of
vanilla kernel is not an option. Thanks!

Regarsds,
 Andraz

-- 
Humppa all the way!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.openswan.org/pipermail/users/attachments/20080721/e7ab0ba4/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3285 bytes
Desc: not available
Url : http://lists.openswan.org/pipermail/users/attachments/20080721/e7ab0ba4/attachment-0001.bin 


More information about the Users mailing list