Subject: Re: kernel on sparc64 fails to link
To: Andrey Petrov <petrov@NetBSD.org>
From: Sean Davis <dive@endersgame.net>
List: port-sparc64
Date: 10/18/2003 17:15:41
--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 18, 2003 at 01:02:44PM -0700, Andrey Petrov wrote:
> On Sat, Oct 18, 2003 at 08:40:01AM -0400, Sean Davis wrote:
> > A kernel on NetBSD/sparc64 (sources as of last night) fails to link wit=
h:
> > ld -n -T ../../../../arch/sparc64/conf/kern.ldscript -Ttext 01000000 -T=
data=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
> >=20
> > 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.
> >=20
>=20
> I don't know original plan for explicit initializing cn_tab,
> in my view removing it is correct. W/r your kernel not working,
> most likely you need a clean rebuild.

I'll try it, but I don't think it will make any difference. I will be
getting a new drive for the machine tonight, so NetBSD will be reinstalled
then. I will give it a shot after the reinstall is complete, since I'll be
replacing the 5400rpm EIDE drive with a 10000rpm Ultra/Wide SCSI, and that
should make things a good bit faster.

-Sean

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

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

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

iD8DBQE/ka18cMEZWGhfx9kRAmEsAKCeR1p2yS6GcECtskUQtvIQWnQkEwCfbtrR
fe8XcZp37uHGuAjnjouySo8=
=xgFX
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--