You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by pe...@ca.ibm.com on 2001/08/28 20:47:08 UTC
RE: compilation with inlined desctuctor fails on AIX 4.2, xlC 3 r ev.1
Christoffer,
>/home/kfat/nightly/include/validators/common/ContentSpecNode.hpp",
The copy ctor has dependency on get*() method and therefore I've moved
it after
the declarations of get*().
>/home/kfat/nightly/include/util/XMLUri.hpp"
>/home/kfat/nightly/include/validators/datatype/ListDatatypeValidator.hpp",
>/home/kfat/nightly/include/util/XMLDouble.hpp",
>/home/kfat/nightly/include/util/XMLFloat.hpp",
1. Could you forward us the compilation error message regarding these
files
to help identify the interdependency among mothods in concern, or
2. if possible, forward us **your** patch since it is simply a re-shuffle
the order of the mothod, and you can test on your compiler.
Regards,
Peiyong Zhang
____________________________________________
XML Parsers Development
IBM Toronto Laboratory email: peiyongz@ca.ibm.com
Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
Christoffer Dam Bruun <cb...@systematic.dk> on 08/27/2001 08:08:49 AM
Please respond to xerces-c-dev@xml.apache.org
To: "'xerces-c-dev@xml.apache.org'" <xe...@xml.apache.org>
cc:
Subject: RE: compilation with inlined desctuctor fails on AIX 4.2, xlC 3 r
ev.1
Hi,
We have tried to compile the latest nightly build (24/8). It failed with
the
same type
of errors but in different files than before:
"/home/kfat/nightly/include/util/XMLUri.hpp"
"/home/kfat/nightly/include/validators/common/ContentSpecNode.hpp",
"/home/kfat/nightly/include/validators/datatype/ListDatatypeValidator.hpp",
"/home/kfat/nightly/include/util/XMLDouble.hpp",
"/home/kfat/nightly/include/util/XMLFloat.hpp",
Compile example:
xlC_r -qnotempinc -D_THREAD_SAFE -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INM
EM_MESSAGELOADER -DAPP_NO_THREADS -DXML_USE_NO_THREADS
-I/home/kfat/nightly/in
clude -o /home/kfat/nightly/obj/AIX/XMLScanner2.o XMLScanner2.cpp
"/home/kfat/nightly/include/validators/common/ContentSpecNode.hpp", line
372.38:
1540-241: (S) "ContentSpecNode::getElement() const" was declared with
external
linkage and called or defined before being declared as inline.
"/home/kfat/nightly/include/validators/common/ContentSpecNode.hpp", line
372.1:
1540-377: (I) "ContentSpecNode::getElement() const" is declared on line 182
of "
/home/kfat/nightly/include/validators/common/ContentSpecNode.hpp".
"/home/kfat/nightly/include/validators/common/ContentSpecNode.hpp", line
382.48:
/Christoffer
> -----Original Message-----
> From: peiyongz@ca.ibm.com [mailto:peiyongz@ca.ibm.com]
> Sent: 21. august 2001 21:18
> To: xerces-c-dev@xml.apache.org
> Subject: Re: compilation with inlined desctuctor fails on AIX
> 4.2, xlC 3
> rev.1
>
>
> Hi, Christoffer,
>
> Changes have been made to the
> /validators/datatype/*DVT.[c|hpp] and
> /validators/common/ContentSpecNode.hpp, and shall be
> available from the
> next nightly build, please help verify, thanks.
>
>
> Regards,
>
> Peiyong Zhang
> ____________________________________________
> XML Parsers Development
> IBM Toronto Laboratory email: peiyongz@ca.ibm.com
> Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
>
>
>
> Christoffer Dam Bruun <cb...@systematic.dk> on 08/21/2001 09:03:05 AM
>
> Please respond to xerces-c-dev@xml.apache.org
>
> To: xerces-c-dev@xml.apache.org
> cc:
> Subject: compilation with inlined desctuctor fails on AIX
> 4.2, xlC 3 rev.1
>
>
> Hi,
>
> We are trying to compile Xerces 1.5.1 src on AIX and have run
> into some
> compilation problems
> makefiels generated with:
> runConfigure -paix -cxlc -xxlC -rnone
>
> It appears that xlC will not accept that the following construct:
>
> class A {
> A *left, *right;
> A() {left=0, left=0;};
> void amethod();
> ~A();
> };
>
> inline void A::amethod()
> {
> if (right)
> delete right; // This calls the A destruct'er that is
> later declared
> inline
> }
>
> inline A::~A()
> {
> if (left)
> delete left;
> if (right)
> delete right;
> }
>
> If one tries to compile:
>
> [/home/kfat] xlC -c a.cpp
> "a.cpp", line 14.11: 1540-241: (S) "A::~A()" was declared
> with external
> linkage
> and called or defined before being declared as inline.
> "a.cpp", line 14.1: 1540-377: (I) "A::~A()" is declared on line 5 of
> "a.cpp".
>
> Even if we try to compile with "-qnoinline" it still fails
> with the same
> error msg.
>
> We have found 2 solutions:
> 1) move A::~A() up before A::amethod()
> 2) not declare A::~A() inline
>
> Know, what has this to do with Xerces :-)
>
> We have encountered the above problem in the following files:
> ContentSpecNode.hpp
> StringDatatypeValidator.hpp
> DecimalDatatypeValidator.hpp
> HexBinaryDatatypeValidator.hpp
> Base64BinaryDatatypeValidator.hpp
> NOTATIONDatatypeValidator.hpp
> QNameDatatypeValidator.hpp
> ListDatatypeValidator.hpp
> UnionDatatypeValidator.hpp
>
> Are we the only ones having problems compiling on AIX ?
>
> Regards
> Christoffer Bruun
> email: cb@systematic.dk
> tlf: 89432000
>
> ---
> Ed is the standard text editor.
> If you use ed, you are on the path to redemption, the
> so-calleds "visual" editors have been placed here by ed to tempt the
> faithless. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org