Package: cccc
Version: 3.pre81-2
Severity: normal
Tags: patch

When building 'cccc' on amd64/unstable with gcc-4.0,
I get the following error:

g++ -c -I/usr/include/pccts -g -Wno-deprecated -Wall -x c++  -DCC_INCLUDED 
-DJAVA_INCLUDED  ccccmain.cc
/usr/include/pccts/ATokenStream.h:44: warning: 'class ANTLRTokenStream' has 
virtual functions but non-virtual destructor
cccc_met.h:22: error: expected ',' or '...' before '&' token
cccc_met.h:22: error: ISO C++ forbids declaration of 'CCCC_Metric' with no type
/usr/include/pccts/DLexerBase.h:57: warning: 'class DLGInputStream' has virtual 
functions but non-virtual destructor
/usr/include/pccts/DLexerBase.h:63: warning: 'class DLGFileInput' has virtual 
functions but non-virtual destructor
/usr/include/pccts/DLexerBase.h:85: warning: 'class DLGStringInput' has virtual 
functions but non-virtual destructor
ccccmain.cc: In member function 'void Main::HandleArgs(int, char**)':
ccccmain.cc:161: warning: comparison is always false due to limited range of 
data type
make[1]: *** [ccccmain.o] Error 1
make[1]: Leaving directory `/cccc-3.pre81/cccc'
make: *** [build-stamp] Error 2

With the attached patch 'cccc' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/cccc-3.pre81/cccc/cccc_mem.h ./cccc/cccc_mem.h
--- ../tmp-orig/cccc-3.pre81/cccc/cccc_mem.h    2001-04-12 18:05:18.000000000 
+0200
+++ ./cccc/cccc_mem.h   2005-06-20 19:06:38.000000000 +0200
@@ -11,6 +11,8 @@
 
 enum MemberNameLevel { nlMEMBER_NAME=-1, nlMEMBER_TYPE=-2, nlMEMBER_PARAMS=-3 
};
 
+class CCCC_Module;
+
 class CCCC_Member : public CCCC_Record 
 {
   friend class CCCC_Project;
diff -urN ../tmp-orig/cccc-3.pre81/cccc/cccc_met.h ./cccc/cccc_met.h
--- ../tmp-orig/cccc-3.pre81/cccc/cccc_met.h    2001-04-12 18:05:21.000000000 
+0200
+++ ./cccc/cccc_met.h   2005-06-20 19:05:45.000000000 +0200
@@ -9,6 +9,7 @@
 enum EmphasisLevel { elLOW=0, elMEDIUM=1, elHIGH=2 };
 
 class CCCC_Html_Stream;
+class CCCC_Metric;
 
 // the single class CCCC_Metric which will be defined later in this file 
 // will be used for all metrics
diff -urN ../tmp-orig/cccc-3.pre81/cccc/cccc_tbl.cc ./cccc/cccc_tbl.cc
--- ../tmp-orig/cccc-3.pre81/cccc/cccc_tbl.cc   2005-06-20 19:12:04.000000000 
+0200
+++ ./cccc/cccc_tbl.cc  2005-06-20 19:02:27.000000000 +0200
@@ -8,7 +8,7 @@
 
 
 template <class T> CCCC_Table<T>::CCCC_Table() 
-: iter_(end()), sorted(true)
+: iter_(this->end()), sorted(true)
 {
 }
 
@@ -46,7 +46,7 @@
 {
   T *retval=NULL;
   typename map_t::iterator value_iterator=map_t::find(name);
-  if(value_iterator!=end())
+  if(value_iterator!=this->end())
     {
       retval=(*value_iterator).second;
     }
@@ -91,7 +91,7 @@
 
 template <class T> void CCCC_Table<T>::reset_iterator()
 {
-  iter_=begin();
+  iter_=this->begin();
 }
 
 template <class T> T* CCCC_Table<T>::first_item()
@@ -103,7 +103,7 @@
 template <class T> T* CCCC_Table<T>::next_item()
 {
   T* retval=NULL;
-  if(iter_!=end())
+  if(iter_!=this->end())
     {
       retval=(*iter_).second;
       iter_++;
@@ -113,7 +113,7 @@
 
 template <class T> int CCCC_Table<T>::records()
 { 
-  return size(); 
+  return this->size(); 
 }
 
 #include "cccc_db.h"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to