🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20055

Re: inn-1.5.1sec2 snprintf confusion on Solaris 2.5, 2.5.1

#20055
From: USENET news
Date: Fri, 01 Aug 1997 00:00
34 lines
2306 bytes
In article <5rr43f$89e$1@shade.twinsun.com>,
Paul Eggert <eggert@twinsun.com> wrote:
>[I've also emailed this to inn-bugs.]
>
>config/config.dist is confused about snprintf on Solaris 2.5 and
>2.5.1.  These hosts have snprintf and vsnprintf, but their names are
>hidden with __ in front of them.  Therefore, on those hosts,
>LIBSNPRINTF should be kept empty and HAVE_SNPRINTF should be kept DO,
>and the value of SNPRINTF_CFLAGS is irrelevant, since the snprintf
>library should not be built.  On the other hand, one should add
>`-Dsnprintf=__snprintf -Dvsnprintf=__vsnprintf' to DEFS so that all
>the other programs link correctly; whether one is using GCC or cc is
>irrelevant as far as these options go.

NO - not unless you also make it clear that they are undocumented, 
unsupported (for customer use) versions of the routines, which will 
*vanish* (they will not exist under those names; thereby breaking INN) in
Solaris 2.6 (to be replaced by offical, available to customers versions). If
people who understand the situation and the risks/consequences wish to use
the undocumented functions, fine.

Adding comments to config.dist encouraging people to do it and then wonder
some time in the future why an operating system upgrade breaks INN (and
blaming James, no doubt) seems like a very bad idea. This applies equally
whichever compiler you're using - I've already mailed James pointing out
the inadvisability of the current 1.5.1sec2 gcc instructions for Solaris 2.

                                John Line
-- 
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk    (alias {newsmaster,news,usenet}@news.cam.ac.uk

Technical Details
Message-ID: <5rshd0$qji@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
References: <5rr43f$89e$1@shade.twinsun.com>

Show Full Headers
Complete Article Headers
Message-ID: <5rshd0$qji@lyra.csx.cam.ac.uk>
Subject: Re: inn-1.5.1sec2 snprintf confusion on Solaris 2.5, 2.5.1
Date: Fri, 01 Aug 1997 00:00:00 +0000
From: news@news.cam.ac.uk (USENET news)
References: <5rr43f$89e$1@shade.twinsun.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
X-Deja-AN: 261290338
Organization: Computing Service, Cambridge University, England
Newsgroups: news.software.nntp