Bug #78801 redologreader pagsesize redefined on solaris 11
Submitted: 12 Oct 2015 9:32 Modified: 13 Oct 2015 6:46
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.0 OS:Any
Assigned to: CPU Architecture:Any

[12 Oct 2015 9:32] Magnus Blåudd
Description:
/export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/storage/ndb/src/kernel/blocks/dblqh/redoLogReader/records.hpp:38:0: error: "PAGESIZE" redefined [-Werror]
#define PAGESIZE 8192 ^ In file included from /usr/include/sys/t_lock.h:16:0, from /usr/include/sys/stream.h:18, from /usr/include/netinet/in.h:66, from /usr/include/sys/socket.h:29, from /export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/include/my_global.h:54, from /export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/storage/ndb/include/ndb_global.h:28, from /export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/storage/ndb/include/util/BaseString.hpp:21, from /export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/storage/ndb/include/util/NdbOut.hpp:24, from /export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/storage/ndb/src/kernel/blocks/dblqh/redoLogReader/records.hpp:22, from /export/home2/pb2/build/sb_0-16709103-1444399867.5/mysql-cluster-gpl-7.5.0/storage/ndb/src/kernel/blocks/dblqh/redoLogReader/records.cpp:18: /usr/include/sys/param.h:506:0: note: this is the location of the previous definition #define PAGESIZE (_sysconf(_SC_PAGESIZE))

How to repeat:
Problem detected in PB when building 7.5 on Solaris 11

Suggested fix:
Rename the PAGSIZE define or make it into a variable. There are also a bunch of other defines spread out in records.hpp which could be localized only to the respective implementation files.
[13 Oct 2015 6:46] Jon Stephens
Fixed in NDB 7.5.0. This issue does not appear in a release, so no changelog entry is needed.

Closed.