Subject: Re: alpha installboot
To: Ray Phillips <r.phillips@mailbox.uq.edu.au>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 10/10/2001 21:23:48
On Wed, Oct 10, 2001 at 06:58:16PM +1000, Ray Phillips wrote:
> Dear NetBSD/i386:
> 
> It was possible to compile the NetBSD/alpha installboot program under
> NetBSD/i386 v 1.5 using the following steps:
> 
> # tar zxf syssrc.tgz ./usr/src/sys/arch/alpha
> # cd usr/src/sys/arch/stand/installboot
> # make
> 
> but under 1.5.1 and 1.5.2 make generates this output:
> 
> cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> -Wno-unin
> itialized -Werror
> -I/home/ray/installers/NetBSD/alpha-installboot/1.5.2/1/usr/
> src/sys/arch/alpha/stand/installboot/../.. -c installboot.c
> In file included from installboot.c:66:
> /usr/include/sys/disklabel.h:238: `OLDMAXPARTITIONS' undeclared here (not
> in a f
> unction)
> *** Error code 1
> 
> Stop.
> 
> /usr/include/sys/disklabel.h and /usr/include/machine/disklabel.h (which is
> #include'd in the former) changed after NetBSD 1.5 (as indicated by the
> version numbers on their first lines) so it would seem a bug has crept
> in--or have I made a mistake?

You have to use /usr/include/machine/disklabel.h from a NetBSD/alpha
machine (or use sys/arch/alpha/include/disklabel.h).
Files in /usr/include/machine/disklabel.h are machine dependant,
and the one from i386 won't work for alpha-specific programs.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--