[Openswan Users] Another compilation error
Paul Wouters
paul at xelerance.com
Mon Feb 14 17:56:59 CET 2005
On Mon, 14 Feb 2005, Bgs wrote:
> It seems that just as I had compilation problems with kernel 2.2.x+Openswan1
> I'm having problems with kernel 2.6 and Openswan 2.3:
>
> LD .tmp_vmlinux1
> net/built-in.o(.text+0x84b40): In function `strstr':
> : multiple definition of `strstr'
> arch/i386/lib/lib.a(strstr.o)(.text+0x0): first defined here
> ld: Warning: size of symbol `strstr' changed from 65 in
> arch/i386/lib/lib.a(strstr.o) to 107 in net/built-in.o
> make[1]: *** [.tmp_vmlinux1] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.6.10'
> make[1]: Entering directory `/usr/src/linux-2.6.10'
> CHK include/linux/version.h
> make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
> Building modules, stage 2.
> MODPOST
> make[1]: Leaving directory `/usr/src/linux-2.6.10'
That's strange, since I've compiled openswan-2.3 on many 2.6 kernels.
How are you compiling? Are you patching the kernel, or are you using the
out of tree building setup?
the latter is recommended. On a non-openswan patched linux tree, do:
cd openswan-2.3.x
make KERNEL_SRC=/usr/src/yourlinux-2.6/ module26
(this won't work if you already manually patched that tree)
You you did patch the tree manually, try:
cd /usr/src/yourlinux-2.6
cp .config /tmp
make mrproper
cp /tmp/.config .
make oldconfig
make bzImage modules modules_install
Paul
--
"At best it is a theory, at worst a fantasy" -- Michael Crichton
More information about the Users
mailing list