Comment 2 for bug 1479372

Revision history for this message
Majeed Abu-Qulbain (deejam) wrote :

@Goetz T. Fischer

Thank you so much for posting these solaris fixes. They allowed me to build some fresh 5.6 binaries on solaris 10u10. I could not get past the errors for the handlersocket plugin or the vla issues in the query_response_time plugin (when building with solaris studio). I ended up just removing them from the plugins folder before the configure, and was able to build and run the rest.

If you have any additional methods to successfully build the query_response_time plugin, that would be a nice to have. I read some about vla and explored the solaris studio 12.3 docs on C++ compiler options but could not figure it out (not enough development knowledge i suppose).

Here is the build command and the errors for the query_response_time:

/opt/SUNWspro/bin/CC -Dquery_response_time_EXPORTS -DHAVE_RWLOCK_T -DHAVE_CONFIG_H -DMYSQL_DYNAMIC_PLUGIN -m64 -I/ciss/compiletools/include -lsocket -KPIC -library=stlport4 -xO3 -g0 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic -library=stlport4 -DDBUG_OFF -KPIC -I/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/include -I/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/sql -I/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/regex -I/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/extra/yassl/include -I/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/extra/yassl/taocrypt/include -I/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/zlib -m64 -I/ciss/compiletools/include -lsocket -noex -o CMakeFiles/query_response_time.dir/query_response_time.cc.o -c /export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/plugin/query_response_time/query_response_time.cc

"/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/plugin/query_response_time/query_response_time.cc", line 150: Error: An integer constant expression is required within the array subscript operator.
"/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/plugin/query_response_time/query_response_time.cc", line 224: Error: An integer constant expression is required within the array subscript operator.
"/export/home/mabuqu/percona_builds/5.6/percona-server-5.6.25-73.1/plugin/query_response_time/query_response_time.cc", line 225: Error: An integer constant expression is required within the array subscript operator.
3 Error(s) detected.