Subject: Re: -current build fails because of sys/lib/libsa/stand.h
To: Sam \(earth\) Erde <samerde@eudoramail.com>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: current-users
Date: 06/03/2002 11:10:10
...check the thread titled "exit() undefined in bootloader build" in
tech-kern@. It isn't quite done yet, but in the mean time, change this
line to "exit(0)" even though exit(3) says int.
"
STANDARDS
The exit() function conforms to ANSI X3.159-1989 (``ANSI C'').
"
-lava
On Mon, 3 Jun 2002 @ 3:03pm (+0100), Sam (earth) Erde wrote:
SeE> Since that:
SeE>
SeE> $ diff /usr/src/sys/lib/libsa/stand.h /mnt/sys/lib/libsa/stand.h
SeE> 1c1
SeE> < /* $NetBSD: stand.h,v 1.44 2002/06/01 11:40:31 itojun Exp $ */
SeE> ---
SeE> > /* $NetBSD: stand.h,v 1.43 2001/09/02 07:04:16 tsutsui Exp $ */
SeE> 231d230
SeE> < __dead void exit __P((int)) __attribute__((noreturn));
SeE>
SeE>
SeE> build.sh stops there:
SeE>
SeE> /bulk/snapshot/20020603/tooldir/bin/sparc64--netbsd-gcc -O -ffixed-g4 -D_LP64 -msoft-float -mcmodel=medlow -Wno-main -Werror -D_STANDALONE -DSUN4U -DBOOT_ELF32 -DBOOT_ELF64 -I/usr/src/sys/arch/sparc/stand/ofwboot/../../.. -I/usr/src/sys/arch/sparc/stand/ofwboot/../../../.. -I/usr/src/sys/arch/sparc/stand/ofwboot -I. -DRELOC=0x800000 -DSPARC_BOOT_AOUT -DSPARC_BOOT_ELF -DSPARC_BOOT_UFS -DSPARC_BOOT_NFS -DSTANDALONE -DSUN4U -I. -nostdinc -isystem /bulk/snapshot/20020603/destdir/usr/include -c /usr/src/sys/arch/sparc/stand/ofwboot/boot.c
SeE> /usr/src/sys/arch/sparc/stand/ofwboot/boot.c: In function `main':
SeE> /usr/src/sys/arch/sparc/stand/ofwboot/boot.c:563: too few arguments to function `exit'
SeE> *** Error code 1
SeE>
SeE>
SeE> Perhaps a more pertinent way to ask such questions: what is the recommended moment (UTC time) to perform a cvs update?
SeE>
SeE> ---
SeE> Sam Erde @ Donf
SeE>
SeE>
SeE>
SeE> Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com
SeE>
later - | _BonaFide[] = { coder, author, | /~\ The ASCII Ribbon
Brian A. Seklecki | problem solver, scholar, BOFH, | \ / Campaign Against
| vegetarian, runner, NetBSD | X Exchange, Outlook
| advocate, spiritual machine }; | / \ & HTML Email
"Microsoft Windoze: 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition."