Bug #11544 Use of missing rint() function on QNX
Submitted: 24 Jun 2005 10:05 Modified: 8 Jul 2005 18:11
Reporter: Kent Boortz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.0.8-pre OS:Other (QNX)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[24 Jun 2005 10:05] Kent Boortz
Description:
The function/macro rint() is missing on QNX

% uname -a
QNX buildqnx2 6.2.1 2003/01/18-02:12:22est x86pc x86 

% qcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/data\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../regex -I.  -I../include    -O3 -DDBUG_OFF -O1 -Wl,-E   -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_PRAGMA_IMPLEMENTATION -c -o item_func.o item_func.cc

04126: item_func.cc: In function `double my_double_round(double, int, bool)':
04127: item_func.cc:1943: implicit declaration of function `int rint(...)'

How to repeat:
Compile 5.0 2005-06-24 on QNX 6.2.1
[6 Jul 2005 8:51] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/26703
[6 Jul 2005 9:00] Ramil Kalimullin
fixed in 4.1.13 and 5.0.9
[8 Jul 2005 18:11] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Bugfix documented in 4.1.13 and 5.0.9 change histories; closed bug report.