Comment 11 for bug 1276027

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

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):

1025 rm CMakeCache.txt
1026 CC=/home/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
1027 make