Re: Trying to compile 1.2.13

Tony Nugent (tonyn@sctnugen.ppp.gu.edu.au)
Thu, 15 Feb 1996 08:36:00 +1000


David A Davidson <davidson@ophelia.waterloo.net> wrote on Tue, 13 Feb 1996:

> Hello, I am at the current development patch level for the kernel. However at
> work I am trying to rebuild a kernel for v1.2.13. Everything seems to compile
> fine until it gets to the stage of building vmlinux. I get the following errors.
...
> ld: warning: cannot find entry symbol _start; defaulting to 000fffe0
> arch/i386/kernel/head.o(.text+0x18): undefined reference to `__edata'
> arch/i386/kernel/head.o(.text+0x1d): undefined reference to `__end'
> ...
> arch/i386/kernel/kernel.o(.text+0x41): undefined reference to `swapper_pg_dir'
> ...
> floppy.o(.text+0x2b56): undefined reference to `floppy_track_buffer'
> floppy.o(.text+0x3500): more undefined references to `floppy_track_buffer' follow
> make: *** [vmlinux] Error 1
> ===============================================================================
> I have not been able to determine what the problem is. I think it might be
> my version of binutils. Does anyone have any ideas on what is causing these
> problems.

You are trying to compile the 1.2.13 kernel as ELF. It won't work.
You need to apply a patch to it:

tsx-11.mit.edu
/pub/linux/distributions/slackware/source/kernel-source/v1.2/
linuxelf-1.2.13.diff.gz

You'll get a couple of warnings when you compile it after this, but
the result is quite stable.

What amazes me is that appears that Slackware maintains the ELF patch
for the 1.2.13 kernel. (!!!)

We need a 1.2.14 kernel. This is only one reason why. There are
people like myself who end up applying a collection of patches to it
if we want to compile it fresh.

There's a couple of us gathering together all the possible patches to
1.2.13, including some essential bug fixes and other optional things
like the kswap patch (and how to use it in an ELF kernel).

More on this in another post.

Meanwhile, if anyone has patches that they use for 1.2.13 and would
like to put them into a collection that will be made generally
available on a web site, then email me at tony@sctnugen.ppp.gu.edu.au
(or else the message will get lost in list email at this account).

Cheers
Tony
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
T.Nugent@sct.gu.edu.au tonyn@sctnugen.ppp.gu.edu.au
Brisbane Queensland Australia
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
God used beautiful mathematics in creating the world.
- Paul Dirac