mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
lp:730035 Handlersocket does not load
-fimplicit-termplates must be in CXXFLAGS not in handlersocket_la_CXXFLAGS. otehrwise automake puts it in the command line too early to override global -fno-implicit-templates
This commit is contained in:
@ -2444,7 +2444,7 @@ sub setup_vardir() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (<$bindir/storage/*/.libs/*.so>,<$bindir/plugin/*/.libs/*.so>,<$bindir/sql/.libs/*.so>)
|
for (<$bindir/storage/*/.libs/*.so>,<$bindir/plugin/*/.libs/*.so>,<$bindir/plugin/*/*/.libs/*.so>,<$bindir/sql/.libs/*.so>)
|
||||||
{
|
{
|
||||||
my $pname=basename($_);
|
my $pname=basename($_);
|
||||||
symlink rel2abs($_), "$plugindir/$pname";
|
symlink rel2abs($_), "$plugindir/$pname";
|
||||||
|
13
mysql-test/r/handlersocket.result
Normal file
13
mysql-test/r/handlersocket.result
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
install plugin handlersocket soname 'handlersocket.so';
|
||||||
|
select plugin_name, plugin_version, plugin_status, plugin_type, plugin_library, plugin_library_version, plugin_author, plugin_description plugin_license, plugin_maturity, plugin_auth_version from information_schema.plugins where plugin_name = 'handlersocket';
|
||||||
|
plugin_name handlersocket
|
||||||
|
plugin_version 1.0
|
||||||
|
plugin_status ACTIVE
|
||||||
|
plugin_type DAEMON
|
||||||
|
plugin_library handlersocket.so
|
||||||
|
plugin_library_version 0.0
|
||||||
|
plugin_author higuchi dot akira at dena dot jp
|
||||||
|
plugin_license
|
||||||
|
plugin_maturity Unknown
|
||||||
|
plugin_auth_version Unknown
|
||||||
|
uninstall plugin handlersocket;
|
11
mysql-test/t/handlersocket.test
Normal file
11
mysql-test/t/handlersocket.test
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--source include/have_dynamic_loading.inc
|
||||||
|
--source include/not_windows_embedded.inc
|
||||||
|
|
||||||
|
if (`select length('$HANDLERSOCKET_SO') = 0`) {
|
||||||
|
skip handlersocket plugin is not built;
|
||||||
|
}
|
||||||
|
|
||||||
|
install plugin handlersocket soname 'handlersocket.so';
|
||||||
|
--query_vertical select plugin_name, plugin_version, plugin_status, plugin_type, plugin_library, plugin_library_version, plugin_author, plugin_description plugin_license, plugin_maturity, plugin_auth_version from information_schema.plugins where plugin_name = 'handlersocket'
|
||||||
|
uninstall plugin handlersocket;
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
pkgplugindir = $(PLUGIN_DIR)
|
pkgplugindir = $(PLUGIN_DIR)
|
||||||
|
CXXFLAGS += -fimplicit-templates
|
||||||
noinst_HEADERS = database.hpp hstcpsvr.hpp hstcpsvr_worker.hpp mysql_incl.hpp
|
noinst_HEADERS = database.hpp hstcpsvr.hpp hstcpsvr_worker.hpp mysql_incl.hpp
|
||||||
pkgplugin_LTLIBRARIES = handlersocket.la
|
pkgplugin_LTLIBRARIES = handlersocket.la
|
||||||
handlersocket_la_LDFLAGS = -module ../libhsclient/libhsclient.la
|
handlersocket_la_LDFLAGS = -module ../libhsclient/libhsclient.la
|
||||||
handlersocket_la_CXXFLAGS = $(MYSQL_INC) $(MYSQL_CFLAGS) $(AM_CXXFLAGS) -fimplicit-templates -I$(srcdir)/../libhsclient
|
handlersocket_la_CXXFLAGS = $(MYSQL_INC) $(MYSQL_CFLAGS) $(AM_CXXFLAGS) -I$(srcdir)/../libhsclient
|
||||||
handlersocket_la_SOURCES = database.cpp handlersocket.cpp \
|
handlersocket_la_SOURCES = database.cpp handlersocket.cpp \
|
||||||
hstcpsvr_worker.cpp hstcpsvr.cpp
|
hstcpsvr_worker.cpp hstcpsvr.cpp
|
||||||
|
Reference in New Issue
Block a user