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.