This is an automated email from the ASF dual-hosted git repository.

scantor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git


The following commit(s) were added to refs/heads/master by this push:
     new d00c6a5  XERCESC-2187 / others - DOM tests crashing on unsupported 
platforms
d00c6a5 is described below

commit d00c6a50672d57628d6629e2215a6f6c7acd0bbc
Author: Scott Cantor <canto...@osu.edu>
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: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to