[Openswan dev] Hacking on KLIPS on 2.6 - a couple build errors

Nate Carlson natecars at natecarlson.com
Wed Jun 23 00:57:50 CEST 2004


Hey all,

Figured I'd refer this to the experts; I'm working on getting Openswan's 
KLIPS to work on 2.6, and running into the following build error:

make -f scripts/Makefile.build 
obj=/autofshome/natecars/tmp/openswan/linux/net/ipsec
  gcc -Wp,-MD,/autofshome/natecars/tmp/openswan/linux/net/ipsec/.ipsec_init.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer  -DIPCOMP_PREFIX -I/autofshome/natecars/tmp/openswan/linux/include -I/home/natecars/build/kernel/boxes/carbon/linux-2.6.7/include/ -DCONFIG_IPSEC_ESP  -DMODULE -DKBUILD_BASENAME=ipsec_init -DKBUILD_MODNAME=ipsec_init -c -o /autofshome/natecars/tmp/openswan/linux/net/ipsec/.tmp_ipsec_init.o /autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c
In file included from /autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c:39:
include/linux/netdevice.h:260: error: redefinition of `struct net_device'
/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c: In function `openswan_inet_add_protocol':
/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c:139: warning: implicit declaration of function `inet_add_protocol'
/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c: In function `openswan_inet_del_protocol':
/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c:150: warning: implicit declaration of function `inet_del_protocol'
/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c: In function `__exittest':
/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.c:317: warning: return from incompatible pointer type
make[1]: *** 
[/autofshome/natecars/tmp/openswan/linux/net/ipsec/ipsec_init.o] Error 1
make: *** [_module_/autofshome/natecars/tmp/openswan/linux/net/ipsec] Error 2
make: Leaving directory `/home/natecars/build/kernel/boxes/carbon/linux-2.6.7'

Anyone have any ideas on how to correct these errors? I'm not sure if the 
warnings are actually fatal or not; but I can't find squat on the 
net_device thing. I'm not figuring out where the heck it's being defined 
in ipsec_init that's conflicting.

------------------------------------------------------------------------
| nate carlson | natecars at natecarlson.com | http://www.natecarlson.com |
|       depriving some poor village of its idiot since 1981            |
------------------------------------------------------------------------


More information about the Dev mailing list