Subject: Re: More kernel compile questions.
To: None <J.D.Coleman@newcastle.ac.uk>
From: Brad Spencer <brad@anduin.eldar.org>
List: port-sparc
Date: 06/14/1999 23:25:41
   Hmm, configure kernel, `make depend`, `make`, wait ... come back to machine
   with many lines of output and 'Error code 1' at the bottom.  It seems the
   kernel link is a little verbose - almost 6600 lines of output!  I'll
   squirrel it away in case the kernel crashes later (as if ;-).  Anyway, the
   reason for the error was :

     bwtwo.o: In function `_bwtwoattach_sbus':
     bwtwo.o(.text+0x310): undefined reference to `_sbus_establish'
     cgsix_obio.o: In function `_cgsixattach':
     cgsix_obio.o(.text+0x150): undefined reference to `_cgsix_sbus_ca'
     cgsix_obio.o(.text+0x154): undefined reference to `_cgsix_sbus_ca'
     sunos_machdep.o: In function `_sunos_sys_sigreturn':
     sunos_machdep.o(.text+0x14c): undefined reference to `_compat_13_sys_sigreturn'

   I'd forgotten about the framebuffer dependencies on sbus, but presumably
   COMPAT_SUNOS is dependent on COMPAT_13?  Shouldn't this be documented?

   J

   -- 
	     NetBSD - the most widely ported operating system available



Ya, I noticed this also when I tried to compile a SUN4 only kernel without
sbus support for my 4/110 [also ran into the "can't compile out floppy or
audio support", also].  It appears that it is mostly impossible to compile
a sparc kernel without sbus support.  There does not appear to be any sort
of header file or other indicator that particular buss support is desired.
One possibility, I suppose for doing this would be to establish such a
header file when configing a kernel.  Another might be to create a stub
object file that has functions that resolve all such things like the above
and link that in last in the final 'ld' line.



Brad Spencer - brad@anduin.eldar.org   http://anduin.eldar.org
[finger brad@anduin.eldar.org for PGP public key]