I compiled on Solaris with gcc and it works fantastically. Here is a script that will do it. I build everything in 64-bit for futureproofing, also I needed this to perform as fast as possible, so I put on maximum optimizations. Perhaps you would want -O0 -g instead of the optimization CFLAGS I used, if you need to debug it. If you hack the configure script call and the BITSTOBUILD variable you could make it work in 32 bit mode instead of 64 as well.
--BEGIN-- #!/bin/bash # Xerces-C++ Build Variable Munger # Modify XERCESCROOT and the configure prefix appropriately. # Xerces Source Code Directory export XERCESCROOT='/usr/apps/NAD/solaris-toolkit-src/xerces-c-src_2_6_0' # Add missing include directories to compiler's include path. # export C_INCLUDE_PATH=$XERCESCROOT/src/xercesc/dom/impl # 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: Vitto DAngelo [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 6:44 AM To: [email protected] Subject: Re: Problem building xerces 2.6.0 on AIX --- [EMAIL PROTECTED] wrote: > > Dave > > > > Dave, > > > > The lib directory is empty. I did not see any > errors > > during compile either. > > > > I am using gcc version 2.9-aix51-020209 and GNU > make > > 3.79.1 if that matters. > > If the lib directory is empty, then something is not > working correctly, > because the main library, libxerces-c26.0.a, was not > created. If that > library is not present, there's no way the > libxerces-depdom26.0.a can be > built. > > You should look very carefully through the output of > the make process to > see if there's an error message you missed. > > Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > I looked further into the Makefile(s) and found that there were no rules in Makefile.incl to compile it with gcc on AIX. I installed C Set for AIX 6.0 and was able to compile xerces. I got lots of Warning messages about duplicate symbols, but it seems to work. Has anyone compiled xerces-c with gcc on AIX? I have another AIX machine machine that does not have C Set for AIX so am I interested in compiling it with gcc. I also need to compile is on a Solaris 9 system with gcc? Can it be done? Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________________ 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]
