Bug #34169 | Compiling failed | ||
---|---|---|---|
Submitted: | 30 Jan 2008 16:59 | Modified: | 12 Mar 2008 9:42 |
Reporter: | Susanne Ebrecht | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0, 5.1, 6.0 | OS: | FreeBSD (AMD 64) |
Assigned to: | Pekka Nousiainen | CPU Architecture: | Any |
[30 Jan 2008 16:59]
Susanne Ebrecht
[30 Jan 2008 17:02]
Susanne Ebrecht
Fehler == Error
[1 Feb 2008 15:10]
Hartmut Holzgraefe
Ndb.cpp: In member function 'void Ndb::printState(const char*, ...)': Ndb.cpp:1420: error: cast from 'pthread*' to 'int' loses precision the problem is: ndbout << " thread=" << (int)pthread_self(); as pthread_self() returns a pthread_t pointer and as the assertion sizeof(int) == sizeof(pointer) does not hold true on all platforms. Replacing the cast to "(int)" with a cast to "(void *)" makes the compiler happy and works fine with cout, so it should probably work just fine with ndbout, too This change would change the output from thread= large_decimal_number to thread= 0xlarge_hex_number but i don't think that we have anything relying on that output format and for humans the 0xHEX format seems to be more easy to mentally parse anyway ...
[2 Feb 2008 9:30]
Jonas Oreland
work-around: dont use gcc 4.3 or dont compile debug an ok fix is to remove code all together
[4 Feb 2008 8:23]
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/commits/41624 ChangeSet@1.2594, 2008-02-04 09:23:56+01:00, pekka@sama.ndb.mysql.com +2 -0 bug#34169 - fix pthread_t abuse
[12 Feb 2008 14:57]
Jon Stephens
Documented in the 5.1.23-ndb-6.3.9 changelog as follows: When configured with NDB support, MySQL failed to compile on 64-bit FreeBSD systems. Left in PP status pending further merges.
[12 Feb 2008 16:07]
Jon Stephens
Also documented for 5.1.23-ndb-6.2.12.
[18 Feb 2008 11:14]
Susanne Ebrecht
Bug #34585 is a duplicate of this bug here. Also it occurs with both: bk tree for 5.0 and bk tree for 5.1
[20 Feb 2008 16:02]
Bugs System
Pushed into 5.0.58
[20 Feb 2008 16:02]
Bugs System
Pushed into 5.1.24-rc
[20 Feb 2008 16:03]
Bugs System
Pushed into 6.0.5-alpha
[2 Mar 2008 9:28]
Jon Stephens
Also documented for 5.0.58, 5.1.24, and 6.0.5; closed.
[3 Mar 2008 21:45]
Jon Stephens
Removed changelog entries for bugfix due to bug being re-opened.
[7 Mar 2008 12:42]
Susanne Ebrecht
It's also at version 6.0 bk tree from 2008-03-07 Ndb.cpp: In member function 'void Ndb::printState(const char*, ...)': Ndb.cpp:1881: error: cast from 'pthread*' to 'int' loses precision I think gcc version is irrelevant here ... I tested with 4.2.3 $ gmake --version GNU Make 3.81
[12 Mar 2008 8:49]
Susanne Ebrecht
Jon, please close this bug again. It works now.
[12 Mar 2008 9:42]
Jon Stephens
Restored changelog entry per discussion with Susanne; closed.