Hi David,
The earlier compilation issue mentioned in the email below got resolved. Thanks for your inputs. While compiling our application with xerces2.8 libraries, the include folders were still pointing to Xerces1.7. Now the compilation issue got resolved. While running our application, we are getting the following error bash-3.00# ./apachectl start httpd: Syntax error on line 411 of /usr/getaccess/Apa/conf/httpd.conf: Cannot load /opt/MyApp/Apache22/lib/libApache22Connector.so into server: ld.so.1: httpd: fatal: relocation error: file /opt/MyApp/Apache22/lib/libEmbeddedConfigurationClient.so: symbol __1cLxercesc_2_8JGA_XMLUniWfgXercescDefaultLocale_: referenced symbol not found (For more clarification, when apache webserver is started, httpd.conf loads our application/webconnector libApache22Connector.so which inturn loads one of our library libEmbeddedConfigurationClient.so. libEmbeddedConfigurationClient.so will use libxerces-c.so I tried checking the symbol mentioned in both the libraries and found that there is a difference in the symbols. bash-2.03$ /usr/ccs/bin/nm libxerces-c.so |grep DefaultLocale [11799] | 4186018| 6|OBJT |GLOB |0 |21 |__1cLxercesc_2_8GXMLUniWfgXercescDefaultLocale_ bash-2.03$ /usr/ccs/bin/nm libEmbeddedConfigurationClient.so |grep DefaultLocale [1293] | 0| 0|NOTY |GLOB |0 |UNDEF |__1cLxercesc_2_8JGA_XMLUniWfgXercescDefaultLocale_ Can you please suggest any troubleshooting tips to resolve this issue? Regards, Anil _____ From: Anilkumar DK Sent: Saturday, April 11, 2009 9:12 AM To: [email protected] Subject: RE: Xerces 2.8 compilation issues with Compiler: Sun WorkShop 6 update 2 C++ 5.3 I don't think any issues with our code as we have successfully compiled the same Xerces2.8 with our application on Windows, SuseLinux10SP2, RHEL5.2 without any issues. I feel the difference in behavior with different platforms is more in whether the compiler has defined the Macro XERCES_HAS_CPP_NAMESPACE or not. I will get the preprocessor output on both RHEL5.2 and solaris for comparison. Regards, Anil _____ From: David Bertoni Sent: Sat 4/11/2009 1:55 AM To: [email protected] Subject: Re: Xerces 2.8 compilation issues with Compiler: Sun WorkShop 6 update 2 C++ 5.3 Anilkumar DK wrote: > Hi, > > > > We were using Xerces1.7 with our application and now we are moving to > Xerces2.8. We are able to build Xercers2.8 libraries on Solaris 8 with > Compiler: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-24 2006/11/03 > > But when we integrate with our application using the Xerces 2.8 headers, > we get compilation errors as below. > > We tried to undef the MACRO XERCES_HAS_CPP_NAMESPACE but didn't help. > Please let us know your suggestions to resolve this issue. Are you sure this isn't a bug in your own code or in how you're including the header files? If the Xerces-C library and sample applications build, then there's nothing wrong with the Xerces-C code or the compiler. I suggest you take a look at the C++ preprocessor output so you can see the actual source code the compiler is working on. Dave
