Subject: Re: 1.5.3 release build fails in sysinst
To: None <hauke@Espresso.Rhein-Neckar.DE>
From: Havard Eidnes <he@netbsd.org>
List: current-users
Date: 03/03/2002 11:04:30
> on the long way towards my first "make release" of the mac68k 1.5 bra=
nch, I =

> encountered:
>
> (cd /usr/src/1.5/src/distrib/mac68k/instkernel/ramdisk/../../../../di=
strib/utils/sysinst/arch/mac68k; make menu_defs.o msg_defs.o main.o ins=
tall.o upgrade.o txtwalk.o run.o factor.o net.o disks.o util.o geom.o l=
abel.o target.o md.o)
> cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arit=
h -Wno-uninitialized -Werror   -I. -I/usr/src/1.5/src/distrib/utils/sys=
inst/arch/mac68k/../.. -I/usr/src/1.5/src/distrib/utils/sysinst/arch/ma=
c68k  -DREL=3D\"1.5.3_ALPHA\" -DMACH=3D\"mac68k\" -nostdinc -idirafter =
/mnt2/1.5/destdir/usr/include -c menu_defs.c
> cc1: warnings being treated as errors
> menu_defs.c: In function `__menu_initerror':
> menu_defs.c:1424: warning: implicit declaration of function `getprogn=
ame'
> menu_defs.c:1424: warning: format argument is not a pointer (arg 3)
> *** Error code 1

This is because you are trying to "cross-compile" from a -current
system.  The netbsd-1-5 distrib/utils/sysinst/Makefile.inc picks up
the currently installed "msgc" and "menuc" programs; menu_defs.c is a
generated file from menus.def.

MENUC and MSGC are conditionally set in the above mentioned
Makefile.inc file, so you should be able to set those variables in the
environment and point them to the versions you compiled and installed
from the netbsd-1-5 branch, and there's a chance you'll get further.

Regards,

- H=E5vard