[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#356093: FTBFS with G++ 4.1: extra qualification ...



Package: synopsis
Version: 0.5.0-4
Severity: important
Tags: patch

Your package fails to build with G++ 4.1.  I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.

A patch is below.


> Automatic build of synopsis_0.5.0-4 on bigsur by sbuild/mips 1.80
...
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> g++ -O1 -ggdb -fno-inline -I.. -I../gc/include -I../occ -DPYTHON_INCLUDE="<python2.3/Python.h>" -fPIC  -Wall -c -o occ.o occ.cc
> ../gc/include/gc_cpp.h:178: error: extra qualification 'gc::' on member 'operator delete []'
> ../occ/walker.h:27: warning: 'class Walker' has virtual functions but non-virtual destructor
> ../occ/ptree-core.h:31: warning: 'class Ptree' has virtual functions but non-virtual destructor
> ../occ/ptree.h:24: warning: 'class Leaf' has virtual functions but non-virtual destructor
> ../occ/ptree.h:35: warning: 'class CommentedLeaf' has virtual functions but non-virtual destructor
> ../occ/ptree.h:46: warning: 'class LeafName' has virtual functions but non-virtual destructor
> ../occ/ptree.h:56: warning: 'class DupLeaf' has virtual functions but non-virtual destructor
> ../occ/ptree.h:64: warning: 'class LeafReserved' has virtual functions but non-virtual destructor
> ../occ/ptree.h:70: warning: 'class LeafThis' has virtual functions but non-virtual destructor
> ../occ/ptree.h:86: warning: 'class LeafAUTO' has virtual functions but non-virtual destructor
> ../occ/ptree.h:87: warning: 'class LeafBOOLEAN' has virtual functions but non-virtual destructor
> ../occ/ptree.h:88: warning: 'class LeafCHAR' has virtual functions but non-virtual destructor
> ../occ/ptree.h:89: warning: 'class LeafCONST' has virtual functions but non-virtual destructor
> ../occ/ptree.h:90: warning: 'class LeafDOUBLE' has virtual functions but non-virtual destructor
> ../occ/ptree.h:91: warning: 'class LeafEXTERN' has virtual functions but non-virtual destructor
> ../occ/ptree.h:92: warning: 'class LeafFLOAT' has virtual functions but non-virtual destructor
> ../occ/ptree.h:93: warning: 'class LeafFRIEND' has virtual functions but non-virtual destructor
> ../occ/ptree.h:94: warning: 'class LeafINLINE' has virtual functions but non-virtual destructor
> ../occ/ptree.h:95: warning: 'class LeafINT' has virtual functions but non-virtual destructor
> ../occ/ptree.h:96: warning: 'class LeafLONG' has virtual functions but non-virtual destructor
> ../occ/ptree.h:97: warning: 'class LeafMUTABLE' has virtual functions but non-virtual destructor
> ../occ/ptree.h:98: warning: 'class LeafNAMESPACE' has virtual functions but non-virtual destructor
> ../occ/ptree.h:99: warning: 'class LeafPRIVATE' has virtual functions but non-virtual destructor
> ../occ/ptree.h:100: warning: 'class LeafPROTECTED' has virtual functions but non-virtual destructor
> ../occ/ptree.h:101: warning: 'class LeafPUBLIC' has virtual functions but non-virtual destructor
> ../occ/ptree.h:102: warning: 'class LeafREGISTER' has virtual functions but non-virtual destructor
> ../occ/ptree.h:103: warning: 'class LeafSHORT' has virtual functions but non-virtual destructor
> ../occ/ptree.h:104: warning: 'class LeafSIGNED' has virtual functions but non-virtual destructor
> ../occ/ptree.h:105: warning: 'class LeafSTATIC' has virtual functions but non-virtual destructor
> ../occ/ptree.h:106: warning: 'class LeafUNSIGNED' has virtual functions but non-virtual destructor
> ../occ/ptree.h:107: warning: 'class LeafUSING' has virtual functions but non-virtual destructor
> ../occ/ptree.h:108: warning: 'class LeafVIRTUAL' has virtual functions but non-virtual destructor
> ../occ/ptree.h:109: warning: 'class LeafVOID' has virtual functions but non-virtual destructor
> ../occ/ptree.h:110: warning: 'class LeafVOLATILE' has virtual functions but non-virtual destructor
> ../occ/ptree.h:112: warning: 'class LeafUserKeyword2' has virtual functions but non-virtual destructor
> ../occ/ptree.h:116: warning: 'class NonLeaf' has virtual functions but non-virtual destructor
> ../occ/ptree.h:130: warning: 'class PtreeBrace' has virtual functions but non-virtual destructor
> ../occ/ptree.h:142: warning: 'class PtreeBlock' has virtual functions but non-virtual destructor
> ../occ/ptree.h:150: warning: 'class PtreeClassBody' has virtual functions but non-virtual destructor
> ../occ/ptree.h:159: warning: 'class PtreeTypedef' has virtual functions but non-virtual destructor
> ../occ/ptree.h:167: warning: 'class PtreeTemplateDecl' has virtual functions but non-virtual destructor
> ../occ/ptree.h:175: warning: 'class PtreeTemplateInstantiation' has virtual functions but non-virtual destructor
> ../occ/ptree.h:182: warning: 'class PtreeExternTemplate' has virtual functions but non-virtual destructor
> ../occ/ptree.h:190: warning: 'class PtreeMetaclassDecl' has virtual functions but non-virtual destructor
> ../occ/ptree.h:197: warning: 'class PtreeLinkageSpec' has virtual functions but non-virtual destructor
> ../occ/ptree.h:204: warning: 'class PtreeNamespaceSpec' has virtual functions but non-virtual destructor
> ../occ/ptree.h:217: warning: 'class PtreeUsing' has virtual functions but non-virtual destructor
> ../occ/ptree.h:224: warning: 'class PtreeDeclaration' has virtual functions but non-virtual destructor
> ../occ/ptree.h:237: warning: 'class PtreeDeclarator' has virtual functions but non-virtual destructor
> ../occ/ptree.h:263: warning: 'class PtreeName' has virtual functions but non-virtual destructor
> ../occ/ptree.h:276: warning: 'class PtreeFstyleCastExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:290: warning: 'class PtreeClassSpec' has virtual functions but non-virtual destructor
> ../occ/ptree.h:306: warning: 'class PtreeEnumSpec' has virtual functions but non-virtual destructor
> ../occ/ptree.h:319: warning: 'class PtreeAccessSpec' has virtual functions but non-virtual destructor
> ../occ/ptree.h:326: warning: 'class PtreeAccessDecl' has virtual functions but non-virtual destructor
> ../occ/ptree.h:333: warning: 'class PtreeUserAccessSpec' has virtual functions but non-virtual destructor
> ../occ/ptree.h:340: warning: 'class PtreeUserdefKeyword' has virtual functions but non-virtual destructor
> ../occ/ptree.h:354: warning: 'class PtreeIfStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:355: warning: 'class PtreeSwitchStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:356: warning: 'class PtreeWhileStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:357: warning: 'class PtreeDoStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:358: warning: 'class PtreeForStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:359: warning: 'class PtreeTryStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:360: warning: 'class PtreeBreakStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:361: warning: 'class PtreeContinueStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:362: warning: 'class PtreeReturnStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:363: warning: 'class PtreeGotoStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:364: warning: 'class PtreeCaseStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:365: warning: 'class PtreeDefaultStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:366: warning: 'class PtreeLabelStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:367: warning: 'class PtreeExprStatement' has virtual functions but non-virtual destructor
> ../occ/ptree.h:380: warning: 'class PtreeCommaExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:381: warning: 'class PtreeAssignExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:382: warning: 'class PtreeCondExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:383: warning: 'class PtreeInfixExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:384: warning: 'class PtreePmExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:385: warning: 'class PtreeCastExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:386: warning: 'class PtreeUnaryExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:387: warning: 'class PtreeThrowExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:388: warning: 'class PtreeSizeofExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:389: warning: 'class PtreeTypeidExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:390: warning: 'class PtreeTypeofExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:391: warning: 'class PtreeNewExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:392: warning: 'class PtreeDeleteExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:393: warning: 'class PtreeArrayExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:394: warning: 'class PtreeFuncallExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:395: warning: 'class PtreePostfixExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:396: warning: 'class PtreeUserStatementExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:397: warning: 'class PtreeDotMemberExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:398: warning: 'class PtreeArrowMemberExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:399: warning: 'class PtreeParenExpr' has virtual functions but non-virtual destructor
> ../occ/ptree.h:400: warning: 'class PtreeStaticUserStatementExpr' has virtual functions but non-virtual destructor
> ../occ/env.h:109: warning: 'class Bind' has virtual functions but non-virtual destructor
> ../occ/env.h:123: warning: 'class BindVarName' has virtual functions but non-virtual destructor
> ../occ/env.h:135: warning: 'class BindTypedefName' has virtual functions but non-virtual destructor
> ../occ/env.h:146: warning: 'class BindClassName' has virtual functions but non-virtual destructor
> ../occ/env.h:158: warning: 'class BindEnumName' has virtual functions but non-virtual destructor
> ../occ/env.h:170: warning: 'class BindTemplateClass' has virtual functions but non-virtual destructor
> ../occ/env.h:182: warning: 'class BindTemplateFunction' has virtual functions but non-virtual destructor
> swalker.hh:141: error: extra qualification 'SWalker::' on member 'TranslateTemplateParams'
> swalker.hh:318: error: extra qualification 'SWalker::' on member 'TranslateFuncImplCache'
> make[5]: *** [occ.o] Error 1


--- ./Synopsis/Parser/C++/gc/include/gc_cpp.h	2006-03-09 17:46:20.000000000 +0000
+++ ./Synopsis/Parser/C++/gc/include/gc_cpp.h~	2006-03-09 17:46:15.000000000 +0000
@@ -175,7 +175,7 @@
     inline void* operator new[]( size_t size, void *p );
     inline void operator delete[]( void* obj );
 #   ifndef __BORLANDC__
-      inline void operator delete[]( void*, void* );
+      inline void gc::operator delete[]( void*, void* );
 #   endif
 #endif /* GC_OPERATOR_NEW_ARRAY */
     };    
--- ./Synopsis/Parser/C++/syn/swalker.hh~	2006-03-09 17:44:21.000000000 +0000
+++ ./Synopsis/Parser/C++/syn/swalker.hh	2006-03-09 17:44:40.000000000 +0000
@@ -138,7 +138,7 @@
     std::string format_parameters(std::vector<AST::Parameter*>& params);
 
     //. Translates the template parameters and creates the template type.
-    void SWalker::TranslateTemplateParams(Ptree* params);
+    void TranslateTemplateParams(Ptree* params);
 
     // default translation
     virtual Ptree* TranslatePtree(Ptree*);
@@ -315,7 +315,7 @@
     typedef std::vector<FuncImplVec> FuncImplStack;
     //. The stack of function impl vectors
     FuncImplStack m_func_impl_stack;
-    void SWalker::TranslateFuncImplCache(const FuncImplCache& cache);
+    void TranslateFuncImplCache(const FuncImplCache& cache);
 
     //. Finds the column given the start ptr and the current position. The
     //. derived column number is processed with the link_map before returning,


(you may want to look at these warnings too; I wouldn't be surprised
if they became errors in future versions of G++).
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: