Bug #44631 Build failure on Mac
Submitted: 3 May 2009 22:46 Modified: 26 May 2010 17:47
Reporter: Hakan Küçükyılmaz Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Falcon storage engine Severity:S1 (Critical)
Version:mysql-6.0-falcon-team OS:MacOS (PPC and Intel)
Assigned to: Kevin Lewis CPU Architecture:Any

[3 May 2009 22:46] Hakan Küçükyılmaz
Description:
Build failure on Mac in latest mysql-6.0-falcon-team

How to repeat:
Failure is:

CycleLock.cpp: In constructor 'CycleLock::CycleLock(Database*)':
CycleLock.cpp:11: error: invalid conversion from '_opaque_pthread_t*' to 'long unsigned int'
CycleLock.cpp:11: error:   initializing argument 1 of 'SyncObject* CycleManager::getSyncObject(long unsigned int)'
CycleLock.cpp: In member function 'void CycleLock::lockCycle()':
CycleLock.cpp:64: error: invalid conversion from '_opaque_pthread_t*' to 'long unsigned int'
CycleLock.cpp:64: error:   initializing argument 1 of 'SyncObject* CycleManager::getSyncObject(long unsigned int)'

See also PB1
[4 May 2009 7:09] John Embretsen
Verified in Pushbuild (1), platform 'powermacg5' -max on push for kevin.lewis@sun.com-20090501182625-aqx8g64oo6xhkvfl (Fri May 1 18:25:14 2009).

Not sure exactly when the bug was introduced, because before this failure Pushbuild has not been running on mac in the falcon-team branch since April 21.
[4 May 2009 14:10] 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/73309

2704 Kevin Lewis	2009-05-04
      Bug#44631 - The recent CycleManager changes used an unsigned long for a THREAD_ID which is typed differently on Linux and MAC.  On MAC, it did not dompile.
      
      So now CycleManager::getSyncObject is called with a Thread *.  and THREAD_ID is typecaste to (int) to get an  array slot.