This is an automated email from the ASF dual-hosted git repository.
scantor pushed a commit to branch xerces-3.2
in repository https://gitbox.apache.org/repos/asf/xerces-c.git
The following commit(s) were added to refs/heads/xerces-3.2 by this push:
new 0d3989f XERCESC-2187 / others - DOM tests crashing on unsupported
platforms
0d3989f is described below
commit 0d3989faf03ef09e1c991215e9eb603f38e820cf
Author: Scott Cantor <[email protected]>
AuthorDate: Wed Apr 1 12:37:37 2020 -0400
XERCESC-2187 / others - DOM tests crashing on unsupported platforms
---
doc/build.xml | 6 ++++--
src/xercesc/util/Janitor.hpp | 4 ++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/doc/build.xml b/doc/build.xml
index 3f706b9..aedb4bd 100644
--- a/doc/build.xml
+++ b/doc/build.xml
@@ -572,14 +572,16 @@
<td>AIX PowerPC</td>
<td>IBM XL C++</td>
<td><code>./configure CXX=xlC_r CC=xlc_r</code><br/>
- <code>gmake libxerces_c_la_LDFLAGS=-qmkshrobj</code></td>
+ <code>gmake libxerces_c_la_LDFLAGS=-qmkshrobj</code><br/>
+ (for xlC v11-v13, libxerces_c_la_LDFLAGS is not needed, but
CXXFLAGS=-rtti is needed otherwise RTTI is disabled by default)</td>
</tr>
<tr>
<td>AIX PowerPC-64</td>
<td>IBM XL C++</td>
<td><code>export OBJECT_MODE=64</code><br/>
<code>./configure CXX=xlC_r CC=xlc_r CXXFLAGS=-q64
CFLAGS=-q64</code><br/>
- <code>gmake libxerces_c_la_LDFLAGS=-qmkshrobj</code></td>
+ <code>gmake libxerces_c_la_LDFLAGS=-qmkshrobj</code><br/>
+ (for xlC v11-v13, libxerces_c_la_LDFLAGS is not needed, but
CXXFLAGS="-q64 -rtti" is needed otherwise RTTI is disabled by default)</td>
</tr>
<tr>
<td>HP-UX IA-64-32</td>
diff --git a/src/xercesc/util/Janitor.hpp b/src/xercesc/util/Janitor.hpp
index 24ff372..cf06e67 100644
--- a/src/xercesc/util/Janitor.hpp
+++ b/src/xercesc/util/Janitor.hpp
@@ -154,10 +154,10 @@ private :
MFPT fToCall;
};
-
+#if defined(__GNUC__) || (! defined(_AIX) && ! defined(__hpux) && !
defined(__sun))
XERCES_TEMPLATE_EXTERN template class XMLUTIL_EXPORT ArrayJanitor<XMLByte>;
XERCES_TEMPLATE_EXTERN template class XMLUTIL_EXPORT ArrayJanitor<XMLCh>;
-
+#endif
XERCES_CPP_NAMESPACE_END
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]