[Openswan Users] Instrucctions in how to compile in kernel 2.4.x

Oliver Schulze L. oliver at samera.com.py
Mon May 22 20:19:04 CEST 2006

Hi All,
I'm getting this error now:
make modules
make -C edp2 modules
make[2]: Entering directory 
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory 
make -C ipsec modules
make[2]: Entering directory 
gcc -D__KERNEL__ 
-I/usr/src/redhat/BUILD/kernel-2.4.21/linux-2.4.21/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common  
-Wno-unused -fomit-frame-pointer -pipe -freorder-blocks 
-mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include 
-DIPCOMP_PREFIX -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=ipsec_init  -c -o ipsec_init.o ipsec_init.c
ipsec_init.c: In function `openswan_inet_add_protocol':
ipsec_init.c:162: too few arguments to function 
ipsec_init.c: In function `openswan_inet_del_protocol':
ipsec_init.c:169: too few arguments to function 
make[2]: *** [ipsec_init.o] Error 1
make[2]: Leaving directory 
make[1]: *** [_modsubdir_ipsec] Error 2
make[1]: Leaving directory 
make: *** [_mod_net] Error 2

I have applied the klips patch to the redhat kernel, after doing a:
rpmbuild -bp --target=i586 kernel-2.4.spec

make bzImage works fine, the problem seems to be in the ipsec module.

Many thanks

Oliver Schulze L.
<oliver at samera.com.py>

More information about the Users mailing list