*BSD News Article 66056


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!howland.reston.ans.net!vixen.cso.uiuc.edu!saluki-news.wham.siu.edu!usenet
From: jimd@dutton2.it.siu.edu (Jim Dutton)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Sys_errlist conflict with Top3-4 compile
Date: 16 Apr 1996 17:07:25 GMT
Organization: Southern Illinois University - Carbondale
Lines: 20
Message-ID: <4l0k4d$mb9@saluki-news.wham.siu.edu>
NNTP-Posting-Host: dutton2.it.siu.edu
X-Newsreader: knews 0.9.5

In trying to compile Top-3.4 under FreeBSD V2.0.5, I get the following
error:

	/usr/bin/gcc -O -c utils.c
	utils.c:326: conflicting types for `sys_errlist'
	/usr/include/stdio.h:244: previous declaration of `sys_errlist'
	### Error code 1


Top's utils.c:326 has:

	extern char *sys_errlist[];

/usr/include/stdio.h:244 has:

	extern __const char *__const sys_errlist[];

Anyone have any suggestions ?  I have tried making changes to the utils.c
declaration, only to encounter other errors.