[Openswan Users] 2.6.24rc3 KLIPS Module compilation problem

Sven Schiwek ml-openswan at svenux.de
Wed Nov 18 00:24:51 EST 2009


Hi,

I want to compile the KLIPS Module on Debian Linux (K 2.6.30.9) but the
compile process terminated with an error.

Is this a Kernel problem (not compatible?), or an Openswan problem?

Sven



$ make module
Building module for a 2.6 kernel
make[1]: Entering directory
`/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3'
make[2]: Entering directory
`/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3'
mkdir -p /data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
echo ln -s -f
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/des/*.S
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
ln -s -f
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/des/dx86unix.S
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
(rm -f /data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/des;
mkdir -p
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/des && cd
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/des && ln
-s -f
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/des/*
. && ln -s -f Makefile.fs2_6 Makefile)
(rm -f /data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/aes;
mkdir -p
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/aes && cd
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/aes && ln
-s -f
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/aes/*
. && ln -s -f Makefile.fs2_6 Makefile)
mkdir -p /data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/aes
cp
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/packaging/makefiles/module26.make
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/Makefile
echo "# "                        >>
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/Makefile
echo "# Local Variables: "       >>
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/Makefile
echo "# compile-command: \"make -C
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3 ARCH=x86_64
KERNELSRC=/usr/src/linux-2.6
MOD26BUILDDIR=/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
module26\""         >>
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/Makefile
echo "# End: "       >>
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/Makefile
ln -s -f
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/match*.S
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
make[2]: Leaving directory
`/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3'
make -C /usr/src/linux-2.6
BUILDDIR=/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
SUBDIRS=/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26
MODULE_DEF_INCLUDE=/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/packaging/linus/config-all.h
MODULE_DEFCONFIG=/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/defconfig
 MODULE_EXTRA_INCLUDE= ARCH=x86_64 V= modules
make[2]: Entering directory
`/data/pub/LinuxSoftware/LinuxKernel/linux-2.6.30.9'
ln -s -f
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/net/ipsec/ipsec_init.c
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/ipsec_init.c
  CC [M]
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/ipsec_init.o
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/ipsec_init.c:25:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or
directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/ipsec_init.c:25:
include/linux/mmzone.h:290: error: ‘MAX_NR_ZONES’ undeclared here (not
in a function)
In file included from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:29,
                 from include/linux/ip.h:108,
                 from
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/include/openswan/ipsec_kversion.h:256,
                 from
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/linux/include/openswan/ipsec_param.h:33,
                 from
/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/ipsec_init.c:28:
include/linux/mm.h:446:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:494:62: warning: "NR_PAGEFLAGS" is not defined
make[3]: ***
[/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26/ipsec_init.o]
Error 1
make[2]: ***
[_module_/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3/modobj26]
Error 2
make[2]: Leaving directory
`/data/pub/LinuxSoftware/LinuxKernel/linux-2.6.30.9'
make[1]: *** [module26] Error 2
make[1]: Leaving directory
`/data/pub/LinuxSoftware/Openswan/openswan-2.6.24rc3'
make: *** [module] Error 2


More information about the Users mailing list