Subject: kernel on sparc64 fails to link
To: None <,>
From: Sean Davis <>
List: current-users
Date: 10/18/2003 08:40:01
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

A kernel on NetBSD/sparc64 (sources as of last night) fails to link with:
ld -n -T ../../../../arch/sparc64/conf/kern.ldscript -Ttext 01000000 -Tdata=
01800000 -e start -S -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
consinit.o(.data+0x48): multiple definition of `cn_tab'
cons.o(.bss+0x8): first defined here
*** Error code 1

It appears that cn_tab is being declared as NULL in sys/dev/cons.c, and then
declared again as &consdev_prom in sys/arch/sparc64/dev/consinit.c. What
would the proper fix for this be? removing the NULL initializer in cons.c
allows the kernel to link and boot, but the console hangs on login, and
ssh-ing in doesn't work either, so that does not seem to be the correct way
to go. IANAKH, so any help is appreciated.


/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.2 (NetBSD)