LP #1477885: handlersocket/database.cpp compile error

Description

**Reported in Launchpad by Goetz T. Fischer last update 30-03-2016 11:06:01

5.6.25 with tokudb, solaris 11.2, x86, sunpro 5.12

[ 87%] Building CXX object plugin/HandlerSocket-Plugin-for-MySQL/CMakeFiles/handlersocket.dir/handlersocket/database.cpp.o
cd /build/obj/plugin/HandlerSocket-Plugin-for-MySQL && /opt/solarisstudio12.3/bin/CC -Dhandlersocket_EXPORTS -DHAVE_RWLOCK_T -DDBUG_OFF -DHAVE_CONFIG_H -DPIC -DMYSQL_DYNAMIC_PLUGIN -fast -xchip=core2 -m64 -features=extensions -features=no%extinl -noex -features=no%rtti -xinline=%auto -library=sunperf -library=stlport4 -KPIC -I/build/obj/include -I/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/libhsclient -I/build/percona-server-5.6.25-73.1/include -I/build/percona-server-5.6.25-73.1/sql -I/build/percona-server-5.6.25-73.1/regex -fno-rtti -fno-exceptions -fPIC -o CMakeFiles/handlersocket.dir/handlersocket/database.cpp.o -c /build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/database.cpp
CC: Warning: Option -fno-rtti passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fno-exceptions passed to ld, if ld is invoked, ignored otherwise
Unexpected flag 'no%rtti' for 'features'.
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/database.hpp", line 75: Warning: Identifier expected instead of "}".
"/opt/solarisstudio12.3/prod/include/CC/stlport4/stl/auto_ptr.h", line 75: Error: Could not find a match for std::ptr_base::_set(volatile dena::database_i*) needed in std::auto_ptr<volatile dena::database_i>::auto_ptr(volatile dena::database_i*).
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/database.cpp", line 218: Where: While instantiating "std::auto_ptr<volatile dena::database_i>::auto_ptr(volatile dena::database_i*)".
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/database.cpp", line 218: Where: Instantiated from non-template code.
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/database.cpp", line 1156: Warning: Identifier expected instead of "}".
1 Error(s) and 2 Warning(s) detected.

Environment

None

Smart Checklist

Activity

Show:

lpjirasync January 24, 2018 at 8:24 AM

**Comment from Launchpad by: Laurynas Biveinis on: 19-08-2015 04:46:44

Sveta, can you copy this report to upstream at https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL ?

lpjirasync January 24, 2018 at 8:24 AM

**Comment from Launchpad by: Sveta Smirnova on: 18-08-2015 21:53:32

I was able to repeat error from the initial description it with Percona Server 5.6.25-73.1 without TokuDB after implementing fixes, suggested in bug #1479372

lpjirasync January 24, 2018 at 8:24 AM

**Comment from Launchpad by: Goetz T. Fischer on: 30-07-2015 01:54:01

i had a peek ahead and got hit by:

"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/hstcpsvr_worker.cpp", line 764: Error: The function "alloca" must have a prototype.
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/hstcpsvr_worker.cpp", line 764: Error: Using static_cast to convert from int to dena::string_ref* not allowed.
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/hstcpsvr_worker.cpp", line 884: Error: The function "alloca" must have a prototype.
"/build/percona-server-5.6.25-73.1/plugin/HandlerSocket-Plugin-for-MySQL/handlersocket/hstcpsvr_worker.cpp", line 884: Error: Using static_cast to convert from int to dena::string_ref* not allowed.

the first one is just a missing alloca.h (seems they didn't test this with anything but gcc and are not afraid of gcc-isms either) but then we're back to the previous auto_ptr issue again.
this handler socket package seems to be one of those "oh, gcc is not the only compiler?" cases.

i read about it and from what i've seen i don't need it. any way to disable it? because it's quite a pity, everything else seems decent

lpjirasync January 24, 2018 at 8:24 AM

**Comment from Launchpad by: Laurynas Biveinis on: 28-07-2015 09:20:25

This should be reported on https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL as well

lpjirasync January 24, 2018 at 8:24 AM

**Comment from Launchpad by: Goetz T. Fischer on: 27-07-2015 09:02:08

please turn on verbose output so that the actual compile line is visible

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 8:23 AM
Updated January 24, 2018 at 8:24 AM
Resolved January 24, 2018 at 8:24 AM