You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Karl Stang (JIRA)" <xa...@xml.apache.org> on 2005/10/19 18:16:48 UTC
[jira] Commented: (XALANC-576) Xalan 1.9.0 build fails on Solaris using CC
[ http://issues.apache.org/jira/browse/XALANC-576?page=comments#action_12332490 ]
Karl Stang commented on XALANC-576:
-----------------------------------
As an experiment I modified ArenaAllocator.hpp ownsObject() from const_reverse_iterator to const_iterator and my build progressed past the error. Of course it looks like I am seeing the same error in ReusableArenaAllocator.hpp line 136
> Xalan 1.9.0 build fails on Solaris using CC
> -------------------------------------------
>
> Key: XALANC-576
> URL: http://issues.apache.org/jira/browse/XALANC-576
> Project: XalanC
> Type: Bug
> Components: XalanC
> Versions: 1.9
> Environment: >uname -a
> SunOS cosgfs02 5.9 Generic_118558-10 sun4u sparc SUNW,Ultra-Enterprise
> >CC -V
> CC: Forte Developer 7 C++ 5.4 Patch 111715-13 2003/12/11
> Reporter: Karl Stang
>
> Attempting to build Xalan 1.9.0 (w/Xerces 2.7.0) on Solaris encounters the following compile error (spaces/line feeds added for readability):
> CC -I/tmp/STLPORT/include/stlport -O -DNDEBUG -KPIC -mt -xs -ptr../../obj -features=rtti -DSOLARIS -D_REENTRANT -I/stlport -DXALAN_INMEM_MSG_LOADER -c -I/scr/kstang/xalan/src -I/scr/kstang/xalan/include -I../../nls/include -I/scr/kstang/xerces/src/ -I/scr/kstang/xerces/include/xercesc -I/scr/kstang/xerces/include/ -o ../../obj/XalanDOMStringAllocator.o /scr/kstang/xalan/src/xalanc/PlatformSupport/XalanDOMStringAllocator.cpp
> "/scr/kstang/xalan/src/xalanc/PlatformSupport/ArenaAllocator.hpp", line 178: Error: The operation " _STL::reverse_iterator<xalanc_1_9::XalanListIteratorBase<xalanc_1_9::XalanListConstIteratorTraits<xalanc_1_9::ArenaBlock<xalanc_1_9::XalanDOMString, unsigned>*>, xalanc_1_9::XalanList<xalanc_1_9::ArenaBlock<xalanc_1_9::XalanDOMString, unsigned>*>::Node>, _STL::bidirectional_iterator_tag, xalanc_1_9::ArenaBlock<xalanc_1_9::XalanDOMString, unsigned>*const>
> !=
> const _STL::reverse_iterator<xalanc_1_9::XalanListIteratorBase<xalanc_1_9::XalanListConstIteratorTraits<xalanc_1_9::ArenaBlock<xalanc_1_9::XalanDOMString, unsigned>*>, xalanc_1_9::XalanList<xalanc_1_9::ArenaBlock<xalanc_1_9::XalanDOMString, unsigned>*>::Node>, _STL::bidirectional_iterator_tag, xalanc_1_9::ArenaBlock<xalanc_1_9::XalanDOMString, unsigned>*const>" is illegal.
> ArenaAllocator.hpp
> ===============
> virtual bool
> ownsObject(const ObjectType* theObject) const
> {
> bool fResult = false;
> typedef typename ArenaBlockListType::const_reverse_iterator const_re
> verse_iterator;
> // Search back for a block that may have allocated the object...
> const const_reverse_iterator theEnd = this->m_blocks.rend();
> const_reverse_iterator i = this->m_blocks.rbegin();
> line 178 ===> while(i != theEnd)
> {
> assert(*i != 0);
> if ((*i)->ownsObject(theObject) == true)
> {
> fResult = true;
> break;
> }
> else
> {
> ++i;
> }
> }
> return fResult;
> }
> I noticed that between Xalan 1.8.0 and 1.9.0 that the ArenaBlockListType was changed from a vector to a XalanList. Any assistance in resolving this issue would be greatly appreciated. Thanks!
> I had no issues building/executing with Xalan 1.9.0/Xerces 2.7.0 on Linux.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org