Re: linux-ipsec: Testing results for freeswan-snap1998Jun29 -----BEGIN PGP SIGNED MESSAGE-----
> 8. Opps, the patch command fails in a somewhat horrid mannor:
>
> # make insert
> PATCH=klips/patches/Documentation.Configure.help ; \
> if egrep -q 'IPSEC' /usr/src/linux/Documentation/Configure.help ; \
> then echo "* $PATCH apparently already installed" ; \
> else patch -p <$PATCH ; \
> fi
> Hmm... Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |--- ./Documentation/Configure.help.ipsec Wed Jun 24 23:07:45 1998
> |+++ ./Documentation/Configure.help Mon Jun 29 08:32:31 1998
> --------------------------
> File to patch:
Indeed...Mea Culpa, fixed and tested.
> This happend on ALL the patched files, and it is a (very minor) cut
> & paste pain to get the right file names in. Still it needs fixing.
Minor? I was annoyed. Fixed.
> Well the compile failed, thusly:
>
> ld -m elf_i386 -Ttext 0x100000 -e stext arch/i386/kernel/head.o init/main.o init/version.o \
> arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o net/network.a \
> fs/filesystems.a \
> drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/scsi/scsi.a drivers/pci/pci.a \
> /usr/src/linux-2.0.34/arch/i386/lib/lib.a /usr/src/linux-2.0.34/lib/lib.a /usr/src/linux-2.0.34/arch/i386/lib/lib.a -o vmlinux
> net/network.a(ipsec.o)(.data+0x524): multiple definition of `ah_protocol'
> net/network.a(ipv4.o)(.data+0x94): first defined here
> net/network.a(ipsec.o)(.data+0x540): multiple definition of `esp_protocol'
> net/network.a(ipv4.o)(.data+0x7c): first defined here
> make: *** [vmlinux] Error 1
>
> Now that is a showstopper, at least in general. Let me go back and
> try this as a module (the last attempt was static).
Right...again, my mistake. Fixed. I got caught when it recompiled
because it did not delete the objects when I did 'make dep clean zImage'.
A manual object deletion fixed that. When this stuff is in the kernel
tree (rather than being a symlink) this problem will go away.
> Next bug is that I can't get menuconfig to let me set IPSEC as a
> Module, sig. Let me do it by hand and see what happens. WRONG! Very
> cool, the config program noticed that I had turned off module support
> and so would not let me set IPSEC to M! Very cool.
Hmmm, just noticed this! Nifty.
> So here is the failure mode for IPSEC as a module:
>
> ld -m elf_i386 -Ttext 0x100000 -e stext arch/i386/kernel/head.o init/main.o init/version.o \
> arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o net/network.a \
> fs/filesystems.a \
> drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/scsi/scsi.a drivers/pci/pci.a \
> /usr/src/linux-2.0.34/arch/i386/lib/lib.a /usr/src/linux-2.0.34/lib/lib.a /usr/src/linux-2.0.34/arch/i386/lib/lib.a -o vmlinux
> net/network.a(ipv4.o)(.data+0x7c): undefined reference to `esp_rcv'
> net/network.a(ipv4.o)(.data+0x94): undefined reference to `ah_rcv'
> make: *** [vmlinux] Error 1
I suspect what happened here is that you did not do a 'make dep clean'
after running 'make *config'. Just a guess. net/network.a should only
have these present if you static link, not module.
Thanks for the report!
> ||ugh Daniel
Slainte Mhath, rgb
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBNZk03t+sBuIhFagtAQE+wgQArjvxxdyPM7YOWIQIRYEHCxlqmI+YTkk3
2qm4wYO+Qgv3IZ7b3n23VXbp/16jWW6xkSgeq548UbYq6ehy6+o0McDONu9qOcBD
2wmGl9Rx3cvzn/Arb0hf1w5Ry5ZWRwJ2xu2ePZzcmQX4MEifDQTDjA4eeozus7k1
BVVPWq0m59k=
=rCgu
-----END PGP SIGNATURE-----
Received on Tue Jun 30 15:24:36 1998
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 12:59:23 EDT
|