Hiall,

We use GNU 2.95.3 g++ (gcc version 2.95.3 20010315 (SuSE)) with the xerces
2.2 parser on a Suse 8 machine to develop c++ progs. This works fine, both
with dl'ed xerces binaries or compiled xerces sources. 

Now, I need to port this project to an AIX machine, since that is the
platform I need to release on. I have dl'ed the Xerces AIX binaries version
2.2 (xerces-c2_2_0-AIX51_5.02.tar.gz). I installed the GNU app_dev stuff
from the AIX tools cd, version gcc version 2.9-aix51-020209. This is not the
same as the GNU on my Linux machine, that is 2.95.3, but since there seemed
tobe a problem with GNU 2.95.3 on AIX we decided to use the AIX specific GNU
version.

I have set my LIBPATH and all, just like I did on the linux machine, keeping
me to the platform differences concerning variable names.

I change my Makefile from Linux to the AIX standards, set my path to the
Xerces directory, and now I get an error with the -lxerces-c flag in my
Makefile. When I change this flag to my complete path and file name
libxerces-c22.0.so it does not complain about this line anymore, but then I
get a lot of Xerces errors:

ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_2::XMLUni::fgXercescDefaultLocale   
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLPlatformUtils::Initialize(char const *)
ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_2::XMLPlatformUtils::fgTransService    
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLTransService::makeNewTranscoderFor(char const *,
xercesc_2_2::XMLTransService::Codes &, unsigned int)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLString::transcode(char const *, unsigned short *, unsigned
int)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::DOMImplementationRegistry::getDOMImplementation(unsigned short
const *)
ld: 0711-317 ERROR: Undefined symbol: xercesc_2_2::XMLUni::fgDOMNamespaces

ld: 0711-317 ERROR: Undefined symbol: xercesc_2_2::XMLUni::fgXercesSchema   
ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_2::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation   
ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_2::XMLUni::fgXercesSchemaFullChecking   
ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_2::XMLUni::fgDOMValidateIfSchema   
ld: 0711-317 ERROR: Undefined symbol: xercesc_2_2::XMLUni::fgDOMValidation

ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_2::XMLUni::fgDOMDatatypeNormalization   
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::MemBufFormatTarget::MemBufFormatTarget(int)
ld: 0711-317 ERROR: Undefined symbol: xercesc_2_2::XMLException type_info
function
ld: 0711-317 ERROR: Undefined symbol: xercesc_2_2::DOMException type_info
function
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLString::transcode(unsigned short const *)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::MemBufInputSource::MemBufInputSource(unsigned char const *,
unsigned int, char const *, bool)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::Wrapper4InputSource::Wrapper4InputSource(xercesc_2_2::InputSou
rce *, bool)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLPlatformUtils::getCurrentMillis(void)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLString::isAllWhiteSpace(unsigned short const *)
ld: 0711-317 ERROR: Undefined symbol: .selesApi::instance(void)
ld: 0711-317 ERROR: Undefined symbol: .selesApi::request(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
basic_string<char, string_char_traits<char>, __default_alloc_template<false,
0> > const &, basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> > const &, basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
basic_string<char, string_char_traits<char>, __default_alloc_template<false,
0> > const &)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLString::transcode(char const *)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::MemBufFormatTarget::reset(void)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::MemBufFormatTarget::getRawBuffer(void) const
ld: 0711-317 ERROR: Undefined symbol: .selesApi::init(void)
ld: 0711-317 ERROR: Undefined symbol: arrfRecord virtual table
ld: 0711-317 ERROR: Undefined symbol: depfRecord virtual table
ld: 0711-317 ERROR: Undefined symbol: .appCora::instance(void)
ld: 0711-317 ERROR: Undefined symbol: .appCora::readAllRecordSets(void)
ld: 0711-317 ERROR: Undefined symbol: .appCora::init(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> >, bool)
collect2: ld returned 8 exit status
make: *** [aodbclient] Error 1

So, to make sure I use the same Xerces stuff, I compiled the Xerces 2.2
sources (xerces-c-src2_2_0.tar).
When I run autoconf, no problem (that is, no command line output, but the
runConfig stuff exists). I run autoconf, no problem, my output is similar to
the samples on the building instructions page
(http://xml.apache.org/xerces-c/build-winunix.html#UNIX) again keeping the
differences to my AIX platform (-paix)

Now, I run gmake and I have the same problems with that -lxerces-c flag.
But, when I change that flag to the exact path and file name
libxerces-c22.0.so it does not work, it does not seem to find that file.

What am I doing wrong???? What file or path does xerces expect?
Maybe I misunderstand the problem completely, that's possible too.

Did anyone run into these problems as well??? 

Thanks and greetz,
T

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to