[lkml]   [1997]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.1.21 compile problems
I wrote:
> Two problems with 2.1.21:
> 1) there are some typos in init/main.c
> Change line 981 to contain:
> int error, i, pid;
> instead of
> int errori;
> 2) I still get the following errors on linking:
> ld -m elf_i386 -Ttext 0xC0100000 -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/cdrom/cdrom.a drivers/pci/pci.a \
> /vindaloo/linux/kernel/linux/arch/i386/lib/lib.a
> /vindaloo/linux/kernel/linux/lib/lib.a
> /vindaloo/linux/kernel/linux/arch/i386/lib/lib.a -o vmlinux
> kernel/kernel.o: In function `init_modules':
> kernel/kernel.o(.text+0x3ebd): undefined reference to `__stop___ksymtab'
> kernel/kernel.o(.text+0x3ec2): undefined reference to `__start___ksymtab'
> kernel/kernel.o(.data+0x3614): undefined reference to `__start___ksymtab'
> kernel/kernel.o(.data+0x3628): undefined reference to `__start___ex_table'
> kernel/kernel.o(.data+0x362c): undefined reference to `__stop___ex_table'
> make: *** [vmlinux] Error 1
> This problem has been here since 2.1.19 at least.
> I'm running gcc 2.7.2, ld version 2.7 (with BFD and
> modutils-970104.

A few people responded, suggesting that I had either patched
incorrectly (nope, I had downloaded the entire linux-2.1.21.tar.gz
file), or that perhaps I had an old version of ld around (also wrong).
It turns out that I needed libc 5.4.17 to compile Linux 2.1.21!
Unfortunately, I was not able to compile libc 5.4.17 with a libc 5.3.7
system! This is not good.
And the reason why I have to compile libc in the first place? Because I
need NIS support, and the binary distribution of libc does not come
with it compiled in, despite my repeated requests. So, I had to stuff
around, downloading the binary libc, installing it, then I could build
the libc source I had downloaded (and during this time various things
would not work).
Is it really too much to ask that the libc binary distributions be
compiled with NIS support? This has been a consistent pain in the



 \ /
  Last update: 2005-03-22 13:38    [W:0.026 / U:1.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site