Path: utzoo!utgpu!watserv1!watmath!att!news.cs.indiana.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!snorkelwacker.mit.edu!mit-eddie!uw-beaver!sumax!polari!thebes!camco!news From: news@camco.Celestial.COM (Bill Campbell) Newsgroups: news.software.b Subject: Re: C News vs. Xenix Message-ID: <580@camco.Celestial.COM> Date: 18 Dec 90 03:02:31 GMT References: <1990Dec16.234811.6293@zoo.toronto.edu> Organization: Celestial Software, Mercer Island, WA Lines: 34 In <1990Dec16.234811.6293@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: >As of the latest patch, we're seeing reports that compiling C News under >Xenix leads to peculiar errors of the form: >> warning.c(19) : error C2143: syntax error : missing ';' before 'storage class' >My tentative diagnosis is "your supplier may claim that your is >ANSI-conforming, but it isn't". The code in warning.c is trying to use >the ANSI function strerror(), and something in is fouling up >magnificently. If you hit this, try telling build that (a) you do not have >an ANSI-conforming and (b) you don't have strerror() either. >I have not yet seen enough details to confirm diagnosis or fix. >-- >"The average pointer, statistically, |Henry Spencer at U of Toronto Zoology >points somewhere in X." -Hugh Redelmeier| henry@zoo.toronto.edu utzoo!henry The xenix include file string.h has an extraneous reference to strerror(). I just removed this and fixed that problem. If you are using the most recent version of gcc from robobar there is a script that puts wrappers around all the SCO supplied headers, makes a few changes and puts the new headers in /usr/local/lib/gcc-include which is automatically scanned before /usr/include for library files. I also found some problems with SCO's headers in that they decided to declare several functions as (unsigned chars *) rather than (char *) in their prototypes. This occurred in term.h and tinfo.h. -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software UUCP: ...!thebes!camco!bill 6641 East Mercer Way uunet!camco!bill Mercer Island, WA 98040; (206) 947-5591