Package: gnuift
Version: 0.1.14-6.1
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 gnuift_0.1.14-6.1 on bigsur by sbuild/mips 1.89
...
>  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAS_BOOL -DLINK_DYNAMICALLY -I../.. -g 
> -Wall -O2 -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8 
> -DEF_FILL=42 -I /usr/include/mysql -DHAVE_LIBPTHREAD -D__GIFT_NEW_IS_MALLOC 
> -D__GIFT_USES_THREADS__ -pthread -MT CAccessorFactoryContainer.lo -MD -MP -MF 
> .deps/CAccessorFactoryContainer.Tpo -c CAccessorFactoryContainer.cc  -fPIC 
> -DPIC -o .libs/CAccessorFactoryContainer.o
> ../../libMRML/include/CAccessorFactory.h:42: warning: 'class 
> CAccessorFactory' has virtual functions but non-virtual destructor
> ../../libGIFTAcInvertedFile/include/CAFInvertedFile.h:38: warning: 'class 
> CAFInvertedFile' has virtual functions but non-virtual destructor
> ../../libGIFTAcURL2FTS/include/CAFURL2FTS.h:35: warning: 'class CAFURL2FTS' 
> has virtual functions but non-virtual destructor
> ../../libGIFTAcDistanceMatrix/include/CAFDistanceMatrix.h:36: warning: 'class 
> CAFDistanceMatrix' has virtual functions but non-virtual destructor
> ../../libGIFTAcHierarchy/include/CAFHierarchy.h:37: warning: 'class 
> CAFHierarchy' has virtual functions but non-virtual destructor
> ../../libMRML/include/CAttributeList.h:82: error: extra qualification 
> 'CAttributeList::' on member 'toXML'
> ../../libMRML/include/CAttributeList.h:36: warning: 'class CAttributeList' 
> has virtual functions but non-virtual destructor
> ../../libMRML/include/CAFPlugin.h:41: warning: 'class CAFPlugin' has virtual 
> functions but non-virtual destructor
> CAccessorFactoryContainer.cc: In member function 'void 
> CAccessorFactoryContainer::configure(CXMLElement*)':
> CAccessorFactoryContainer.cc:100: warning: suggest parentheses around 
> assignment used as truth value
> ../../libMRML/include/CSelfDestroyPointer.h: In constructor 
> 'CSelfDestroyPointer<T>::CSelfDestroyPointer(T*, bool) [with T = 
> CXMLElement]':
> CAccessorFactoryContainer.cc:50:   instantiated from here
> ../../libMRML/include/CSelfDestroyPointer.h:37: warning: 
> 'CSelfDestroyPointer<CXMLElement>::mPointer' will be initialized after
> ../../libMRML/include/CSelfDestroyPointer.h:34: warning:   'bool 
> CSelfDestroyPointer<CXMLElement>::mIsSelfDestroyer'
> ../../libMRML/include/CSelfDestroyPointer.h:115: warning:   when initialized 
> here
> ../../libMRML/include/CSelfDestroyPointer.h: In member function 'T* 
> CSelfDestroyPointer<T>::operator=(T*) [with T = CXMLElement]':
> ../../libMRML/include/CSelfDestroyPointer.h:90: warning: control reaches end 
> of non-void function
> make[4]: *** [CAccessorFactoryContainer.lo] Error 1
> make[4]: Leaving directory 
> `/build/tbm/gnuift-0.1.14/build-tree/gift-0.1.14/libMRML/cc'
> make[3]: *** [all-recursive] Error 1

(There's another error, though, read on)

--- ./libGIFTAcInvertedFile/include/CInvertedFileChunk.h~       2006-03-12 
16:38:18.000000000 +0000
+++ ./libGIFTAcInvertedFile/include/CInvertedFileChunk.h        2006-03-12 
16:38:24.000000000 +0000
@@ -73,8 +73,7 @@
  * add one document of to the list for one feature 
  *
  */
-  void CInvertedFileChunk::addElement(TID inDocumentID,
-                                     double inDocumentFrequency);
+  void addElement(TID inDocumentID, double inDocumentFrequency);
 
 /**
  * 
--- ./libMRML/include/CAttributeList.h~ 2006-03-12 16:16:42.000000000 +0000
+++ ./libMRML/include/CAttributeList.h  2006-03-12 16:17:25.000000000 +0000
@@ -79,7 +79,7 @@
   virtual pair<bool,string> stringReadAttribute(const string& 
inAttribute)const;
   /** Outputting a string to XML 
    */
-  void CAttributeList::toXML(string& outString)const;
+  void toXML(string& outString)const;
   /** the destructor 
       in the case of char* as content it deletes the arrays of char.
    */
--- ./libMRML/include/CAccessorAdmin.h~ 2006-03-12 16:19:53.000000000 +0000
+++ ./libMRML/include/CAccessorAdmin.h  2006-03-12 16:19:58.000000000 +0000
@@ -111,11 +111,11 @@
   /** destructor */
   ~CAccessorAdmin();
   /**  */
-  string CAccessorAdmin::getAlgorithmIDListID()const;
+  string getAlgorithmIDListID()const;
   /**  */
-  string CAccessorAdmin::getName()const;
+  string getName()const;
   /**  */
-  string CAccessorAdmin::getID()const;
+  string getID()const;
 
   /** for sorting */
   friend class CSortByName_pAP;
--- ./libMRML/include/CSessionManager.h~        2006-03-12 16:21:51.000000000 
+0000
+++ ./libMRML/include/CSessionManager.h 2006-03-12 16:23:51.000000000 +0000
@@ -172,18 +172,18 @@
   bool rename(const string& inName);
   /** the list of preferred languages of this 
       is cleared */
-  void CSession::clearLanguages();
+  void clearLanguages();
   /** one language code is added at the back of the list
       of preferred languages */
-  void CSession::addLanguage(string inLanguageCode);
+  void addLanguage(string inLanguageCode);
   /** commit the list of languages. That means, here the
       actual language that will be used throughout the 
       translation is determined */
-  void CSession::commitLanguages(const CI18nTranslator& inTranslator);
+  void commitLanguages(const CI18nTranslator& inTranslator);
   /** get the preferred languages of this session */
-  list<string> CSession::getLanguages()const;
+  list<string> getLanguages()const;
   /** get the preferred languages of this session */
-  string CSession::getPreferredLanguage()const;
+  string getPreferredLanguage()const;
 
   //--------------------------------------------------
   /**  generating XML output for configuration/shandshake */
@@ -420,7 +420,7 @@
   /** i18n: get the list of preferred languages of this session */
   list<string> getSessionLanguages(const string& inSessionID)const;
   /** i18n: get the list of preferred languages of this session */
-  void CSessionManager::translate(string inSessionID,
+  void translate(string inSessionID,
                                  CXMLElement& inoutToBeTranslated)const;
 };
 
--- ./libMRML/include/CI18nTranslator.h~        2006-03-12 16:22:55.000000000 
+0000
+++ ./libMRML/include/CI18nTranslator.h 2006-03-12 16:23:02.000000000 +0000
@@ -98,11 +98,11 @@
   void translateXMLTree(string inLanguageCode,
                        CXMLElement& inoutToBeTranslated)const;
   /** for parsing the config file */
-  static void CI18nTranslator::startXMLElement(void *inUserData, 
+  static void startXMLElement(void *inUserData, 
                                               const char *inElementName, 
                                               const char **inAttributes);
   /** for parsing the config file */
-  static void CI18nTranslator::endXMLElement(void *inUserData, 
+  static void endXMLElement(void *inUserData, 
                                             const char *inElementName);
 };
 #endif



By the way, during configuration I also get the following (non-fatal)
error (but certainly a error!).  Unfortunately, I don't quite know how
to fix this one:

> checking for /usr/bin/perl... yes
> checking if we can embed a Perl interpreter into GIFT... cc1plus: warning: 
> command line option "-Wdeclaration-after-statement" is valid for C/ObjC but 
> not for C++
> perl-compile-test-program.cc: In function 'void xs_init()':
> perl-compile-test-program.cc:71: error: 'my_perl' was not declared in this 
> scope
> perl-compile-test-program.cc: In function 'void test()':
> perl-compile-test-program.cc:75: error: 'my_perl' was not declared in this 
> scope
> perl-compile-test-program.cc:97: warning: unused variable 'lInstruction'
> perl-compile-test-program.cc:102: warning: unused variable 'lName'
> perl-compile-test-program.cc:105: warning: unused variable 'lValue'
> perl-compile-test-program.cc:76: warning: unused variable 'count'
> no
> checking for the pthreads library -lpthreads... no
> checking whether pthreads work without any flags... no

-- 
Martin Michlmayr
http://www.cyrius.com/


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

Reply via email to