Subject: Re: netbsd-2 release build error
To: Jukka Salmi <j+nbsd@2005.salmi.ch>
From: Mike M. Volokhov <mishka@NetBSD.org>
List: netbsd-help
Date: 12/12/2005 15:52:09
On Thu, 1 Dec 2005 17:23:59 +0100
Jukka Salmi <j+nbsd@2005.salmi.ch> wrote:
> Hi,
>
> Mike M. Volokhov --> netbsd-help (2005-12-01 17:28:25 +0200):
> > On Thu, 1 Dec 2005 17:23:24 +0200 (EET)
> > "Mike M. Volokhov" <mishka@intostroy.com> wrote:
> >
> > > Hello!
> > >
> > > FYI, there is an error while building latest netbsd-2 release. Build
> > > command: ./build.sh -O ../obj -D ../dst -R ../rel -X ../xsrc-2 -x -U release
> > >
> > >
> > > dependall ===> usr.bin/cap_mkdb
> > > /build/netbsd/src-2/usr.bin/cap_mkdb/cap_mkdb.c: In function `db_build':
> > > /build/netbsd/src-2/usr.bin/cap_mkdb/cap_mkdb.c:180: warning: passing arg 2 of `cgetnext' from incompatible pointer type
> > >
> > > *** Failed target: cap_mkdb.o
> > > *** Failed command: /build/netbsd/src-2/../obj-2/tooldir.NetBSD-3.0_RC1-i386/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Werror -nostdinc -isystem /build/netbsd/src-2/../dst-2/usr/include -c /build/netbsd/src-2/usr.bin/cap_mkdb/cap_mkdb.c
> > > *** Error code 1
> >
> > Just wondering, may it be overriden from system (NetBSD/i386 3.0_RC1) includes:
> >
> > buildfm: {17} grep cgetnext /usr/include/stdlib.h
> > int cgetnext(char **, const char * const *);
> > buildfm: {18} grep cgetnext /build/netbsd/src-2/../dst-2/usr/include/stdlib.h
> > int cgetnext __P((char **, char **));
>
> Seems to be PR 32142.
>
100% And it has been fixed today:revision 1.20.4.3
date: 2005/12/02 11:32:19; author: tron; state: Exp; lines: +5 -5
Apply patch (requested by christos in ticket #10182):
PR bin/32142: Fix build problem caused by ticket #5978.
In any case, your reply saved me some extra time that day, so thank
you very much for the reference :-)
--
Mishka.