🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19998

Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris

#19998
From: Casper H.S. Dik - Network Securi...
Date: Thu, 31 Jul 1997 00:00
38 lines
2309 bytes
news@news.cam.ac.uk (USENET news) writes:

># Define BAD_FLOAT if you are unfortunate enough to not use
># gcc and thus don't have a proper float.h
>#
>BAD_FLOAT = -DBad_float_h

>No indication of what is or may be inadequate with non-GCC-fixed headers...
>Assuming the comment is correct (on all platforms...?), you should NOT 
>use -DBad_float_h with GCC (whereas empirically it is essential on Solaris 
>2.5[.1] with Sun's C compiler). [With the proviso that it may be misleading,
>that comment from the original Makefile probably ought to be included in the 
>INN config.data comments...]


Perhaps soemone can tell what's wrong with the float.h shipped with Solaris?
Or perhaps they've just writetn non-portabel code and blame it on someone
else?

BTW, gcc doesn't "fix" float.h, it generates a new one w/ enquire.
And gcc doesn't "fix" include files, it mostly adjusts them to its taste.
We'd be much better served with a gcc that learns to cope with vendor include
files, especially now that most vendors ship more reasonable ones.

(The main problem in the past was how ioctl's were defined and handled
by Reisser CPP vs cccp.  Now it seems that gcc is just quibbling over
whether or not a degree of standard non-conformance is allowed when __STDC__
is defined as 1)

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

Technical Details
Message-ID: <casper.870352835@uk-usenet.uk.sun.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5rnpbu$hgq@solaris.cna.tek.com> <5rold8$rrs@solaris.cna.tek.com> <5rprp1$rqi@lyra.csx.cam.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <casper.870352835@uk-usenet.uk.sun.com>
Subject: Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris
Date: Thu, 31 Jul 1997 00:00:00 +0000
From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer)
References: <5rnpbu$hgq@solaris.cna.tek.com> <5rold8$rrs@solaris.cna.tek.com> <5rprp1$rqi@lyra.csx.cam.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 260948131
Distribution: inet
Supersedes: <cancel.casper.870352835@uk-usenet.uk.sun.com>
Organization: Sun Microsystems, Netherlands
Newsgroups: news.software.nntp