[Openswan Users] Another compilation error

Bgs bgs at bgs.hu
Tue Feb 15 14:20:28 CET 2005


  Hi,

I tried compiling OpenSWAN as modules and it compiled like a charm. 
Compiling it into the kernel still doesn't work though. Strange problem...

Bye
Bgs


Paul Wouters wrote:
> 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


More information about the Users mailing list