Hi,
If you want to build Xalan-C++ on HP-11 using the -AA option, the easiest
thing to do is to generate the Makefile using runConfigure, then edit it,
replacing "-Aa" with "-AA"
The problem you are seeing with Xerces-C in the class RefVectorOf are a
known problem and have been reported. If you want to continue using
Xerces-C using -AA you will need to modify the source as you have. You do
not need to rebuild Xerces-C again, but you can, if you want to.
Dave
niranjannithyanandam.n.gopinath@
verizon.com To:
"Matthew Hoyt" <[EMAIL PROTECTED]>
cc: [EMAIL
PROTECTED], [EMAIL PROTECTED],
12/10/2003 03:29 PM [EMAIL
PROTECTED], [email protected],
[EMAIL
PROTECTED], "Kasthuri T" <[EMAIL PROTECTED]>, (bcc:
David N
Bertoni/Cambridge/IBM)
Subject: Re:
Xalan 1.6 build issues
Matt,
You are right, that is the reason, we went for building the Xalan 1.6
libraries.
I did the following steps as mentioned in the website.
export XALANCROOT=/hphome/aneeshg/ash/xml-xalan/c
export XERCESCROOT=/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC
ivtxhp9{aneeshg}/hphome/aneeshg/ash/xml-xalan/c/src/xalanc:>
./runConfigure -p hp-11 -c cc -x aCC
This generated a make file.
Then I did the make from
ivtxhp9{aneeshg}/hphome/aneeshg/ash/xml-xalan/c/src/xalanc, it started
building the libraries.
I received this error..
Error 641:
"/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/include/xercesc/util/RefVectorOf.c",
line 139 # Undeclared variable
'fMemoryManager'. A variable with the same name exists in a template
base class, but is not visible according to the Standard
lookup rules (See [temp.dep], 14.6.2(3) in the C++ Standard). You can
make it visible by writing 'this->fMemoryManager'.
fMemoryManager->deallocate(this->fElemList);//delete [] this->fE
Not sure why, so I went in and fixed
//Ninja changing for xalan issue
//fMemoryManager->deallocate(this->fElemList);//delete [] this->fElemList;
this->fMemoryManager->deallocate(this->fElemList);//delete []
this->fElemList;
Add did the make,
PFA my make file also attached.
(See attached file: Makefile)
Matt, I have couple of questions,
a) Can you tell me what all changes should I make in the make to generate
the xalan with -AA options
b) Can you tell me whether/do I need to build xerces also again for this
issue?
c) Why did it ask me to go and fix in RefVectorOf.c?
Also, this is the latest error that I am getting, I editted this makefile
to use..
CCX = /opt/aCC/bin/aCC +DA1.1 -AA
Preparing the directory structure for a build ...
mkdir -p /hphome/aneeshg/ash/xml-xalan/c/obj
mkdir -p /hphome/aneeshg/ash/xml-xalan/c/lib
mkdir -p /hphome/aneeshg/ash/xml-xalan/c/bin
g++ -O -DNDEBUG +DAportable +Z -DHPUX -D_THREAD_SAFE +p -mt -Aa -c
-I/hphome/aneeshg/ash/xml-xalan/c/src
-I/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/src/
-I/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/include/xercesc
-I/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/include/ -o
/hphome/aneeshg/ash/xml-xalan/c/obj/XalanAttr.o
/hphome/aneeshg/ash/xml-xalan/c/src/xalanc/XalanDOM/XalanAttr.cpp
g++: cannot specify -o with -c or -S and multiple compilations
make: *** [/hphome/aneeshg/ash/xml-xalan/c/obj/XalanAttr.o] Error 1
Any pointers on how to proceed on from here would be of great help to us.
Thanks and Regards
NIRANJAN NITHYANANDAM G
Office: 972-507-4522
Pager: 888-480-4235
"Matthew Hoyt"
<[EMAIL PROTECTED] To:
Niranjannithyanandam N. Gopinath/VEND/TX/[EMAIL PROTECTED]
> cc:
[EMAIL PROTECTED], Binokumar C.
Puthenparayil/VEND/PA/[EMAIL PROTECTED], Maheshkumar M.
Rathi/VEND/TX/[EMAIL PROTECTED],
12/10/2003 04:41
[email protected]
PM Subject: Re: Xalan 1.6
build issues
Hi Niranjan,
The Xalan library provided in the HP binary packages was not compiled with
the -AA option. According to HP, you cannot mix modules compiled with
-AA with those that are not
(http://docs.hp.com/hpux/onlinedocs/4310/options.htm#optioncap-AA). So if
you wish to use -AA in your application you must rebuild the Xalan library.
Additionally, are you sure your attempt to build Xalan on your own failed?
The unsatisifed symbols you mentioned when you tried building the library
yourself do not seem to be part of Xalan or Xerces. At what stage did you
get the symbol errors?
-Matt.
niranjannithyanan
[EMAIL PROTECTED]
rizon.com To
Matthew Hoyt/Toronto/[EMAIL PROTECTED]
12/10/2003 03:13 cc
PM [email protected],
[EMAIL PROTECTED],
[EMAIL PROTECTED],
[EMAIL PROTECTED]
om
Subject
Re: Xalan 1.6 build issues
Hi Matthew,
Thanks for replying.
Please find my configuration.
My aCC: HP ANSI C++ B3910B A.03.45.
I downloaded "xerces-c2_3_0-HP11ACC.tar.gz
",(http://apache.mirror.digitalspace.net/xml/xalan-c/source/) and tried to
use that with my application, which started throwing the below mentioned
error while linking. So I thought that the library that came from the
binary is having some issue, so i tried to build the library from the
source
/usr/ccs/bin/ld: Unsatisfied symbols:
ProxyTransformer::ProxyTransformer() (first referenced in
BAAISAdapterImpl.o) (code)
ProxyTransformer::doTransform(const char
*,std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)
(first referenced in BAAISAdapterImpl.o) (code)
Earlier I was using XALAN 1.2 and the same app was working that time. I am
migrating that to XALAN 1.6 and running into the following errors. (While
compiling i am using -AA option. fyi)
While doing that, I was getting the below mentioned error.
/usr/ccs/bin/ld: Unsatisfied symbols:
static xalanc_1_6::XalanEXSLTCommonFunctionsInstaller::installGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTSetFunctionsInstaller::uninstallGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTProcessorEnvSupportDefault::XSLTProcessorEnvSupportDefault(xalanc_1_6::XSLTProcessor
*)%1 (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)...................etc....
It is like a CATCH22 for me, I could not move either way. (I am getting
the same Unsatisfied symbols error).
Any pointers to solve this issue would be great. Please let me know if you
need more information regarding the same. Thanks.
Thanks and Regards
NIRANJAN NITHYANANDAM G
Office: 972-507-4522
Pager: 888-480-4235
"Matthew Hoyt"
<[EMAIL PROTECTED] 4To:
Niranjannithyanandam N. Gopinath/VEND/TX/[EMAIL PROTECTED]
> cc:
[email protected]
Subject: Re: Xalan 1.6
build issues
12/10/2003 02:01
PM
Hi Niranjan,
It appears as though your Xalan library is corrupted or incompatible.
Did you download the Xalan source or HP binary package?
Which compiler version are you using?
Details are always helpful in diagnosing problems.
-Matt.
niranjannithyanan
[EMAIL PROTECTED]
rizon.com To
[email protected],
12/10/2003 01:23 [email protected]
PM cc
Subject
Xalan 1.6 build issues
Hi,
I am trying to build XALAN 1.6 in HP-UX 11. But I am getting this error..
not sure how to fix this error. Please get back as soon as possible, any
pointers/info would be great...!!!!
/usr/ccs/bin/ld: Unsatisfied symbols:
aCC -O -DNDEBUG +DAportable +Z -DHPUX -D_THREAD_SAFE +p -mt -Aa -c
-I/hphome/aneeshg/ash/xml-xalan/c/src
-I/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/src/
-I/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/include/xercesc
-I/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/include/ -o
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o
/hphome/aneeshg/ash/xml-xalan/c/src/xalanc/TestXSLT/process.cpp
aCC -O -DNDEBUG +DAportable +Z -DHPUX -D_THREAD_SAFE +p -mt -Aa
-Wl,+s \
-L/hphome/aneeshg/ash/xml-xalan/c/lib -lxalan-c -lm -lpthread
-L/hphome/aneeshg/ash/xerces-c_2_3_0-HP11ACC/lib -lxerces-c
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o -o
/hphome/aneeshg/ash/xml-xalan/c/bin/testXSLT
/usr/ccs/bin/ld: Unsatisfied symbols:
static xalanc_1_6::XalanEXSLTCommonFunctionsInstaller::installGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTSetFunctionsInstaller::uninstallGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTProcessorEnvSupportDefault::XSLTProcessorEnvSupportDefault(xalanc_1_6::XSLTProcessor
*)%1 (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::XalanSourceTreeInit::~XalanSourceTreeInit() (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTMathFunctionsInstaller::installGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::StylesheetExecutionContextDefault::StylesheetExecutionContextDefault(xalanc_1_6::XSLTEngineImpl
&,xalanc_1_6::XPathEnvSupport &,xalanc_1_6::DOMSupport
&,xalanc_1_6::XObjectFactory &,xalanc_1_6::XalanNode *,const
xalanc_1_6::NodeRefListBase *,const xalanc_1_6::PrefixResolver *)%1 (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XercesDOMSupport::~XercesDOMSupport() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTInit::~XSLTInit() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::processStylesheet(const
xalanc_1_6::XalanDOMString &,xalanc_1_6::StylesheetConstructionContext &)
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::StylesheetExecutionContextDefault::setStylesheetRoot(const
xalanc_1_6::StylesheetRoot *) (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XercesParserLiaison::setExecutionContext(xalanc_1_6::ExecutionContext
&) (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::XSLTEngineImpl::XSLTEngineImpl(xalanc_1_6::XMLParserLiaison
&,xalanc_1_6::XPathEnvSupport &,xalanc_1_6::DOMSupport
&,xalanc_1_6::XObjectFactory &,xalanc_1_6::XPathFactory &)%1 (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTInputSource::XSLTInputSource()%1 (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::addTraceListener(xalanc_1_6::TraceListener
*) (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::XSLTEngineImpl::reset() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTStringFunctionsInstaller::installGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::process(const xalanc_1_6::XSLTInputSource
&,xalanc_1_6::XSLTResultTarget &,xalanc_1_6::StylesheetExecutionContext &)
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTInit::XSLTInit()%1 (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::process(const xalanc_1_6::XSLTInputSource
&,const xalanc_1_6::XSLTInputSource &,xalanc_1_6::XSLTResultTarget
&,xalanc_1_6::StylesheetConstructionContext
&,xalanc_1_6::StylesheetExecutionContext &) (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTProcessorEnvSupportDefault::
~XSLTProcessorEnvSupportDefault() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XalanSourceTreeParserLiaison::createXalanSourceTreeDocument
() (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::StylesheetConstructionContextDefault::StylesheetConstructionContextDefault(xalanc_1_6::XSLTEngineImpl
&,xalanc_1_6::XPathFactory &,unsigned long,unsigned long,unsigned
long,unsigned long,unsigned long,unsigned long)%1 (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::FormatterToSourceTree::FormatterToSourceTree(xalanc_1_6::XalanSourceTreeDocument
*) (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::XSLTResultTarget::~XSLTResultTarget() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTProcessorEnvSupportDefault::reset() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XalanSourceTreeDOMSupport::XalanSourceTreeDOMSupport()%1
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::StylesheetExecutionContextDefault::reset() (first referenced
in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::~XSLTEngineImpl() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTSetFunctionsInstaller::installGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XalanSourceTreeParserLiaison::~XalanSourceTreeParserLiaison
() (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
static xalanc_1_6::XalanEXSLTMathFunctionsInstaller::uninstallGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTStringFunctionsInstaller::uninstallGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::StylesheetExecutionContextDefault::
~StylesheetExecutionContextDefault() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::setQuietConflictWarnings(bool) (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::StylesheetConstructionContextDefault::reset() (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::setDiagnosticsOutput(xalanc_1_6::PrintWriter
*) (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::TraceListenerDefault::TraceListenerDefault(xalanc_1_6::PrintWriter
&,bool,bool,bool,bool) (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanExtensionsInstaller::uninstallGlobal() (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XalanSourceTreeDOMSupport::~XalanSourceTreeDOMSupport()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XalanSourceTreeParserLiaison::setExecutionContext(xalanc_1_6::ExecutionContext
&) (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::StylesheetConstructionContextDefault::
~StylesheetConstructionContextDefault() (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanEXSLTCommonFunctionsInstaller::uninstallGlobal()
(first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::setTraceSelects(bool) (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
static xalanc_1_6::XalanExtensionsInstaller::installGlobal() (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XalanSourceTreeParserLiaison::XalanSourceTreeParserLiaison(xalanc_1_6::XalanSourceTreeDOMSupport
&)%1 (first referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o)
(code)
xalanc_1_6::XalanSourceTreeInit::XalanSourceTreeInit()%1 (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTResultTarget::XSLTResultTarget()%1 (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XercesParserLiaison::~XercesParserLiaison() (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XercesDOMSupport::XercesDOMSupport()%1 (first referenced in
/hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XercesParserLiaison::XercesParserLiaison()%1 (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
xalanc_1_6::XSLTEngineImpl::setStylesheetParam(const
xalanc_1_6::XalanDOMString &,const xalanc_1_6::XalanDOMString &) (first
referenced in /hphome/aneeshg/ash/xml-xalan/c/obj/process.o) (code)
Thanks and Regards
NIRANJAN NITHYANANDAM G
Office: 972-507-4522
Pager: 888-480-4235
(See attached file: Makefile)
Makefile
Description: Binary data
