Argh!
I do not agree with your proposed course of action because it is way too
complicated.
As I have said before, which you would see if you searched the list
archives, it is easy to build on Solaris.
Please make sure that you use the latest release version of Xerces.
It is bad to use out of date versions because it is hard to determine what
is causing your problem.
Here is a shell script that will perform a working build[1].
Place it into src/xercesc in the build tree.
Check: the BITSTOBUILD line,
the XERCESCROOT line,
the number of bits in the configure arguments,
the Solaris version in the configure arguments.
I am sorry if my message sounds unfriendly, but I want to make sure that
people get the message (finally) and do this the right way.
It took me a long time to figure it out and nobody seems to want to benefit
from my experience with this issue.
HTH,
Matt
Reference [1]:
--BEGIN--
#!/bin/bash
# Xerces-C++ Build Variable Munger
# Modify XERCESCROOT and the configure prefix appropriately.
# Xerces Source Code Directory
export XERCESCROOT='/foo/bar/baz/boo/xerces-c-src_2_6_0'
# Run GNU autoconf
autoconf
# Dependencies for Xerces
export THREADS='pthread'
export BITSTOBUILD='64'
export TRANSCODER='NATIVE'
export MESSAGELOAD='INMEM'
export NETACCESSOR='Socket'
export CC='gcc'
export CXX='g++'
export LDFLAGS=''
# Dependency CFLAGS
export CFLAGS="-DXML_USE_PTHREAD -DXML_BITSTOBUILD_64
-DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER
-DXML_USE_NETACCESSOR_SOCKET"
# Dynamic Libraries Required For Dependencies
export LIBS="-lpthread -lnsl -lsocket"
# Mandatory CFLAGS
export CFLAGS="$CFLAGS -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS
-DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS"
# Optimization CFLAGS
export CFLAGS="$CFLAGS -O3 -fexpensive-optimizations -mcpu=ultrasparc3
-mtune=ultrasparc3"
# Set CXXFLAGS to CFLAGS
export CXXFLAGS="$CFLAGS"
# Run Xerces configure script.
rm -f config.cache
rm -f config.log
rm -f config.status
configure sparc64-sun-solaris2.9 --prefix=$TOOLKIT
# Perform Xerces compilation run.
make
make install
--END--
-----Original Message-----
From: Dan Vasilov [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 15, 2005 11:27 PM
To: [email protected]
Subject: .c files on Solaris.
Our plan to fix this is:
- upgrade to xerces 2.6
- move the source code from the .c files into the .hpp files
- merge the changes into the main xerces source code tree.
This way we're sure the problem is gone for good and we'll be able to
upgrade to any future version of xerces. We also want to verify the changed
source code compiles fine on Windows and Linux.
A. Is this all right with you? Shall we be allowed to merge the changes into
the main source code tree?
B. Which tests should we run?
C. Are there other solutions you could suggest?
Dan
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]