Subject: Re: Kernel Compilation Errors
To: Randy Beaudreault <maccult@pacbell.net>
From: Sung N. Cho <sucho2@vt.edu>
List: port-mac68k
Date: 02/16/2002 19:37:12
Randy Beaudreault wrote:

> Howdy to all here,
>
> I have just hit a snag in compiling a custom kernel.  I'm trying to
> compile a custom kernel and have hit a brick wall.  Compilation stops
> with this as my last lines of output:
>
> cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I.
> -I../../../../arch -I../../../.. -nostdinc -DGPROF -DHZ="0x3c"
> -DM68030 -DLKM -DDIAGNOSTIC -DIPFILTER -DGRF_COMPAT -DMAXUSERS=16
> -D_KERNEL -Dmac68k -pg -c vers.c
> ld -n -Ttext 0 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
> /sys/arch/mac68k/compile/GUARDIAN.PROF/lib/kern/libkern.po: Undefined
> symbol `sr' referenced
> *** Error code 1
>
> What gives?
> --
> Randy Beaudreault
>
> "Spam in a can" - a description of the first astronauts
>
> "Love is like solving the perfect murder.  It's good to be good,
> but better to be lucky" - Det. Frank Pembleton
>  From the show, "Homicide: Life On The Street"

Hi,

First off, are you building a current kernel or simply recompiling
kernel with source that came with your system?

If you were compiling the current kernel, I'll update the tools first
(given that you've made no syntax errors in kernel config file).

to build tools, do this (this assumes that you have whole source
installed):

cd /usr/src
sh build.sh -t     <--- "-t" option only builds the tools, not the whole
distribution

After, tools are built, try recompiling your custom kernel.


Yours sincerely,
Sung N. Cho,
Saturday, Feb. 16, 2002.