← Back to team overview

percona-discussion team mailing list archive

[Bug 340273] [NEW] Compilation failure on Leopard 10.5.6 + gcc-4.2

 

Public bug reported:

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:

la-ha_innodb.o
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/ha_innodb.cc:41:
../../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?

** Affects: percona-patches
     Importance: Undecided
         Status: New

-- 
Compilation failure on Leopard 10.5.6 + gcc-4.2
https://bugs.launchpad.net/bugs/340273
You received this bug notification because you are a member of Percona
developers, which is the registrant for Percona patches.

Status in Patches for MySQL by Percona: New

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:

la-ha_innodb.o
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/ha_innodb.cc:41:
../../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?



Follow ups

References