From owner-freebsd-stable Fri Feb 20 13:08:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA03681 for freebsd-stable-outgoing; Fri, 20 Feb 1998 13:08:13 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from silver.sms.fi (silver.sms.fi [194.111.122.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA03579 for ; Fri, 20 Feb 1998 13:07:54 -0800 (PST) (envelope-from pete@silver.sms.fi) Received: (from pete@localhost) by silver.sms.fi (8.8.8/8.7.3) id XAA20526; Fri, 20 Feb 1998 23:07:21 +0200 (EET) Date: Fri, 20 Feb 1998 23:07:21 +0200 (EET) Message-Id: <199802202107.XAA20526@silver.sms.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Petri Helenius To: Steve Price Cc: freebsd-stable@FreeBSD.ORG Subject: Re: stable make world error In-Reply-To: <34ED1BE4.500F9F30@hiwaay.net> References: <199802200537.HAA18647@silver.sms.fi> <34ED1BE4.500F9F30@hiwaay.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk I re-cvsupped and my world made itself nicely, so I didn't need to patch manually. Thanks anyway! Pete Steve Price writes: > Petri Helenius wrote: > > > > This is from a cvsup about 8 hours ago, which got the Makefile fix > > but seems to suffer from other typo: > > ===> usr.bin/whois > > cc -nostdinc -O -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/usr.bin/whois/whois.c > > /usr/src/usr.bin/whois/whois.c: In function `main': > > /usr/src/usr.bin/whois/whois.c:94: `optarg' undeclared (first use this function) > > /usr/src/usr.bin/whois/whois.c:94: (Each undeclared identifier is reported only once > > /usr/src/usr.bin/whois/whois.c:94: for each function it appears in.) > > /usr/src/usr.bin/whois/whois.c:106: `optind' undeclared (first use this function) > > *** Error code 1 > > > > Stop. > > *** Error code 1 > > Can you try the following patch? Please do a complete 'make world' > and let me know the results. > > Thanks, Steve > > Index: stdlib.h > =================================================================== > RCS file: /u/FreeBSD/cvs/src/include/stdlib.h,v > retrieving revision 1.6 > diff -u -r1.6 stdlib.h > --- stdlib.h 1996/09/14 02:57:05 1.6 > +++ stdlib.h 1998/02/20 05:57:45 > @@ -146,13 +146,6 @@ > char *devname __P((int, int)); > int getloadavg __P((double [], int)); > > -extern char *optarg; /* getopt(3) external variables */ > -extern int opterr, optind, optopt; > -int getopt __P((int, char * const *, const char *)); > - > -extern char *suboptarg; /* getsubopt(3) external variable */ > -int getsubopt __P((char **, char * const *, char **)); > - > char *group_from_gid __P((unsigned long, int)); > int heapsort __P((void *, size_t, size_t, > int (*)(const void *, const void *))); > Index: unistd.h > =================================================================== > RCS file: /u/FreeBSD/cvs/src/include/unistd.h,v > retrieving revision 1.9.2.3 > diff -u -r1.9.2.3 unistd.h > --- unistd.h 1997/09/03 06:37:54 1.9.2.3 > +++ unistd.h 1998/02/20 05:58:48 > @@ -98,6 +98,10 @@ > int unlink __P((const char *)); > ssize_t write __P((int, const void *, size_t)); > > +extern char *optarg; /* getopt(3) external variables */ > +extern int optind, opterr, optopt; > +int getopt __P((int, char * const [], const char *)); > + > #ifndef _POSIX_SOURCE > #ifdef __STDC__ > struct timeval; /* select(2) */ > @@ -183,6 +187,9 @@ > void usleep __P((unsigned int)); > void *valloc __P((size_t)); /* obsoleted by malloc() */ > pid_t vfork __P((void)); > + > +extern char *suboptarg; /* getsubopt(3) external variable */ > +int getsubopt __P((char **, char * const *, char **)); > #endif /* !_POSIX_SOURCE */ > __END_DECLS > > > > Pete > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message