snprintf for HP_UX
Fri, 9 Oct 1998 11:42:27 -0500
The configure file did not find "snprintf()", and HAVE_SNPRINTF was not defined, but still the compiler was complaining. The code that checks the presence of "snprintf" is actually in Tcl2.cc and not in Tcl.cc. So I included the file Tcl2.cc in Tcl.cc and compiled. It worked for now. I am going to proceed with the compilation and see if it causes any other problems.
From: John Heidemann [SMTP:johnh@ISI.EDU]
Sent: Thursday, October 08, 1998 5:37 PM
To: Sid Takkella
Subject: Re: snprintf for HP_UX
On Thu, 08 Oct 1998 17:13:44 CDT, Sid Takkella wrote:
>I am compiling tclcl under HP-UX B.10.20. Tcl.cc has calls to "snprintf( )". and i cant locate the header file for that function. I am not sure if it is supported under HP_UX. If someone has compiled ns for HP_UX, please help.
configure checks for snprintf in the current version and defines
HAVE_SNPRINTF in the Makefiel if it finds it. Can you determine why
configure got the wrong answer?
The work-around is to remove HAVE_SNPRINTF by hand.