[Openswan Users] compile a klips module on centos-5.6
Chris Patch
chrispatch at intrstar.net
Wed Jun 15 11:57:57 EDT 2011
Hello List (and Paul Wouters)
I am trying to get a klips module to compile on centos-5.6 , kernel 2.6.18-238.12.1.el5
I am using openswan-2.4.15.
I run a make programs and a make install and netkey actually works.
I have the correct kernel-devel and a symlink to /usr/src/linux and /usr/src/linux-2.6
When I run make module26 (or make module) >/root/output.txt 2>error.txt , this is the output:
Building module for a 2.6 kernel
make[1]: Entering directory `/usr/local/src/openswan-2.4.15'
make[2]: Entering directory `/usr/local/src/openswan-2.4.15'
make[2]: `/usr/local/src/openswan-2.4.15/modobj26/Makefile' is up to date.
make[2]: Leaving directory `/usr/local/src/openswan-2.4.15'
make -C /usr/src/linux-2.6 BUILDDIR=/usr/local/src/openswan-2.4.15/modobj26 SUBDIRS=/usr/local/src/openswan-2.4.15/modobj26 MODULE_DEF_INCLUDE=/usr/local/src/openswan-2.4.15/packaging/linus/config-all.h MODULE_DEFCONFIG=/usr/local/src/openswan-2.4.15/linux/net/ipsec/defconfig MODULE_EXTRA_INCLUDE= ARCH=i386 modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-238.12.1.el5-i686'
CC [M] /usr/local/src/openswan-2.4.15/modobj26/ipsec_init.o
make[2]: Leaving directory `/usr/src/kernels/2.6.18-238.12.1.el5-i686'
make[1]: Leaving directory `/usr/local/src/openswan-2.4.15'
and this is the error:
In file included from /usr/local/src/openswan-2.4.15/linux/include/openswan/ipsec_param.h:178,
from /usr/local/src/openswan-2.4.15/modobj26/ipsec_init.c:30:
include/linux/ip.h:108: error: expected identifier or '(' before 'const'
include/linux/ip.h:108: error: expected ')' before '->' token
In file included from include/linux/ipv6.h:192,
from include/net/protocol.h:29,
from /usr/local/src/openswan-2.4.15/modobj26/ipsec_init.c:47:
include/linux/tcp.h:168: error: expected identifier or '(' before 'const'
include/linux/tcp.h:168: error: expected ')' before '->' token
In file included from include/linux/ipv6.h:193,
from include/net/protocol.h:29,
from /usr/local/src/openswan-2.4.15/modobj26/ipsec_init.c:47:
include/linux/udp.h:32: error: expected identifier or '(' before 'const'
include/linux/udp.h:32: error: expected ')' before '->' token
make[2]: *** [/usr/local/src/openswan-2.4.15/modobj26/ipsec_init.o] Error 1
make[1]: *** [_module_/usr/local/src/openswan-2.4.15/modobj26] Error 2
make: *** [module26] Error 2
Any thoughts on how to modify the ip.h file or Makefile to fix this ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20110615/0ee2cde0/attachment.html
More information about the Users
mailing list