: I've got problems trying to compile my kernel (slackware 1.2.13, and
: have tried 1.3.0 as well)... when it tries to link all the '.o' files
: (or whatever it is it's trying to do at the end) it comes out with a
: plethora of 'undefinted reference to blah_blah_blah' errors, and fails
When I had the same problem at the end of last year, I was
told, in the end, that this was a "pretty well-known problem"
that somehow hadn't yet made its way into the kernel FAQ.
Your problem is probably that you are using a GCC that defaults
to ELF format. You need to tell it to be nice and link things
using a.out libraries instead, at the final putting-together
stage. Add these lines to the beginning of your
/usr/src/linux/arch/i386/Makefile:
AS=/usr/i486-linuxaout/bin/as
LD=/usr/i486-linuxaout/bin/ld -m i386linux
CC=gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include
With these incantations in place, the thing should compile
okay, without any changes to the source itself.
I know how frustrated you must feel. This information (assuming
that this solves your problem) is the sort of thing one should
not have to dig for. Hope all goes smoothly for you now.
--
Tel: (0171)323-6351 () WWW: http://rumple.soas.ac.uk/~fbennett/