Just a status update. I keep trying with newer code and better match for your options, but still getting the same errors:
[ 89%] Building CXX object sql/CMakeFiles/sql.dir/query_response_time.cc.o
"/home/openxs/bzr2/percona-5.5/include/my_global.h", line 196: Warning (Anachronism): Attempt to redefine __builtin_expect without using #undef.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 136: Error: An integer constant expression is required within the array subscript operator.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 202: Error: An integer constant expression is required within the array subscript operator.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 203: Error: An integer constant expression is required within the array subscript operator.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 161: Error: Formal argument mp of type st_my_pthread_fastmutex_t* in call to my_pthread_fastmutex_lock(st_my_pthread_fastmutex_t*) is being passed const st_my_pthread_fastmutex_t*.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 163: Error: Formal argument __mutex of type pthread_mutex_t* in call to pthread_mutex_unlock(pthread_mutex_t*) is being passed const pthread_mutex_t*.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 168: Error: Formal argument mp of type st_my_pthread_fastmutex_t* in call to my_pthread_fastmutex_lock(st_my_pthread_fastmutex_t*) is being passed const st_my_pthread_fastmutex_t*.
"/home/openxs/bzr2/percona-5.5/sql/query_response_time.cc", line 170: Error: Formal argument __mutex of type pthread_mutex_t* in call to pthread_mutex_unlock(pthread_mutex_t*) is being passed const pthread_mutex_t*.
7 Error(s) and 1 Warning(s) detected.
make[2]: *** [sql/CMakeFiles/sql.dir/query_response_time.cc.o] Error 2
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
[openxs@chief blackhole]$ make
[ 4%] Built target mysqlservices
[ 32%] Built target strings
[ 96%] Built target mysys
[100%] Built target dbug
[100%] Built target comp_err
[100%] Built target GenError
[100%] Building CXX object storage/blackhole/CMakeFiles/blackhole.dir/ha_blackhole.cc.o
"/home/openxs/bzr2/percona-5.5/include/my_global.h", line 196: Warning (Anachronism): Attempt to redefine __builtin_expect without using #undef.
1 Warning(s) detected.
Linking CXX shared module ha_blackhole.so
[100%] Built target blackhole
instead of yours. Here is the way configured cmake (from fc -l):
Just a status update. I keep trying with newer code and better match for your options, but still getting the same errors:
[ 89%] Building CXX object sql/CMakeFiles/ sql.dir/ query_response_ time.cc. o openxs/ bzr2/percona- 5.5/include/ my_global. h", line 196: Warning (Anachronism): Attempt to redefine __builtin_expect without using #undef. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 136: Error: An integer constant expression is required within the array subscript operator. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 202: Error: An integer constant expression is required within the array subscript operator. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 203: Error: An integer constant expression is required within the array subscript operator. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 161: Error: Formal argument mp of type st_my_pthread_ fastmutex_ t* in call to my_pthread_ fastmutex_ lock(st_ my_pthread_ fastmutex_ t*) is being passed const st_my_pthread_ fastmutex_ t*. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 163: Error: Formal argument __mutex of type pthread_mutex_t* in call to pthread_ mutex_unlock( pthread_ mutex_t* ) is being passed const pthread_mutex_t*. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 168: Error: Formal argument mp of type st_my_pthread_ fastmutex_ t* in call to my_pthread_ fastmutex_ lock(st_ my_pthread_ fastmutex_ t*) is being passed const st_my_pthread_ fastmutex_ t*. openxs/ bzr2/percona- 5.5/sql/ query_response_ time.cc" , line 170: Error: Formal argument __mutex of type pthread_mutex_t* in call to pthread_ mutex_unlock( pthread_ mutex_t* ) is being passed const pthread_mutex_t*. /sql.dir/ query_response_ time.cc. o] Error 2 /sql.dir/ all] Error 2 blackhole/ CMakeFiles/ blackhole. dir/ha_ blackhole. cc.o openxs/ bzr2/percona- 5.5/include/ my_global. h", line 196: Warning (Anachronism): Attempt to redefine __builtin_expect without using #undef.
"/home/
"/home/
"/home/
"/home/
"/home/
"/home/
"/home/
"/home/
7 Error(s) and 1 Warning(s) detected.
make[2]: *** [sql/CMakeFiles
make[1]: *** [sql/CMakeFiles
make: *** [all] Error 2
[openxs@chief blackhole]$ make
[ 4%] Built target mysqlservices
[ 32%] Built target strings
[ 96%] Built target mysys
[100%] Built target dbug
[100%] Built target comp_err
[100%] Built target GenError
[100%] Building CXX object storage/
"/home/
1 Warning(s) detected.
Linking CXX shared module ha_blackhole.so
[100%] Built target blackhole
instead of yours. Here is the way configured cmake (from fc -l):
1025 rm CMakeCache.txt openxs/ SolarisStudio12 .3-linux- x86-bin/ solarisstudio12 .3/prod/ bin/cc CXX=/home/ openxs/ SolarisStudio12 .3-linux- x86-bin/ solarisstudio12 .3/prod/ bin/CC cmake . -DCOMMUNITY_ BUILD=OFF -DENABLED_ PROFILING= OFF -DENABLE_ DEBUG_SYNC= OFF -DENABLE_DTRACE=OFF -DENABLE_GCOV=OFF -DINSTALL_ LAYOUT= STANDALONE -DCMAKE_ INSTALL_ PREFIX= /home/openxs/ dbs/p5. 5sun -DMYSQL_ MAINTAINER_ MODE=OFF -DWITH_ ARCHIVE_ STORAGE_ ENGINE= OFF -DWITH_ BLACKHOLE_ STORAGE_ ENGINE= OFF -DWITH_DEBUG=OFF -DWITHOUT_ RESPONCE_ TIME_DISTRIBU= ON -DWITH_ASAN=OFF -DWITH_ EMBEDDED_ SERVER= OFF -DWITH_ EXTRA_CHARSETS= all -DWITH_ FEDERATED_ STORAGE_ ENGINE= OFF -DWITH_ INNOBASE_ STORAGE_ ENGINE= ON -DWITH_LIBEDIT=ON -DWITH_LIBWRAP=OFF -DWITH_ PARTITION_ STORAGE_ ENGINE= ON -DWITH_ PERFSCHEMA_ STORAGE_ ENGINE= OFF -DWITH_PIC=OFF -DWITH_READLINE=OFF -DWITH_SSL=no -DWITH_ UNIT_TESTS= OFF -DWITH_VALGRIND=OFF -DWITH_ZLIB=system -DIGNORE_ AIO_CHECK= ON
1026 CC=/home/
1027 make