problems compiling xerces-c on Mac OS X 10.3 Panther
I have been having trouble getting xerces to compile on panther.
I have tried both the framework for Xcode and the command line.
when I try to compile the framework it would orriginally not compile because it was
trying to use g++2. I installed that and it got a lot farther before it got this
message:
CompileC build/XercesLib.build/XercesLib.build/Objects-normal/ppc/StringPool.o
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/util/StringPool.cpp
cd /Users/Shared/sources/xerces-c-src2_4_0/Projects/MacOS/Xcode/XercesLib
/usr/bin/g++2 -c -Fbuild -Ibuild/include -I../../../../src
-Ibuild/XercesLib.build/XercesLib.build/DerivedSources -arch ppc -pipe -Wno-trigraphs
-fpascal-strings -g -Os -w -DXML_USE_INMEM_MESSAGELOADER
-DXML_USE_MACOS_UNICODECONVERTER -DXML_USE_NETACCESSOR_URLACCESSCF -Wmost -Wno-reorder
-O0 -Wp,-header-mapfile,build/XercesLib.build/XercesLib.build/Xerces.hmap -DDEBUG
-I/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/util -include
/Users/Shared/sources/xerces-c-src2_4_0/Projects/MacOS/Xcode/XercesLib/xerces_prefix.h
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/util/StringPool.cpp -o
build/XercesLib.build/XercesLib.build/Objects-normal/ppc/StringPool.o
../../../../src/xercesc/util/RefHashTableOf.c: In method `void
xercesc_2_4::RefHashTableOf<xercesc_2_4::XMLStringPool::PoolElem>::put(void *,
xercesc_2_4::XMLStringPool::PoolElem *)':
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/util/StringPool.cpp:268:
instantiated from here
../../../../src/xercesc/util/RefHashTableOf.c:464: Internal compiler error.
../../../../src/xercesc/util/RefHashTableOf.c:464: Please submit a full bug report via
the
../../../../src/xercesc/util/RefHashTableOf.c:464:
<URL:http://developer.apple.com/bugreporter> web page.
{standard input}:12858:FATAL:.abort detected. Assembly stopping.
this looks like something that is apple fault.... but why is the project using g++2.
I don't know a lot about Xcode but I did everything I knew of to change the compiler
it was using to g++3.3 but could not find anything that helped.
When I tried the command line version I got two different errors. When I was using
gcc3.3 and 3.1 I got this error:
mkdir -p /Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include/xercesc/parsers
cp -fp AbstractDOMParser.hpp DOMBuilderImpl.hpp XercesDOMParser.hpp SAXParser.hpp
SAX2XMLReaderImpl.hpp
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include/xercesc/parsers
c++ -DMACOSX -D_REENTRANT -c
-I/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include
-I/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/src -w -O -DPROJ_XMLPARSER
-DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM
-DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER
-DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_NATIVE -o
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/obj/MACOSX/AbstractDOMParser.o
AbstractDOMParser.cpp
AbstractDOMParser.cpp:82:44: xercesc/dom/impl/DOMAttrImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:85:44: xercesc/dom/impl/DOMTextImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:86:48: xercesc/dom/impl/DOMDocumentImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:87:52: xercesc/dom/impl/DOMDocumentTypeImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:89:47: xercesc/dom/impl/DOMElementImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:90:46: xercesc/dom/impl/DOMEntityImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:91:55: xercesc/dom/impl/DOMEntityReferenceImpl.hpp: No such file
or directory
AbstractDOMParser.cpp:92:48: xercesc/dom/impl/DOMNotationImpl.hpp: No such file or
directory
AbstractDOMParser.cpp:95:61: xercesc/dom/impl/DOMProcessingInstructionImpl.hpp: No
such file or directory
AbstractDOMParser.cpp:96:45: xercesc/dom/impl/DOMNodeIDMap.hpp: No such file or
directory
AbstractDOMParser.cpp: In member function `void
xercesc_2_4::AbstractDOMParser::cleanUp()':
AbstractDOMParser.cpp:183: error: `release' undeclared (first use this
function)
AbstractDOMParser.cpp:183: error: (Each undeclared identifier is reported only
once for each function it appears in.)
AbstractDOMParser.cpp: In member function `void
xercesc_2_4::AbstractDOMParser::resetPool()':
AbstractDOMParser.cpp:233: error: `release' undeclared (first use this
function)
AbstractDOMParser.cpp: In member function `xercesc_2_4::DOMDocument*
xercesc_2_4::AbstractDOMParser::adoptDocument()':
AbstractDOMParser.cpp:246: error: cannot convert `xercesc_2_4::DOMDocumentImpl*
' to `xercesc_2_4::DOMDocument*' in return
AbstractDOMParser.cpp: In member function `xercesc_2_4::DOMDocument*
xercesc_2_4::AbstractDOMParser::getDocument()':
AbstractDOMParser.cpp:255: error: cannot convert `xercesc_2_4::DOMDocumentImpl*
' to `xercesc_2_4::DOMDocument*' in return
AbstractDOMParser.cpp: In member function `virtual void
xercesc_2_4::AbstractDOMParser::docCharacters(const XMLCh*, unsigned int,
bool)':
AbstractDOMParser.cpp:599: error: `createCDATASection' undeclared (first use
this function)
AbstractDOMParser.cpp:612: error: `createTextNode' undeclared (first use this
function)
AbstractDOMParser.cpp: In member function `virtual void
xercesc_2_4::AbstractDOMParser::docComment(const XMLCh*)':
AbstractDOMParser.cpp:625: error: `createComment' undeclared (first use this
function)
AbstractDOMParser.cpp: In member function `virtual void
xercesc_2_4::AbstractDOMParser::docPI(const XMLCh*, const XMLCh*)':
AbstractDOMParser.cpp:639: error: `createProcessingInstruction' undeclared
(first use this function)
AbstractDOMParser.cpp: In member function `virtual void
xercesc_2_4::AbstractDOMParser::endEntityReference(const
xercesc_2_4::XMLEntityDecl&)':
AbstractDOMParser.cpp:647: error: `DOMEntityReferenceImpl' undeclared (first
use this function)
AbstractDOMParser.cpp:647: error: `erImpl' undeclared (first use this function)
AbstractDOMParser.cpp:651: error: parse error before `)' token
AbstractDOMParser.cpp:669: error: `DOMTextImpl' undeclared (first use this
function)
AbstractDOMParser.cpp:669: error: parse error before `)' token
AbstractDOMParser.cpp:669: error: parse error before `)' token
AbstractDOMParser.cpp:693: error: `DOMNodeImpl' undeclared (first use this
function)
AbstractDOMParser.cpp:693: error: parse error before `::' token
AbstractDOMParser.cpp:693: error: parse error before `)' token
AbstractDOMParser.cpp:701: error: `getDocumentURI' undeclared (first use this
function)
AbstractDOMParser.cpp:703: error: parse error before `::' token
AbstractDOMParser.cpp:710: error: `DOMProcessingInstructionImpl' undeclared
(first use this function)
AbstractDOMParser.cpp:710: error: parse error before `)' token
AbstractDOMParser.cpp: At global scope:
AbstractDOMParser.cpp:718: error: parse error before `else'
AbstractDOMParser.cpp:726: error: syntax error before `::' token
AbstractDOMParser.cpp:732: error: `fNodeStack' was not declared in this scope
AbstractDOMParser.cpp:736: error: parse error before `*' token
AbstractDOMParser.cpp:742: error: syntax error before `::' token
AbstractDOMParser.cpp:756: error: syntax error before `::' token
AbstractDOMParser.cpp:765: error: `chars' was not declared in this scope
AbstractDOMParser.cpp:765: error: `length' was not declared in this scope
AbstractDOMParser.cpp:766: error: `chars' was not declared in this scope
AbstractDOMParser.cpp:767: error: `length' was not declared in this scope
(I got rid of a lot of the stuff in the middle to make it easier to read. If you want
the whole message just ask.)
AbstractDOMParser.cpp:1493: error: syntax error before `::' token
AbstractDOMParser.cpp:1500: error: syntax error before `->' token
AbstractDOMParser.cpp:1501: error: syntax error before `->' token
AbstractDOMParser.cpp:1502: error: syntax error before `->' token
AbstractDOMParser.cpp:1504: error: syntax error before `*' token
AbstractDOMParser.cpp:1512: error: syntax error before `.' token
AbstractDOMParser.cpp:1513: error: syntax error before `.' token
AbstractDOMParser.cpp:1514: error: syntax error before `.' token
AbstractDOMParser.cpp:1516: error: syntax error before `.' token
AbstractDOMParser.cpp:1518: error: conflicting types for `const XMLCh*id'
AbstractDOMParser.cpp:1475: error: previous declaration as `int id'
AbstractDOMParser.cpp:1518: error: `notation' was not declared in this scope
AbstractDOMParser.cpp:1519: error: parse error before `if'
AbstractDOMParser.cpp:1521: error: syntax error before `.' token
AbstractDOMParser.cpp:1522: error: syntax error before `.' token
AbstractDOMParser.cpp:1523: error: syntax error before `.' token
AbstractDOMParser.cpp:1524: error: syntax error before `.' token
AbstractDOMParser.cpp:1525: error: syntax error before `.' token
AbstractDOMParser.cpp:1527: error: conflicting types for `int id'
AbstractDOMParser.cpp:1518: error: previous declaration as `const XMLCh*id'
AbstractDOMParser.cpp:1527: error: `notation' was not declared in this scope
AbstractDOMParser.cpp:1528: error: parse error before `if'
AbstractDOMParser.cpp:1530: error: syntax error before `.' token
AbstractDOMParser.cpp:1531: error: syntax error before `.' token
AbstractDOMParser.cpp:1532: error: syntax error before `.' token
AbstractDOMParser.cpp:1533: error: syntax error before `.' token
AbstractDOMParser.cpp:1534: error: syntax error before `.' token
AbstractDOMParser.cpp:1537: error: syntax error before `.' token
AbstractDOMParser.cpp:1541: error: syntax error before `::' token
AbstractDOMParser.cpp:1549: error: syntax error before `.' token
AbstractDOMParser.cpp:1550: error: syntax error before `.' token
AbstractDOMParser.cpp:1551: error: syntax error before `.' token
AbstractDOMParser.cpp:1552: error: syntax error before `.' token
AbstractDOMParser.cpp:1556: error: syntax error before `::' token
AbstractDOMParser.cpp:1561: error: syntax error before `::' token
AbstractDOMParser.cpp:1565: error: syntax error before `::' token
AbstractDOMParser.cpp:1573: error: syntax error before `->' token
make[1]: *** [AbstractDOMParser.o] Error 1
make: *** [Parsers] Error 2
When I was using gcc 2.95.2 I got this error:
c++ -DMACOSX -D_REENTRANT -c
-I/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include -w -O -DPROJ_XMLPARSER
-DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM
-DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER
-DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_NATIVE -o
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/obj/MACOSX/EncodingValidator.o
EncodingValidator.cpp
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include/xercesc/util/ValueHashTableOf.c:
In method `void xercesc_2_4::ValueHashTableOf<bool>::put(void *, const bool &)':
EncodingValidator.cpp:121: instantiated from here
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include/xercesc/util/ValueHashTableOf.c:239:
Internal compiler error.
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include/xercesc/util/ValueHashTableOf.c:239:
Please submit a full bug report via the
/Users/Shared/sources/xerces-c-src2_4_0/src/xercesc/include/xercesc/util/ValueHashTableOf.c:239:
<URL:http://developer.apple.com/bugreporter> web page.
make[1]: *** [EncodingValidator.o] Error 1
make: *** [Util] Error 2
It looks about like what's going on in the Xcode project.
Anyway any help would be appreciated.
-jachin
____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]