🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20105

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

#20105
From: Casper H.S. Dik - Network Securi...
Date: Fri, 01 Aug 1997 00:00
26 lines
1700 bytes
eggert@twinsun.com (Paul Eggert) writes:

}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.


But be aware that if you do this and then upgrade to Solaris 2.6,
your program will fail with "ld.so: fatal: __snprintf: symbol not found"


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.870444747@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: <5rr43f$89e$1@shade.twinsun.com>

Show Full Headers
Complete Article Headers
Message-ID: <casper.870444747@uk-usenet.uk.sun.com>
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: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer)
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: 261290991
Supersedes: <cancel.casper.870444747@uk-usenet.uk.sun.com>
Organization: Sun Microsystems, Netherlands
Newsgroups: news.software.nntp