[Openswan Users]

Morgan Marodin mmarodin at develon.com
Wed Jan 12 16:07:18 CET 2005


Hi.

Ok. There's no way to build the module as a 2.4 kernel (as my previous 
openswan-2.2.0 packages)?
If I try to do this I see this error:
-----------------------------------------------------------------------------------------------------
+ FS=/home/mork/rpm/BUILD/openswan-2.3.0
+ /usr/bin/make module
mkdir -p /home/mork/rpm/BUILD/openswan-2.3.0/modobj
cp /home/mork/rpm/BUILD/openswan-2.3.0/packaging/makefiles/module.make 
/home/mork/rpm/BUILD/openswan-2.3.0/modobj/Makefile
echo "# "                        >> 
/home/mork/rpm/BUILD/openswan-2.3.0/modobj/Makefile
echo "# Local Variables: "       >> 
/home/mork/rpm/BUILD/openswan-2.3.0/modobj/Makefile
echo "# compile-command: \"/usr/bin/make 
OPENSWANSRCDIR=/home/mork/rpm/BUILD/openswan-2.3.0 ARCH=i386 
TOPDIR=/usr/src/linux-2.4 KLIPSMODULE=true -f 
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/defconfig 
MODULE_DEF_INCLUDE=/home/mork/rpm/BUILD/openswan-2.3.0/packaging/linus/config-all.h 
-f Makefile ipsec.o\""         >> 
/home/mork/rpm/BUILD/openswan-2.3.0/modobj/Makefile
echo "# End: "       >> /home/mork/rpm/BUILD/openswan-2.3.0/modobj/Makefile
/usr/bin/make -C 
/home/mork/rpm/BUILD/openswan-2.3.0/modobj 
OPENSWANSRCDIR=/home/mork/rpm/BUILD/openswan-2.3.0 ARCH=i386 
KLIPSMODULE=true -f 
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/defconfig 
MODULE_DEF_INCLUDE=/home/mork/rpm/BUILD/openswan-2.3.0/packaging/linus/config-all.h 
TOPDIR=/usr/src/linux-2.4 -f Makefile ipsec.o
/usr/src/linux-2.4/scripts/pathdown.sh: line 4: TOPDIR: parameter null or 
not set
make[1]: Entering directory `/home/mork/rpm/BUILD/openswan-2.3.0/modobj'
cc  -include 
/home/mork/rpm/BUILD/openswan-2.3.0/packaging/linus/config-all.h -O3 -Wall 
-DIPCOMP_PREFIX -D__KERNEL__ -I/usr/src/linux-2.4.21-27.0.1.EL/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=i686 
-I/home/mork/rpm/BUILD/openswan-2.3.0/linux/include 
-I/usr/src/linux-2.4/include  -I -DIPCOMP_PREFIX -DARCH=i386  -DMODVERSIONS 
-include /usr/src/linux-2.4/include/linux/modversions.h -DMODULE 
-DMODVERSIONS -include 
/usr/src/linux-2.4.21-27.0.1.EL/include/linux/modversions.h 
-DKBUILD_BASENAME=ipsec_init  -c -o ipsec_init.o 
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/ipsec_init.c
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/ipsec_init.c: In 
function `openswan_inet_add_protocol':
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/ipsec_init.c:154: too 
few arguments to function `inet_add_protocol_R712ef7bc'
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/ipsec_init.c: In 
function `openswan_inet_del_protocol':
/home/mork/rpm/BUILD/openswan-2.3.0/linux/net/ipsec/ipsec_init.c:161: too 
few arguments to function `inet_del_protocol_Rbb6fa440'
make[1]: *** [ipsec_init.o] Error 1
make[1]: Leaving directory `/home/mork/rpm/BUILD/openswan-2.3.0/modobj'
make: *** [module] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.54869 (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.54869 (%build)
-----------------------------------------------------------------------------------------------------

Bye, Morgan

At 15.48 12/01/2005, you wrote:
>On Wed, 12 Jan 2005, Morgan Marodin wrote:
>
>>I used without problem Red Hat Enterprise Linux 3 with Openswan 2.2.0 
>>with ipsec module (ipsec.o) for each kernel (now 2.4.21-27.0.1.EL).
>>I built rpm packages with a modified freeswan.spec to compile Openswan 
>>also with the module.
>
>Please see openswan-2/packaging/redhat/ for spec files. They have been 
>updated.
>
>>But now with the new version, 2.3.0, when I try to build the package it 
>>return an error:
>
>Because 2.3.0 supports KLIPS for 2.6, a mechanism to seperate between 2.4
>and 2.6 kernels has been introduced using the define NET_26. Since the RHEL
>are hybrid 2.4/2.6 kernels, KLIPS currently does not build on these kernels.
>
>RHEL3 rpms for the userland are available through our web and ftp servers.
>
>Paul



More information about the Users mailing list