Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 1998 23:07:21 +0200 (EET)
From:      Petri Helenius <pete@sms.fi>
To:        Steve Price <sprice@hiwaay.net>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: stable make world error
Message-ID:  <199802202107.XAA20526@silver.sms.fi>
In-Reply-To: <34ED1BE4.500F9F30@hiwaay.net>
References:  <199802200537.HAA18647@silver.sms.fi> <34ED1BE4.500F9F30@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802202107.XAA20526>