From owner-freebsd-stable Thu Feb 19 22:00:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA21362 for freebsd-stable-outgoing; Thu, 19 Feb 1998 22:00:10 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA21354 for ; Thu, 19 Feb 1998 22:00:03 -0800 (PST) (envelope-from sprice@hiwaay.net) Received: from bonsai.hiwaay.net (tnt3-196.HiWAAY.net [208.147.146.196]) by fly.HiWAAY.net (8.8.8/8.8.6) with SMTP id XAA24685; Thu, 19 Feb 1998 23:59:57 -0600 (CST) Message-ID: <34ED1BE4.500F9F30@hiwaay.net> Date: Fri, 20 Feb 1998 00:00:04 -0600 From: Steve Price X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Petri Helenius CC: freebsd-stable@FreeBSD.ORG Subject: Re: stable make world error References: <199802200537.HAA18647@silver.sms.fi> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk 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