Package: tela
Version: 2.0-9
Severity: normal
Tags: patch

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

/usr/lib/gcc/x86_64-linux/4.0.0/../../../../include/c++/4.0.0/backward/backward_warning.h:32:2:
 warning: #warning This file includes at least one deprecated or antiquated 
header. Please consider using one of the 32 headers found in section 17.4.1.2 
of the C++ standard. Examples include substituting the <X> header for the <X.h> 
header for C++ includes, or <iostream> instead of the deprecated header 
<iostream.h>. To disable this warning use -Wno-deprecated.
./objarithm.C: In function 'void LengthError(const char*, const Tobject&, const 
Tobject&)':
./object.H:266: error: 'Tshort::Tshort(const Tshort&)' is private
./objarithm.C:22: error: within this context
./object.H:266: error: 'Tshort::Tshort(const Tshort&)' is private
./objarithm.C:22: error: within this context
./objarithm.C: In function 'void UnaryError(const char*, const Tobject&)':
./object.H:266: error: 'Tshort::Tshort(const Tshort&)' is private
./objarithm.C:27: error: within this context
./objarithm.C: In function 'void BinError(const char*, const Tobject&, const 
Tobject&)':
./object.H:266: error: 'Tshort::Tshort(const Tshort&)' is private
./objarithm.C:32: error: within this context
./object.H:266: error: 'Tshort::Tshort(const Tshort&)' is private
./objarithm.C:32: error: within this context
./objarithm.C: In function 'void Transcen(const TTranscenFunctionPack&, 
Tobject&, const Tobject&)':
./object.H:266: error: 'Tshort::Tshort(const Tshort&)' is private
./objarithm.C:1769: error: within this context
make[1]: *** [objarithm.o] Error 1
make[1]: Leaving directory `/tela-2.0'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/tela-2.0/Ctgen.C ./Ctgen.C
--- ../tmp-orig/tela-2.0/Ctgen.C        2002-08-07 14:07:23.000000000 +0200
+++ ./Ctgen.C   2005-04-01 15:12:31.000000000 +0200
@@ -89,10 +89,10 @@
  private:
        const Tobject* ptr;
 
+ public:
         TCForm(const TCForm&); // do not implement
         TCForm& operator=(const TCForm&); // do not implement
 
- public:
        TCForm(const Tobject& obj) : ptr(&obj) {}
        friend ostream& operator<<(ostream& o, const TCForm& cf);
 };
diff -urN ../tmp-orig/tela-2.0/object.H ./object.H
--- ../tmp-orig/tela-2.0/object.H       2001-05-03 14:53:17.000000000 +0200
+++ ./object.H  2005-04-01 15:11:23.000000000 +0200
@@ -263,9 +263,9 @@
 class Tshort {
  private:
        const Tobject* ptr;
+ public:
         Tshort(const Tshort&);            // do not implement
         Tshort& operator=(const Tshort&); // do not implement
- public:
        Tshort(const Tobject& obj) : ptr(&obj) {}
        friend ostream& operator<<(ostream& o, const Tshort& sh);
 };


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

Reply via email to