[Openswan dev] 2.6.20dr2 fail on ppc arch with 2.6.27 kernel

Paul Wouters paul at xelerance.com
Sun Dec 28 11:37:49 EST 2008


On Sun, 28 Dec 2008, Gilles Espinasse wrote:

Try using:

export ARCH=powerpc

Paul

> Date: Sun, 28 Dec 2008 12:22:08 +0100
> From: Gilles Espinasse <g.esp at free.fr>
> To:  <Dev at openswan.org>
> Subject: [Openswan dev] 2.6.20dr2 fail on ppc arch with 2.6.27 kernel
> 
> The reason is that there is no more linux-2.6.27/arch/ppc
> Everything is under linux-2.6.27/arch/powerpc
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=917f0af9e5a9ceecf9e72537fabb501254ba321d
> 
> The error is as follow
> cd /usr/src/openswan-* && make KERNELSRC=/usr/src/linux-2.6.27 module
> make[1]: Entering directory `/usr/src/openswan-2.6.20dr2'
> Building module for a 2.6 kernel
> make[2]: Entering directory `/usr/src/openswan-2.6.20dr2'
> make[3]: Entering directory `/usr/src/openswan-2.6.20dr2'
> mkdir -p /usr/src/openswan-2.6.20dr2/modobj26
> echo ln -s -f /usr/src/openswan-2.6.20dr2/linux/net/ipsec/des/*.S
> /usr/src/openswan-2.6.20dr2/modobj26
> ln -s -f /usr/src/openswan-2.6.20dr2/linux/net/ipsec/des/dx86unix.S
> /usr/src/openswan-2.6.20dr2/modobj26
> (rm -f /usr/src/openswan-2.6.20dr2/modobj26/des; mkdir -p
> /usr/src/openswan-2.6.20dr2/modobj26/des && cd
> /usr/src/openswan-2.6.20dr2/modobj26/des && ln -s -f
> /usr/src/openswan-2.6.20dr2/linux/net/ipsec/des/* . && ln -s -f
> Makefile.fs2_6 Makefile)
> (rm -f /usr/src/openswan-2.6.20dr2/modobj26/aes; mkdir -p
> /usr/src/openswan-2.6.20dr2/modobj26/aes && cd
> /usr/src/openswan-2.6.20dr2/modobj26/aes && ln -s -f
> /usr/src/openswan-2.6.20dr2/linux/net/ipsec/aes/* . && ln -s -f
> Makefile.fs2_6 Makefile)
> mkdir -p /usr/src/openswan-2.6.20dr2/modobj26/aes
> cp /usr/src/openswan-2.6.20dr2/packaging/makefiles/module26.make
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# "                        >>
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# Local Variables: "       >>
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# compile-command: \"make -C /usr/src/openswan-2.6.20dr2 ARCH=ppc
> KERNELSRC=/usr/src/linux-2.6.27
> MOD26BUILDDIR=/usr/src/openswan-2.6.20dr2/modobj26 module26\""         >>
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# End: "       >> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> ln -s -f /usr/src/openswan-2.6.20dr2/linux/net/ipsec/match*.S
> /usr/src/openswan-2.6.20dr2/modobj26
> make[3]: Leaving directory `/usr/src/openswan-2.6.20dr2'
> make -C /usr/src/linux-2.6.27  BUILDDIR=/usr/src/openswan-2.6.20dr2/modobj26
> SUBDIRS=/usr/src/openswan-2.6.20dr2/modobj26
> MODULE_DEF_INCLUDE=/usr/src/openswan-2.6.20dr2/packaging/linus/config-all.h
> MODULE_DEFCONFIG=/usr/src/openswan-2.6.20dr2/linux/net/ipsec/defconfig
> MODULE_EXTRA_INCLUDE= ARCH=ppc modules
> make[3]: Entering directory `/usr/src/linux-2.6.27'
> Makefile:518: /usr/src/linux-2.6.27/arch/ppc/Makefile: No such file or
> directory
> make[3]: *** No rule to make target
> `/usr/src/linux-2.6.27/arch/ppc/Makefile'.  Stop.
> make[3]: Leaving directory `/usr/src/linux-2.6.27'
> make[2]: *** [module26] Error 2
> 
> Gilles
> 
> _______________________________________________
> Dev mailing list
> Dev at openswan.org
> http://lists.openswan.org/mailman/listinfo/dev
> 


More information about the Dev mailing list