[Openswan Users] Compile error with Openswan 2.4.8 and CentOS kernel-smp-2.4.21-50
Kevin Clark
kevin.clark at csoft.co.uk
Wed Aug 22 10:36:16 EDT 2007
I'm getting the following error when I try to build a KLIPS module for my
2.4.21-50 kernel:
[root at machine openswan-2.4.8]# make KERNELSRC=/usr/src/linux-2.4.21-50.ELsmp
module
<snip>
cc -include
/usr/local/src/openswan-2.4.8/packaging/linus/config-all.h -O3 -Wall -DIPCOM
P_PREFIX -D__KERNEL__ -I/usr/src/linux-2.4.21-50.ELsmp/include -Wall -Wstric
t-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused
-fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -m
arch=i686 -I/usr/local/src/openswan-2.4.8/linux/include -I/usr/src/linux-2.4
.21-50.ELsmp/include -I -DIPCOMP_PREFIX -DARCH=i386 -DMODVERSIONS -include
/usr/src/linux-2.4.21-50.ELsmp/include/linux/modversions.h -DMODULE -DMODVER
SIONS -include
sr/src/linux-2.4.21-50.ELsmp/include/linux/modversions.h -DKBUILD_BASENAME
=ipsec_proc -c -o ipsec_proc.o
/usr/local/src/openswan-2.4.8/linux/net/ipsec/ipsec_proc.c
/usr/local/src/openswan-2.4.8/linux/net/ipsec/ipsec_proc.c:619: parse error
before "int"
/usr/local/src/openswan-2.4.8/linux/net/ipsec/ipsec_proc.c:619: warning:
type defaults to `int' in declaration of `module_param'
/usr/local/src/openswan-2.4.8/linux/net/ipsec/ipsec_proc.c:619: warning:
function declaration isn't a prototype
/usr/local/src/openswan-2.4.8/linux/net/ipsec/ipsec_proc.c:619: warning:
data definition has no type or storage class
make[2]: *** [ipsec_proc.o] Error 1
make[2]: Leaving directory `/usr/local/src/openswan-2.4.8/modobj'
make[1]: *** [module24] Error 2
make[1]: Leaving directory `/usr/local/src/openswan-2.4.8'
make: *** [module] Error 2
[root at machine openswan-2.4.8]#
Line 619 in linux/net/ipsec/ipsec_proc.c is:
module_param(natt_available, int, 0444);
Compilation is successful if I remove this line. I don't need NAT-T support
so my questions are:
1) Is it safe to do this?
2) If not safe, how can I overcome the problem (-Wno-strict-prototypes
perhaps?)
Thanks,
Kevin
More information about the Users
mailing list