I'm having problems building Xalan-C for Mac OS X Snow Leopard - I don't think there are binaries available for this platform. I've got Xerces-C-2_8_0 working (I think) and installed in /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/ but when I download, unzip and untar Xalan-C_1_10-src.tar.gz to /Users/christian/temp/ and try to build it from the resulting ~/temp/xml-xalan/c/ directory, it won't work. I have set $XERCESCROOT to /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0 and $XALANCROOT to /Users/christian/temp/xml-xalan/c and added /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0 to $PATH and $DYLD_LIBRARY_PATH is /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/lib: Then, ./runConfigure -p macosx -c gcc -x g++ seems to set up the configuration OK, but when I run 'make' I get problems starting with: ld: warning: in /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/lib/libxerces-c.dylib, file is not of required architecture I've tried reinstalling the latest version of XCode, but it doesn't help. Any help would be much appreciated - I'm a bit new to this. Cheers, Christian
Here's the full output from make: make -C src/xalanc all Preparing the directory structure for a build ... mkdir -p ../../obj mkdir -p ../../lib mkdir -p ../../bin make -C Utils prepare mkdir -p ../../../nls mkdir -p ../../../nls/include make -C Utils locale make -C MsgCreator g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER -c -I/Users/christian/temp/xml-xalan/c/src -I/Users/christian/temp/xml-xalan/c/include -I../../../../nls/include -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//src/ -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/xercesc -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/ -o ../../../../obj/MsgFileOutputStream.o /Users/christian/temp/xml-xalan/c/src/xalanc/Utils/MsgCreator/MsgFileOutputStream.cpp g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER -c -I/Users/christian/temp/xml-xalan/c/src -I/Users/christian/temp/xml-xalan/c/include -I../../../../nls/include -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//src/ -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/xercesc -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/ -o ../../../../obj/ICUResHandler.o /Users/christian/temp/xml-xalan/c/src/xalanc/Utils/MsgCreator/ICUResHandler.cpp g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER -c -I/Users/christian/temp/xml-xalan/c/src -I/Users/christian/temp/xml-xalan/c/include -I../../../../nls/include -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//src/ -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/xercesc -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/ -o ../../../../obj/InMemHandler.o /Users/christian/temp/xml-xalan/c/src/xalanc/Utils/MsgCreator/InMemHandler.cpp g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER -c -I/Users/christian/temp/xml-xalan/c/src -I/Users/christian/temp/xml-xalan/c/include -I../../../../nls/include -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//src/ -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/xercesc -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/ -o ../../../../obj/MsgCreator.o /Users/christian/temp/xml-xalan/c/src/xalanc/Utils/MsgCreator/MsgCreator.cpp g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER -c -I/Users/christian/temp/xml-xalan/c/src -I/Users/christian/temp/xml-xalan/c/include -I../../../../nls/include -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//src/ -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/xercesc -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/ -o ../../../../obj/NLSHandler.o /Users/christian/temp/xml-xalan/c/src/xalanc/Utils/MsgCreator/NLSHandler.cpp g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER -c -I/Users/christian/temp/xml-xalan/c/src -I/Users/christian/temp/xml-xalan/c/include -I../../../../nls/include -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//src/ -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/xercesc -I/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//include/ -o ../../../../obj/SAX2Handler.o /Users/christian/temp/xml-xalan/c/src/xalanc/Utils/MsgCreator/SAX2Handler.cpp g++ -O -DNDEBUG -fno-elide-constructors -Wall -fno-elide-constructors -DMACOSX -D_REENTRANT -DXALAN_USE_XERCES_LOCAL_CODEPAGE_TRANSCODERS -DXALAN_INMEM_MSG_LOADER \ -L/usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0//lib -lxerces-c ../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o ../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o ../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o ../../../../bin/MsgCreator ld: warning: in /usr/local/xerces-c_2_8_0-x86-macosx-gcc_4_0/lib/libxerces-c.dylib, file is not of required architecture Undefined symbols: "xercesc_2_8::XMLString::release(char**)", referenced from: XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)in MsgFileOutputStream.o _main in MsgCreator.o _main in MsgCreator.o _main in MsgCreator.o _main in MsgCreator.o SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o "xercesc_2_8::XMLString::release(unsigned short**)", referenced from: XalanFileOutputStream::write(char const*, unsigned int)in MsgFileOutputStream.o SAX2Handler::setLocale(char const*)in SAX2Handler.o SAX2Handler::~SAX2Handler()in SAX2Handler.o SAX2Handler::~SAX2Handler()in SAX2Handler.o "typeinfo for xercesc_2_8::SAXParseException", referenced from: xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in ICUResHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in InMemHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in MsgCreator.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in NLSHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in SAX2Handler.o "xercesc_2_8::XMLUni::fgXercesDynamic", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_8::PanicHandler*, xercesc_2_8::MemoryManager*, bool)", referenced from: _main in MsgCreator.o "xercesc_2_8::SAXParseException::SAXParseException(xercesc_2_8::SAXParseException const&)", referenced from: xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in ICUResHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in InMemHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in MsgCreator.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in NLSHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in SAX2Handler.o "xercesc_2_8::XMLUni::fgXercesSchema", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLUni::fgXercescDefaultLocale", referenced from: _main in MsgCreator.o "typeinfo for xercesc_2_8::XMLException", referenced from: _main.lsda in MsgCreator.o "xercesc_2_8::XMLUni::fgXercesSchemaFullChecking", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLPlatformUtils::Terminate()", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLUni::fgSAX2CoreValidation", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLReaderFactory::createXMLReader(xercesc_2_8::MemoryManager*, xercesc_2_8::XMLGrammarPool*)", referenced from: _main in MsgCreator.o "xercesc_2_8::SAXParseException::getSystemId() const", referenced from: SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o "xercesc_2_8::XMLPlatformUtils::fgMemoryManager", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLUni::fgSAX2CoreNameSpacePrefixes", referenced from: _main in MsgCreator.o "xercesc_2_8::XMLString::compareString(unsigned short const*, unsigned short const*)", referenced from: ICUResHandler::endElement(unsigned short const*, unsigned short const*, unsigned short const*)in ICUResHandler.o ICUResHandler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in ICUResHandler.o ICUResHandler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in ICUResHandler.o InMemHandler::endElement(unsigned short const*, unsigned short const*, unsigned short const*)in InMemHandler.o InMemHandler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in InMemHandler.o InMemHandler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in InMemHandler.o SAX2Handler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in SAX2Handler.o SAX2Handler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in SAX2Handler.o "xercesc_2_8::XMLString::stringLen(char const*)", referenced from: SAX2Handler::printToIndexFile(char const**)in SAX2Handler.o SAX2Handler::startElement(unsigned short const*, unsigned short const*, unsigned short const*, xercesc_2_8::Attributes const&)in SAX2Handler.o "xercesc_2_8::XMLString::transcode(char const*)", referenced from: XalanFileOutputStream::write(char const*, unsigned int)in MsgFileOutputStream.o SAX2Handler::setLocale(char const*)in SAX2Handler.o "xercesc_2_8::XMLString::transcode(unsigned short const*)", referenced from: XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)in MsgFileOutputStream.o _main in MsgCreator.o _main in MsgCreator.o SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o "xercesc_2_8::XMLUni::fgSAX2CoreNameSpaces", referenced from: _main in MsgCreator.o "xercesc_2_8::SAXParseException::~SAXParseException()", referenced from: xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in ICUResHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in InMemHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in MsgCreator.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in NLSHandler.o xercesc_2_8::DefaultHandler::fatalError(xercesc_2_8::SAXParseException const&)in SAX2Handler.o "xercesc_2_8::SAXParseException::getColumnNumber() const", referenced from: SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o "xercesc_2_8::SAXParseException::getLineNumber() const", referenced from: SAX2Handler::error(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::warning(xercesc_2_8::SAXParseException const&) in SAX2Handler.o SAX2Handler::fatalError(xercesc_2_8::SAXParseException const&) in SAX2Handler.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [../../../../bin/MsgCreator] Error 1 make[2]: *** [../../../bin/MsgCreator] Error 2 make[1]: *** [locale] Error 2 make: *** [all] Error 2 -- View this message in context: http://www.nabble.com/Xalan-C-build-on-Mac-OS-X-Snow-Leopard-tp25782174p25782174.html Sent from the Xalan - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org For additional commands, e-mail: xalan-dev-h...@xml.apache.org