sys_errlist previous declaration

"Brian E. Seppanen" (seppanen@bresnanlink.net)
Sat, 27 Feb 1999 12:13:45 -0500


I'm trying to compile mgetty1.1.0-Jan20, and I get the following error
when running make.


gcc -O2 -Wall -pipe -DFAX_SPOOL_IN=\"/var/spool/fax/incoming\" \
        -DCONFDIR=\"/usr/local/etc/mgetty+sendfax\" -c mgetty.c
gcc -O2 -Wall -pipe   -c logfile.c -o logfile.o
logfile.c:57: conflicting types for `sys_errlist'
/usr/include/stdio.h:221: previous declaration of `sys_errlist'
make: *** [logfile.o] Error 1       

Indeed my logfile.c has sys_errlist defined as such: 
extern int sys_nerr;
#if !defined(__NetBSD__) && !defined( __FreeBSD__ )
extern char *sys_errlist[];
#endif                       

and /usr/include/stdio.h defines sys_errlist as so:
#ifdef  __USE_BSD
extern int sys_nerr;
extern const char *const sys_errlist[];
#endif
#ifdef  __USE_GNU
extern int _sys_nerr;
extern const char *const _sys_errlist[];
#endif                

Has anyone else had this problem? I'm not proficient in C, so I'm at a
loss as to how to proceed.  Is there an archive of frequently asked
questions on this newsgroup, mailist.

Thanks,

Brian E. Seppanen 	     	/|		Say Ya to da UP, eh!
seppanen@bresnanlink.net       / \     _          Marquette, MI
ICQ # 18912865 		     <    ^X--~ ~\       Powered by Linux
			      ~-+   ;-:.  }     
	                         \/~    ~~