List:General Discussion« Previous MessageNext Message »
From:Sinisa Milivojevic Date:February 20 2001 1:10pm
Subject:Re: Compiler errors
View as plain text  
John Markunas writes:
 > Hi
 > 	Tru64 Compile errors.
 > 
 > 	Running V4.x Tru64 gcc 2.95.2 gnumake 3.x attempting build of
 > 
 > 	mysql 3.23.32 or 3.23.33
 > 
 > 	Getting error
 > 
 > 	sql_string.cc: In Method 'bool string::(double,unsigned int=2)' :
 > 	sql_string.cc:181 Implicit declaration of function 'int snprintf(...)'
 > 
 > 	Some user from this suggested changing snprintf to sprintf. When I look at
 > source
 > code in ../client/sql_string.cc is see a conditional compilation statement
 > 
 > ifdef HAVE_SNPRINTF
 > 
 > 	Can any one ( hopefully a mysql developer ) help me with this ? Or do I
 > indeed
 > change all references to snprintf.
 > 
 > 	I'll bet this problem just manifests itself on Tru64 !!
 > 
 > Thank you very very much
 > 
 > John Markunas
 > Williams College
 > 
 > 


Hi!

Just change config.h and my_config.h to #undef HAVE_SNPRINTF.

Do not change snprintf to sprintf !!


Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team
Thread
Compiler errorsJohn Markunas19 Feb
  • Re: Compiler errorsSinisa Milivojevic20 Feb