Article View: news.software.nntp
Article #20020Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris
From: Frank 'Scruffy' Miller
Date: Thu, 31 Jul 1997 00:00
Date: Thu, 31 Jul 1997 00:00
53 lines
2463 bytes
2463 bytes
In article <5rprp1$rqi@lyra.csx.cam.ac.uk>, >John Line <newsmaster@ucs.cam.ac.uk> wrote: >>Frank 'Scruffy' Miller <frankm@solaris.cna.tek.com> wrote: >> >>With gcc an Solris 2.5* on 1.5.1sec I used for SNPRINTF_CFLAGS: >> >> -Dsun -D__svr4__ >> >The comments from the Makefile in the newlog package (included in full in >INN 1.6b1/2, but with only the necessary bits extracted for 1.5.1sec) say > ># 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 Was just going by the snprintf distribution in the 1.5.1 release. No reference to the 'Bad_float_h' define. Looks like I need to look at the 1.6 relase when it goes out of beta. >> >>Also, in vfprintf <math.h> is not needed as things are defined in >>the local xstdio.h. So I changed vfprintf.c to only include >><math.h> if it is not a sun: > >What xstdio.h is that? I don't see it either in Sun-supplied form or as a >GCC-invented addition on my Solaris 2.5.1 system! > The 1.5.1 (haven't downloaded 1.6) utilzies a local xstdio.h in the snprintf distribution. >Overall, the snprintf stuff looks like it could have been much more >portable, or at least need less system-specific special-casing. However, >unless/until it is cleaned up, we just have to cope with its idiosyncracies. > > John Line No doubt! I only seem to be able to work on innd at odd hours in the middle of the night. Frank -- ---------------------------------------------------------------- Frank Miller | frankm@master.cna.tek.com Technical Computing Group Leader | "Laugh while you can, Tektronix CNA Division | monkey-boy!!!!"
Technical Details
Message-ID:
<5rqekr$jno@solaris.cna.tek.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-mailReferences:
<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: <5rqekr$jno@solaris.cna.tek.com> Subject: Re: Compile options for gcc with SNPRINTF_CFLAGS for Solaris Date: Thu, 31 Jul 1997 00:00:00 +0000 From: frankm@solaris.cna.tek.com (Frank 'Scruffy' Miller) 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: 261109655 Distribution: inet Organization: Tektronix, Inc., Redmond, OR, USA Newsgroups: news.software.nntp