You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Gurudas_Pradhan <Gu...@satyam.com> on 2004/09/13 19:08:58 UTC

Problem of Xerces in AIX-5.2

Hi All,
I am getting the following linking errors , while using the Xerces
Parser(AIX 5.1 compiled with xlC_r 6.0.0 .tar.gz archive:
xerces-c_2_5_0-aix_510-xlc_60_040127.tar.gz
<http://mirrors.midco.net/pub/apache.org/xml/xerces-c/binaries/AIX51_6.00/xe
rces-c_2_5_0-aix_510-xlc_60_040127.tar.gz>  [PGP
<http://www.apache.org/dist/xml/xerces-c/binaries/AIX51_6.00/xerces-c_2_5_0-
aix_510-xlc_60_040127.tar.gz.asc> ] [MD5
<http://www.apache.org/dist/xml/xerces-c/binaries/AIX51_6.00/xerces-c_2_5_0-
aix_510-xlc_60_040127.tar.gz.md5> ] ) . I am using AIX 5.2 version, I was
downloading the above binary( Current Binary Releases of Xerces-C (32 bit))

I am using the GCC compiler  version-3.3.2  and GNU Make version 3.80

Can you please give a solution as soon as possible?


Here are the errors:

[vnellore@sandbox:/cmsteamfs/vnellore/cmsdev/src/xml_parser] make
g++ -Wall -Wno-unused -W -ansi -pipe -DMACHINE=aix -o
/cmsteamfs/vnellore/cmsdev/bin/test_xml_parse aix/test_xml_parse.o \
 
-L/cmsteamfs/vnellore/cmsdev/src/xerces-c_2_5_0-aix_510-xlc_60_040127/lib
-lxerces-c25.0 -lpthread \
        -L/cmsteamfs/vnellore/cmsdev/lib -lMemParse -lpthread
ld: 0711-317 ERROR: Undefined symbol: .XMLPlatformUtils::Initialize()
ld: 0711-317 ERROR: Undefined symbol:
.SAXParser::SAXParser[in-charge](XMLValidator*)
ld: 0711-317 ERROR: Undefined symbol: .SAXParser::setDoValidation(bool)
ld: 0711-317 ERROR: Undefined symbol: .SAXParser::setDoNamespaces(bool)
ld: 0711-317 ERROR: Undefined symbol: typeinfo for XMLEntityDecl
ld: 0711-317 ERROR: Undefined symbol: .SAXParseException::getLineNumber()
const
ld: 0711-317 ERROR: Undefined symbol: .SAXParseException::getColumnNumber()
const
ld: 0711-317 ERROR: Undefined symbol: .XMLEntityDecl::~XMLEntityDecl
[not-in-charge]()
ld: 0711-317 ERROR: Undefined symbol:
.SAXParseException::SAXParseException[in-charge](SAXParseException const&)
ld: 0711-317 ERROR: Undefined symbol: typeinfo for SAXParseException
ld: 0711-317 ERROR: Undefined symbol: SAXParseException::~SAXParseException
[in-charge]()
ld: 0711-317 ERROR: Undefined symbol:
.MemBufInputSource::MemBufInputSource[in-charge](unsigned char const*,
unsigned, char c
onst*, bool)
ld: 0711-317 ERROR: Undefined symbol: .XMLPlatformUtils::getCurrentMillis()
ld: 0711-317 ERROR: Undefined symbol: typeinfo for XMLException
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: *** [/cmsteamfs/vnellore/cmsdev/bin/test_xml_parse] Error 1
[vnellore@sandbox:/cmsteamfs/vnellore/cmsdev/src/xml_parser]

Regards,
Gurudas Pradhan


************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

Re: Problem of Xerces in AIX-5.2

Posted by Simon Kitching <si...@ecnetwork.co.nz>.
On Thu, 2004-09-16 at 01:13, David Cargill wrote:
> 
> 
> Hi Gurudas,
> The binaries you downloaded were built with xlC so the library won't be
> compatibile with gcc.  Thus giving you the link errors.
> 
> You can either build your app with xlC or rebuild xerces with gcc (although
> I am not sure if this has been done before - you might want to check the
> mailing list archive as this was discusses a few months back).
> 

I'm using xerces-c on AIX. I initially tried to compile with gcc, but it
would appear that gcc does not support creating shared libraries on AIX.
So unless you are happy with statically-linking xerces to your apps, it
is necessary to use xlC.

If I'm wrong and someone can confirm that they have used gcc to create
shared libs on AIX (v5.1 specifically in my case) I would be very
interested.

Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Problem of Xerces in AIX-5.2

Posted by David Cargill <ca...@ca.ibm.com>.



Hi Gurudas,
The binaries you downloaded were built with xlC so the library won't be
compatibile with gcc.  Thus giving you the link errors.

You can either build your app with xlC or rebuild xerces with gcc (although
I am not sure if this has been done before - you might want to check the
mailing list archive as this was discusses a few months back).

Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
cargilld@ca.ibm.com


                                                                           
             Gurudas_Pradhan                                               
             <Gurudas_Pradhan@                                             
             satyam.com>                                                To 
                                       xerces-c-dev@xml.apache.org         
             09/13/2004 01:08                                           cc 
             PM                                                            
                                                                   Subject 
                                       Problem of Xerces in AIX-5.2        
             Please respond to                                             
               xerces-c-dev                                                
                                                                           
                                                                           
                                                                           
                                                                           




Hi All,
I am getting the following linking errors , while using the Xerces Parser(
AIX 5.1 compiled with xlC_r 6.0.0 .tar.gz archive:
xerces-c_2_5_0-aix_510-xlc_60_040127.tar.gz [PGP] [MD5] ) . I am using AIX
5.2 version, I was downloading the above binary( Current Binary Releases of
Xerces-C (32 bit))


I am using the GCC compiler  version-3.3.2  and GNU Make version 3.80


Can you please give a solution as soon as possible?





Here are the errors:


[vnellore@sandbox:/cmsteamfs/vnellore/cmsdev/src/xml_parser] make
g++ -Wall -Wno-unused -W -ansi -pipe -DMACHINE=aix -o
/cmsteamfs/vnellore/cmsdev/bin/test_xml_parse aix/test_xml_parse.o \



-L/cmsteamfs/vnellore/cmsdev/src/xerces-c_2_5_0-aix_510-xlc_60_040127/lib
-lxerces-c25.0 -lpthread \
        -L/cmsteamfs/vnellore/cmsdev/lib -lMemParse -lpthread
ld: 0711-317 ERROR: Undefined symbol: .XMLPlatformUtils::Initialize()
ld: 0711-317 ERROR: Undefined symbol:
.SAXParser::SAXParser[in-charge](XMLValidator*)
ld: 0711-317 ERROR: Undefined symbol: .SAXParser::setDoValidation(bool)
ld: 0711-317 ERROR: Undefined symbol: .SAXParser::setDoNamespaces(bool)
ld: 0711-317 ERROR: Undefined symbol: typeinfo for XMLEntityDecl
ld: 0711-317 ERROR: Undefined symbol: .SAXParseException::getLineNumber()
const
ld: 0711-317 ERROR: Undefined symbol: .SAXParseException::getColumnNumber()
const
ld: 0711-317 ERROR: Undefined symbol: .XMLEntityDecl::~XMLEntityDecl
[not-in-charge]()
ld: 0711-317 ERROR: Undefined symbol:
.SAXParseException::SAXParseException[in-charge](SAXParseException const&)
ld: 0711-317 ERROR: Undefined symbol: typeinfo for SAXParseException
ld: 0711-317 ERROR: Undefined symbol: SAXParseException::~SAXParseException
[in-charge]()
ld: 0711-317 ERROR: Undefined symbol:
.MemBufInputSource::MemBufInputSource[in-charge](unsigned char const*,
unsigned, char c


onst*, bool)
ld: 0711-317 ERROR: Undefined symbol: .XMLPlatformUtils::getCurrentMillis()

ld: 0711-317 ERROR: Undefined symbol: typeinfo for XMLException
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: *** [/cmsteamfs/vnellore/cmsdev/bin/test_xml_parse] Error 1
[vnellore@sandbox:/cmsteamfs/vnellore/cmsdev/src/xml_parser]


Regards,
Gurudas Pradhan





**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.


**************************************************************************




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org