Discussion:
[jira] [Created] (XALANC-772) Building Xalan & xerces on Oracle Linux 6.6 & Compiler solarisstudio12.3 C++ compiler for Linux
Chirag Agrawal (JIRA)
2017-01-20 10:51:26 UTC
Permalink
Chirag Agrawal created XALANC-772:
-------------------------------------

Summary: Building Xalan & xerces on Oracle Linux 6.6 & Compiler solarisstudio12.3 C++ compiler for Linux
Key: XALANC-772
URL: https://issues.apache.org/jira/browse/XALANC-772
Project: XalanC
Issue Type: Task
Components: XalanC
Affects Versions: 1.10
Environment: Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux
Reporter: Chirag Agrawal
Assignee: Steven J. Hathaway
Priority: Blocker


Hi Team,

I am facing issue while using Xalan & Xerces for my application.
Below are my environment details i am using :-
Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux

Below are the versions of Xalan & Xerces source code used to build the shared object downloaded from Apache site:-

xerces-c-src_2_7_0.tar.gz
Xalan-C_1_10_0-src.tar.gz

Problem Description:-
I had to build 32 bit shared object which can be used in my application. so i tried building xerces with the options for my platform as :-
./runConfigure -plinux -ccc -xCC
i added -m32 falg in makefile and it got compiled and created a shared object.
Then i tried to configure xalan with below command :-
./runConfigure -plinux -ccc -xCC
I tried to compile it but it resulted me in lot of errors. i tried fixing them in order to change compiler and platform defines header files and some make files.
Finally i was able to create 32 bit shared object for xalan.
I then tried to use in my application but it was throwing coredump at function XalanMemMgrs::getDefaultXercesMemMgr().
Below is the code sniplet for the issue :-
XalanMemMgrs::getDefaultXercesMemMgr()
{
XALAN_USING_XERCES(XMLPlatformUtils)

MemoryManagerType* ptr = XMLPlatformUtils::fgMemoryManager;

assert (ptr != 0);

return *ptr;
(dbx:getDefaultXercesMemMgr) display XMLPlatformUtils
dbx: "XMLPlatformUtils" is not defined in the scope `libxalan-c.so.110`XalanMemoryManagement.cpp`xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()`
dbx: see `help scope' for details
(dbx:getDefaultXercesMemMgr) n
***@4079109952 (***@21431) stopped in xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr at line 73 in file "XalanMemoryManagement.cpp"
73 assert (ptr != 0);

The value of ptr is showing as nil.

Need your urgent help in order to understand the changes for my platform requirement and how to sort this memory related issue



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@xalan.apache.org
For additional commands, e-mail: dev-***@xalan.apache.org
Chirag Agrawal (JIRA)
2017-01-25 09:16:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/XALANC-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837414#comment-15837414 ]

Chirag Agrawal commented on XALANC-772:
---------------------------------------

Issue got fixed with the addition of below in my application :-
XMLPlatformUtils::Initialize();
XalanTransformer::initialize();

However previously my application was using xerces 1.6 and xalan 1.3 which is not required by software.
Anyways thanks for your help and support.
Post by Chirag Agrawal (JIRA)
Building Xalan & xerces on Oracle Linux 6.6 & Compiler solarisstudio12.3 C++ compiler for Linux
------------------------------------------------------------------------------------------------
Key: XALANC-772
URL: https://issues.apache.org/jira/browse/XALANC-772
Project: XalanC
Issue Type: Task
Components: XalanC
Affects Versions: 1.10
Environment: Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux
Reporter: Chirag Agrawal
Assignee: Steven J. Hathaway
Priority: Blocker
Labels: build
Hi Team,
I am facing issue while using Xalan & Xerces for my application.
Below are my environment details i am using :-
Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux
Below are the versions of Xalan & Xerces source code used to build the shared object downloaded from Apache site:-
xerces-c-src_2_7_0.tar.gz
Xalan-C_1_10_0-src.tar.gz
Problem Description:-
I had to build 32 bit shared object which can be used in my application. so i tried building xerces with the options for my platform as :-
./runConfigure -plinux -ccc -xCC
i added -m32 falg in makefile and it got compiled and created a shared object.
Then i tried to configure xalan with below command :-
./runConfigure -plinux -ccc -xCC
I tried to compile it but it resulted me in lot of errors. i tried fixing them in order to change compiler and platform defines header files and some make files.
Finally i was able to create 32 bit shared object for xalan.
I then tried to use in my application but it was throwing coredump at function XalanMemMgrs::getDefaultXercesMemMgr().
Below is the code sniplet for the issue :-
XalanMemMgrs::getDefaultXercesMemMgr()
{
XALAN_USING_XERCES(XMLPlatformUtils)
MemoryManagerType* ptr = XMLPlatformUtils::fgMemoryManager;
assert (ptr != 0);
return *ptr;
(dbx:getDefaultXercesMemMgr) display XMLPlatformUtils
dbx: "XMLPlatformUtils" is not defined in the scope `libxalan-c.so.110`XalanMemoryManagement.cpp`xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()`
dbx: see `help scope' for details
(dbx:getDefaultXercesMemMgr) n
73 assert (ptr != 0);
The value of ptr is showing as nil.
Need your urgent help in order to understand the changes for my platform requirement and how to sort this memory related issue
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@xalan.apache.org
For additional commands, e-mail: dev-***@xalan.apache.org
Chirag Agrawal (JIRA)
2017-01-25 09:19:26 UTC
Permalink
[ https://issues.apache.org/jira/browse/XALANC-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chirag Agrawal closed XALANC-772.
---------------------------------
Resolution: Implemented
Fix Version/s: 1.11

Issue got fixed with the addition of below in my application :-
XMLPlatformUtils::Initialize();
XalanTransformer::initialize();
However previously my application was using xerces 1.6 and xalan 1.3 which is not required by software.
Anyways thanks for your help and support.
Post by Chirag Agrawal (JIRA)
Building Xalan & xerces on Oracle Linux 6.6 & Compiler solarisstudio12.3 C++ compiler for Linux
------------------------------------------------------------------------------------------------
Key: XALANC-772
URL: https://issues.apache.org/jira/browse/XALANC-772
Project: XalanC
Issue Type: Task
Components: XalanC
Affects Versions: 1.10
Environment: Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux
Reporter: Chirag Agrawal
Assignee: Steven J. Hathaway
Priority: Blocker
Labels: build
Fix For: 1.11
Hi Team,
I am facing issue while using Xalan & Xerces for my application.
Below are my environment details i am using :-
Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux
Below are the versions of Xalan & Xerces source code used to build the shared object downloaded from Apache site:-
xerces-c-src_2_7_0.tar.gz
Xalan-C_1_10_0-src.tar.gz
Problem Description:-
I had to build 32 bit shared object which can be used in my application. so i tried building xerces with the options for my platform as :-
./runConfigure -plinux -ccc -xCC
i added -m32 falg in makefile and it got compiled and created a shared object.
Then i tried to configure xalan with below command :-
./runConfigure -plinux -ccc -xCC
I tried to compile it but it resulted me in lot of errors. i tried fixing them in order to change compiler and platform defines header files and some make files.
Finally i was able to create 32 bit shared object for xalan.
I then tried to use in my application but it was throwing coredump at function XalanMemMgrs::getDefaultXercesMemMgr().
Below is the code sniplet for the issue :-
XalanMemMgrs::getDefaultXercesMemMgr()
{
XALAN_USING_XERCES(XMLPlatformUtils)
MemoryManagerType* ptr = XMLPlatformUtils::fgMemoryManager;
assert (ptr != 0);
return *ptr;
(dbx:getDefaultXercesMemMgr) display XMLPlatformUtils
dbx: "XMLPlatformUtils" is not defined in the scope `libxalan-c.so.110`XalanMemoryManagement.cpp`xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()`
dbx: see `help scope' for details
(dbx:getDefaultXercesMemMgr) n
73 assert (ptr != 0);
The value of ptr is showing as nil.
Need your urgent help in order to understand the changes for my platform requirement and how to sort this memory related issue
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-***@xalan.apache.org
For additional commands, e-mail: dev-***@xalan.apache.org

Loading...