Compilation failure on Leopard 10.5.6 + gcc-4.2

Bug #340273 reported by Jiang Hong on 2009-03-10
Affects Status Importance Assigned to Milestone
Percona patches

Bug Description

I don't know whether it is an innodb problem or xtradb's. I just switched from mysql-5.0 branch.

mysql-5.1.31-xtradb3 failed to compile in Leopard 10.5.6 + gcc-4.2:

In file included from ../../include/../storage/innobase/include/sync0rw.h:528,
               from ../../include/../storage/innobase/include/dict0mem.h:23,
               from ../../include/../storage/innobase/include/dict0dict.h:14,
               from ../../include/../storage/innobase/include/rem0rec.ic:11,
               from ../../include/../storage/innobase/include/rem0rec.h:806,
               from ../../include/../storage/innobase/include/btr0sea.h:14,
               from handler/
../../include/../storage/innobase/include/sync0rw.ic: In function 'void rw_lock_x_unlock_func(rw_lock_t*)':
../../include/../storage/innobase/include/sync0rw.ic:641: error: invalid conversion from 'int' to '_opaque_pthread_t*'

I changed the line to:

- lock->writer_thread = -1;
+ lock->writer_thread = (pthread_t) -1;

and the compilation succeeded.

BTW: gcc-3.4.6 is not supported anymore?

Changed in percona-patches:
importance: Undecided → Low
Stewart Smith (stewart) wrote :


Percona-patches project has been obsoleted by Percona Server. In Percona Server, we don't officially support MacOS X, but we could possibly take patches that fix compilation issues and bugs. At the moment, I've closed this bug as Invalid against Percona-patches, but please feel free to reopen against Percona Server if you still see this problem (although will be a low priority for my team due to OSX not being on our official supported platforms list).

Stewart Smith
Director of Server Development

Changed in percona-patches:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers