*BSD News Article 90874


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!newsfeeds.sol.net!uwm.edu!chi-news.cic.net!news.indiana.edu!vixen.cso.uiuc.edu!saluki-news.it.siu.edu!usenet
From: jimd@dutton4.it.siu.edu (Jim Dutton)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: __dead2/__pure2 in stdlib.h causes parse error
Date: 12 Mar 1997 22:44:41 GMT
Organization: Southern Illinois University - Carbondale
Lines: 19
Message-ID: <5g7bkp$3fe@saluki-news.it.siu.edu>
NNTP-Posting-Host: dutton4.it.siu.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36926

Whilst trying to compile db-1.85 (used by Sendmail) under FreeBSD-2.2, I get
the following error messages:

/usr/include/stdlib.h:83: parse error before `__dead2'
/usr/include/stdlib.h:83: warning: data definition has no type or storage class
/usr/include/stdlib.h:84: parse error before `__pure2'
/usr/include/stdlib.h:84: warning: data definition has no type or storage class


Lines 83 and 84 in stdlib.h are:

void     abort __P((void)) __dead2;
int      abs __P((int)) __pure2; 


I believe that I have asked about this problem before, a long time ago, but
can't find any saved references at work (maybe they are at home?), and I can't
find the FAQ. Can somebody please remind me what the cure for this problem is?
Thanks.