[Openswan Users] RHEL4 + klips

Morgan Marodin mmarodin at develon.com
Tue Jun 14 10:38:41 CEST 2005


Hi.

When I try "rpmbuild -bb openswan.spec" ... during compiling the script 
enters in a loop with "/usr/bin/make -C /lib/modules/2.6.9-5.0.5.EL/build 
O=/lib/modules/2.6.9-5.0.5.EL/build modules" and then exit.

-------------------------------------------------------
...
...
...
+ FS=/usr/src/redhat/BUILD/openswan-2.3.1
+ mkdir -p BUILD.i386
+ mkdir -p BUILD.i386-smp
+ cd packaging/redhat
+ for smp in -smp '""'
+ /usr/bin/make -C /usr/src/redhat/BUILD/openswan-2.3.1 
MOD26BUILDDIR=/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp 
OPENSWANSRCDIR=/usr/src/redhat/BUILD/openswan-2.3.1 'KLIPSCOMPILE=-O2 -g 
-pipe -m32 -march=i386 -mtune=pentium4 -mno-red-zone -mcmodel=kernel' 
KERNELSRC=/lib/modules/2.6.9-5.0.5.EL/build ARCH=i386 SUBARCH=i386 
MODULE_DEF_INCLUDE=/usr/src/redhat/BUILD/openswan-2.3.1/packaging/redhat/config-i386-smp.h 
module26
make: Entering directory `/usr/src/redhat/BUILD/openswan-2.3.1'
make[1]: Entering directory `/usr/src/redhat/BUILD/openswan-2.3.1'
mkdir -p /usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp
echo ln -s -f /usr/src/redhat/BUILD/openswan-2.3.1/linux/net/ipsec/des/*.S 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp
ln -s -f 
/usr/src/redhat/BUILD/openswan-2.3.1/linux/net/ipsec/des/dx86unix.S 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp
(rm -f /usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/des; mkdir -p 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/des && cd 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/des && ln -s -f 
/usr/src/redhat/BUILD/openswan-2.3.1/linux/net/ipsec/des/* . && ln -s -f 
Makefile.fs2_6 Makefile)
(rm -f /usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/aes; mkdir -p 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/aes && cd 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/aes && ln -s -f 
/usr/src/redhat/BUILD/openswan-2.3.1/linux/net/ipsec/aes/* . && ln -s -f 
Makefile.fs2_6 Makefile)
mkdir -p /usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/aes
cp /usr/src/redhat/BUILD/openswan-2.3.1/packaging/makefiles/module26.make 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/Makefile
echo "# "                        >> 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/Makefile
echo "# Local Variables: "       >> 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/Makefile
echo "# compile-command: \"/usr/bin/make -C 
/usr/src/redhat/BUILD/openswan-2.3.1 ARCH=i386 
KERNELSRC=/lib/modules/2.6.9-5.0.5.EL/build 
MOD26BUILDDIR=/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp 
module26\""         >> 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/Makefile
echo "# End: "       >> 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp/Makefile
ln -s -f /usr/src/redhat/BUILD/openswan-2.3.1/linux/net/ipsec/match*.S 
/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp
make[1]: Leaving directory `/usr/src/redhat/BUILD/openswan-2.3.1'
/usr/bin/make -C 
/lib/modules/2.6.9-5.0.5.EL/build 
BUILDDIR=/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp 
SUBDIRS=/usr/src/redhat/BUILD/openswan-2.3.1/BUILD.i386-smp 
MODULE_DEF_INCLUDE=/usr/src/redhat/BUILD/openswan-2.3.1/packaging/redhat/config-i386-smp.h 
ARCH=i386 modules
make[1]: Entering directory `/lib/modules/2.6.9-5.0.5.EL/build'
/usr/bin/make -C /lib/modules/2.6.9-5.0.5.EL/build 
O=/lib/modules/2.6.9-5.0.5.EL/build modules
/usr/bin/make -C /lib/modules/2.6.9-5.0.5.EL/build 
O=/lib/modules/2.6.9-5.0.5.EL/build modules
/usr/bin/make -C /lib/modules/2.6.9-5.0.5.EL/build 
O=/lib/modules/2.6.9-5.0.5.EL/build modules
...
...
...
make[96]: *** [modules] Interrupt
make[95]: *** [modules] Interrupt
make[94]: *** [modules] Interrupt
...
...
...
-------------------------------------------------------

RHEL4 doesn't have kernel-source package, so I recompile the kernel source 
RPM and install it. Then I have do the "make" procedure assigning "build" 
directory to "/lib/modules/2.6.9-5.0.5.EL/"

Any suggestions?
Thanks, Morgan

At 17.37 13/06/2005, Paul Wouters wrote:
>On Mon, 13 Jun 2005, Morgan Marodin wrote:
>
>>Anyone has spec file to compile klips part with RedHat Enterprise 4?
>>The FC3's spec file (from: 
>>http://www.openswan.org/download/binaries/fedora/3/SRPMS/openswan-2.3.1-1.src.rpm) 
>>doesn't work.
>
>What doesn't work? If you show us the errors, we might be able to fix it.
>
>Paul



More information about the Users mailing list