• Bug#266259: gnuift: FTBFS with gcc-3.4: there are no arguments to `begi

    From Andreas Jochens@1:229/2 to All on Tue Aug 17 11:10:13 2004
    From: [email protected]

    Package: gnuift
    Severity: normal
    Tags: patch

    When building 'gnuift' with gcc-3.4 I get the following error:

    In file included from ../../libGIFTAcDistanceMatrix/include/CPersistentMatrix.h:26,
    from ../../libGIFTAcDistanceMatrix/include/CPersistentTranslatedIndexMatrix.h:31,
    from ../../libGIFTAcDistanceMatrix/include/CDistanceCalculator.h:27,
    from ../../libGIFTAcDistanceMatrix/include/CAcDistanceMatrix.h:53,
    from CAcDistanceMatrix.cc:24: ../../libGIFTAcDistanceMatrix/include/CPersistentVector.h: In member function `bool CPersistentVector<T>::write(std::ostream&) const':
    ../../libGIFTAcDistanceMatrix/include/CPersistentVector.h:119: error: there are no arguments to `begin' that depend on a template parameter, so a declaration of `begin' must be available
    ../../libGIFTAcDistanceMatrix/include/CPersistentVector.h:119: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    ../../libGIFTAcDistanceMatrix/include/CPersistentVector.h:120: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available
    make[4]: *** [CAcDistanceMatrix.lo] Error 1
    make[4]: Leaving directory `/gnuift-0.1.13/build-tree/gift-0.1.13/libGIFTAcDistanceMatrix/cc'

    With the attached patch 'gnuift' can be compiled using gcc-3.4.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/gnuift-0.1.13/debian/patches/06_gcc-3.4.diff ./debian/patches/06_gcc-3.4.diff
    --- ../tmp-orig/gnuift-0.1.13/debian/patches/06_gcc-3.4.diff 1970-01-01 01:00:00.000000000 +0100
    +++ ./debian/patches/06_gcc-3.4.diff 2004-08-17 10:07:29.905724417 +0200
    @@ -0,0 +1,14 @@
    +diff -urN tmp/libGIFTAcDistanceMatrix/include/CPersistentVector.h gift-0.1.13/libGIFTAcDistanceMatrix/include/CPersistentVector.h
    +--- tmp/libGIFTAcDistanceMatrix/include/CPersistentVector.h 2004-08-05 17:14:22.000000000 +0200
    ++++ gift-0.1.13/libGIFTAcDistanceMatrix/include/CPersistentVector.h 2004-08-17 09:49:01.454234657 +0200
    +@@ -116,8 +116,8 @@
    +
    + template<class T>
    + bool CPersistentVector<T>::write(ostream& outStream)const{
    +- for(typename CPersistentVector<T>::const_iterator i=begin();
    +- i!=end();
    ++ for(typename CPersistentVector<T>::const_iterator i=this->begin();
    ++ i!=this->end();
    + i++){
    + binary_writer(outStream,
    + *i);


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