Subject: kernel on sparc64 fails to link
To: None <port-sparc64@netbsd.org, current-users@netbsd.org>
From: Sean Davis <dive-nb@endersgame.net>
List: current-users
Date: 10/18/2003 08:40:01
--BOKacYhQ+x31HxR3
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=
=20
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.

-Sean

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

--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)

iD8DBQE/kTShcMEZWGhfx9kRApFEAKC7bSKmnyciPX3n6rwXcjKoe0UaPACfUuzt
gPO6osI15AEeHE+Ybd8GQrg=
=RcY8
-----END PGP SIGNATURE-----

--BOKacYhQ+x31HxR3--