Bug #30171 Get error when do compile cluster source code in solaris using gcc
Submitted: 1 Aug 2007 9:01 Modified: 1 Aug 2007 10:31
Reporter: li zhou Email Updates:
Status: Can't repeat Impact on me:
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.1.18 OS:Solaris
Assigned to: CPU Architecture:Any

[1 Aug 2007 9:01] li zhou
Got "integer constant is too large for "long" type" when compile the source code in solaris using gcc compiler.

gcc version 3.4.6.

How to repeat:
1. copy source code in a solaris machine.
2. do "./BUILD/compile-solaris-sparc"
3: get following error

ha_ndbcluster.cc: In member function `int ha_ndbcluster::set_ndb_value(NdbOperation*, Field*, uint, int, bool*)':
ha_ndbcluster.cc:738: error: integer constant is too large for "long" type
make[4]: *** [ha_ndbcluster.o] Error 1

Suggested fix:
Source code should compile success in solaris using gcc.
[1 Aug 2007 10:31] Sveta Smirnova
Thank you for the report.

This bug has been fixed. See also http://mysql.bkbits.net:8080/mysql-5.1/sql/ha_ndbcluster.cc?PAGE=diffs&REV= and http://mysql.bkbits.net:8080/mysql-5.1/?PAGE=cset&REV=1.1810.2852.3

Please upgrade.