Sponsored Content
Special Forums UNIX and Linux Applications Xalan & Xerces issues for Oracle Linux 6.6 & Solarisstudio12.3 C++ compiler for Linux Post 302989973 by agrachirag on Friday 20th of January 2017 06:28:44 AM
Old 01-20-2017
Xalan & Xerces issues for Oracle Linux 6.6 & Solarisstudio12.3 C++ compiler for Linux

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:-

Code:
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 :-
Code:
./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 :-
Code:
./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 :-
Code:
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
t@4079109952 (l@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

Last edited by Scrutinizer; 01-20-2017 at 07:35 AM.. Reason: code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Are Unix & Linux the Same ?

Well i have downloaded some Linux stuff and isos but before i install i really like to know what is the diffirence and i like to install apache webserver , can it be done on Linux ? I am a real Dummy but after some practice i will be a PRO :-) Thanks for all the replies .. (1 Reply)
Discussion started by: zodiac
1 Replies

2. UNIX Desktop Questions & Answers

what is the difference between Unix & linux, what are the advantages & disadvantages

ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies

3. UNIX for Dummies Questions & Answers

Linux & Unix Compatibility

I am looking for a dual XEON or any dual CPU motherboard that can support Linux and Solaris at the same time. Does anyone have any idea? I am now looking at the TYAN S2507T / TYAN S2505T / TYAN S2720, you guys have any clue?:confused: (6 Replies)
Discussion started by: doyho
6 Replies

4. UNIX Desktop Questions & Answers

ATI && XFree86 (Linux)

Anyone who have any ideas how-to make X faster. I have a ATI Rage Mobility P/M AGP 2x card and I wanto get it fast, mostly for movie playback and so. Is there OpenGL and GLX support? regards Esaia (1 Reply)
Discussion started by: Esaia
1 Replies

5. HP-UX

HP-UX & Linux

Hello there! Is Sun Microsystems ready to loose hands on HP-UX in the favor of fast emerging Linux? As HP-UX is very costly both in terms of processor licences and hardware costs. Responses are more than welcome! JAM (4 Replies)
Discussion started by: Jawwad
4 Replies

6. UNIX for Advanced & Expert Users

What is the difference between Unix & linux

:confused: Hi All Can anyone help me in finding the answer of the question mentioned below. What is the difference between Unix & linux ? Thanks in Advance to all CSaha (1 Reply)
Discussion started by: csaha
1 Replies

7. Linux

Help: HP Pavilion dv9999 & Linux

Hi, I have an HP Pavilion dv9999 notebook running Windows Vista 64-bit edition. Now I want to set Linux and make the notebook dual-boot OS system. My questions is which Linux is the best to work with HP Pavilion notebook? Which Linux can support all the hardware devices such as wireless,... (4 Replies)
Discussion started by: aixlover
4 Replies

8. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

9. Shell Programming and Scripting

Linux Platform - NDM Script - && Operator

Hi All, I have a requirement where i need to NDM 3 files from LINUX to Mainframe system & trigger a job in mainframe once the 3 files are transmitted successfully. I am getting an error message in the && operator (the code component where i am checking whether step 1/2/3 are completed). ... (2 Replies)
Discussion started by: dsfreddie
2 Replies

10. Linux

Issues with desktop resolution on Oracle Linux 6.7

Hi All, I have recently installed Oracle Linux 6.7 server on Virtual box 5.1. The installation went smooth and i was able to create a VM on Windows 7 as host.The issue is that the default desktop that i see is not at the default resolution and i am only able to see half of the screen. ... (0 Replies)
Discussion started by: dev.devil.1983
0 Replies
Devel::Refcount(3pm)					User Contributed Perl Documentation				      Devel::Refcount(3pm)

NAME
"Devel::Refcount" - obtain the REFCNT value of a referent SYNOPSIS
use Devel::Refcount qw( refcount ); my $anon = []; print "Anon ARRAY $anon has " . refcount($anon) . " reference "; my $otherref = $anon; print "Anon ARRAY $anon now has " . refcount($anon) . " references "; DESCRIPTION
This module provides a single function which obtains the reference count of the object being pointed to by the passed reference value. FUNCTIONS
$count = refcount($ref) Returns the reference count of the object being pointed to by $ref. COMPARISON WITH SvREFCNT This function differs from "Devel::Peek::SvREFCNT" in that SvREFCNT() gives the reference count of the SV object itself that it is passed, whereas refcount() gives the count of the object being pointed to. This allows it to give the count of any referent (i.e. ARRAY, HASH, CODE, GLOB and Regexp types) as well. Consider the following example program: use Devel::Peek qw( SvREFCNT ); use Devel::Refcount qw( refcount ); sub printcount { my $name = shift; printf "%30s has SvREFCNT=%d, refcount=%d ", $name, SvREFCNT($_[0]), refcount($_[0]); } my $var = []; printcount 'Initially, $var', $var; my $othervar = $var; printcount 'Before CODE ref, $var', $var; printcount '$othervar', $othervar; my $code = sub { undef $var }; printcount 'After CODE ref, $var', $var; printcount '$othervar', $othervar; This produces the output Initially, $var has SvREFCNT=1, refcount=1 Before CODE ref, $var has SvREFCNT=1, refcount=2 $othervar has SvREFCNT=1, refcount=2 After CODE ref, $var has SvREFCNT=2, refcount=2 $othervar has SvREFCNT=1, refcount=2 Here, we see that SvREFCNT() counts the number of references to the SV object passed in as the scalar value - the $var or $othervar respectively, whereas refcount() counts the number of reference values that point to the referent object - the anonymous ARRAY in this case. Before the CODE reference is constructed, both $var and $othervar have SvREFCNT() of 1, as they exist only in the current lexical pad. The anonymous ARRAY has a refcount() of 2, because both $var and $othervar store a reference to it. After the CODE reference is constructed, the $var variable now has an SvREFCNT() of 2, because it also appears in the lexical pad for the new anonymous CODE block. PURE-PERL FALLBACK An XS implementation of this function is provided, and is used by default. If the XS library cannot be loaded, a fallback implementation in pure perl using the "B" module is used instead. This will behave identically, but is much slower. Rate pp xs pp 225985/s -- -66% xs 669570/s 196% -- SEE ALSO
o Test::Refcount - assert reference counts on objects AUTHOR
Paul Evans <leonerd@leonerd.org.uk> perl v5.14.2 2011-11-15 Devel::Refcount(3pm)
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy