From 9772a398af7daef47279de53d75603c219d56b02 Mon Sep 17 00:00:00 2001
From: Adriano dos Santos Fernandes
Date: Sun, 26 Dec 2021 11:35:16 -0300
Subject: [PATCH] Fix MacOS UDR and Legacy_UserManager plugins not working due
to not exported entry point. (#7088)
Add FB_DLL_EXPORT to public headers.
Use default visibility also for Linux/Unix (in addition to MacOS) as
user application can also be compiled with -fvisibility=hidden.
---
doc/Using_OO_API.html | 4 ++--
examples/dbcrypt/CryptKeyHolder.cpp | 2 +-
examples/dbcrypt/DbCrypt.cpp | 2 +-
examples/extauth/ExtAuth.cpp | 8 +-------
examples/interfaces/ifaceExamples.h | 8 --------
examples/replication/fbSampleReplicator.cpp | 9 +--------
src/auth/AuthDbg.cpp | 2 +-
.../SecureRemotePassword/manage/SrpManagement.cpp | 10 +---------
src/auth/SecurityDatabase/LegacyManagement.epp | 2 +-
src/auth/SecurityDatabase/LegacyServer.cpp | 2 +-
src/common/common.h | 6 ------
src/extlib/ib_util.cpp | 8 +++-----
src/include/firebird.h | 7 -------
src/include/firebird/UdrCppEngine.h | 2 +-
src/include/ibase.h | 12 ++++++++++++
src/intl/ld.cpp | 8 ++++----
src/intl/ld.h | 8 --------
src/intl/ld_proto.h | 8 ++++----
src/jrd/jrd.cpp | 2 +-
src/plugins/crypt/chacha/ChaCha.cpp | 2 +-
src/plugins/udr_engine/UdrEngine.cpp | 2 +-
src/remote/client/interface.cpp | 2 +-
src/utilities/ntrace/traceplugin.cpp | 2 +-
src/yvalve/gds.cpp | 4 ++--
src/yvalve/gds_proto.h | 6 ++++--
25 files changed, 45 insertions(+), 83 deletions(-)
diff --git a/doc/Using_OO_API.html b/doc/Using_OO_API.html
index b15ab1adf4..841a4b49d4 100644
--- a/doc/Using_OO_API.html
+++ b/doc/Using_OO_API.html
@@ -1673,7 +1673,7 @@ only for some specific OS you can make this place a bit simpler. In
minimum case the function should register module and all factories in
plugin manager:
extern
-"C" void FB_DLL_EXPORT FB_PLUGIN_ENTRY_POINT(IMaster*
+"C" FB_DLL_EXPORT void FB_PLUGIN_ENTRY_POINT(IMaster*
master)
{
IPluginManager*
@@ -3793,4 +3793,4 @@ release of it.