Package: orsa
Version: 0.7.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 attached.


> Automatic build of orsa_0.7.0-4 on em64t by sbuild/amd64 1.106
...
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./misc -I./.. -DQT_THREAD_SUPPORT 
> -D_REENTRANT -g -Wall -W -pipe -ftemplate-depth-64 -O3 -fno-exceptions 
> -funroll-loops -fstrict-aliasing -fno-gcse -I/usr/include -c orsa_body.cc -MT 
> orsa_body.lo -MD -MP -MF .deps/orsa_body.TPlo  -fPIC -DPIC -o 
> .libs/orsa_body.o
> orsa_units.h:431: warning: 'class orsa::UniverseTypeAwareTime' has virtual 
> functions but non-virtual destructor
> orsa_body.h:186: error: extra qualification 'orsa::Body::' on member 
> 'distanceVector'
> make[5]: *** [orsa_body.lo] Error 1


--- ./src/liborsa/orsa_body.h~  2006-03-22 02:51:10.000000000 +0000
+++ ./src/liborsa/orsa_body.h   2006-03-22 02:51:18.000000000 +0000
@@ -183,7 +183,7 @@
     inline void SetVelocity(const double x, const double y, const double z) { 
Vector v(x,y,z); SetVelocity(v); }
     
     // b position - this position
-    inline Vector Body::distanceVector(const Body & b) const { return 
b.position()-position(); }
+    inline Vector distanceVector(const Body & b) const { return 
b.position()-position(); }
     inline double distance(const Body & b) const { return 
distanceVector(b).Length(); }
     
     // alias
--- ./src/libxorsa/xorsa_import_astorb_objects.h~       2006-03-22 
02:58:28.000000000 +0000
+++ ./src/libxorsa/xorsa_import_astorb_objects.h        2006-03-22 
02:58:33.000000000 +0000
@@ -600,7 +600,7 @@
   inline XOrsaAstorbObjectItem(QListView *parent, QString label1, QString 
label2 = QString::null, QString label3 = QString::null, QString label4 = 
QString::null, QString label5 = QString::null, QString label6 = QString::null, 
QString label7 = QString::null, QString label8 = QString::null) : 
QListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, 
label8) { };
   
  public:
-  inline int XOrsaAstorbObjectItem::compare(QListViewItem *i, int col, bool 
ascending) const {
+  inline int compare(QListViewItem *i, int col, bool ascending) const {
 
     using std::atof;
         
--- ./src/libxorsa/xorsa_object_selector.cc~    2006-03-22 03:07:17.000000000 
+0000
+++ ./src/libxorsa/xorsa_object_selector.cc     2006-03-22 03:07:25.000000000 
+0000
@@ -40,7 +40,7 @@
   XOrsaObjectItem(QListView *parent, QString label1, QString label2 = 
QString::null, QString label3 = QString::null, QString label4 = QString::null, 
QString label5 = QString::null, QString label6 = QString::null, QString label7 
= QString::null, QString label8 = QString::null);
   
  public:
-  int XOrsaObjectItem::compare(QListViewItem * i, int col, bool ascending) 
const;    
+  int compare(QListViewItem * i, int col, bool ascending) const;    
   
 };
 
--- ./src/orsa/xorsa.h~ 2006-03-22 03:13:38.000000000 +0000
+++ ./src/orsa/xorsa.h  2006-03-22 03:13:41.000000000 +0000
@@ -62,7 +62,7 @@
   ObjectItem(QListView *parent, QString label1, QString label2 = 
QString::null, QString label3 = QString::null, QString label4 = QString::null, 
QString label5 = QString::null, QString label6 = QString::null, QString label7 
= QString::null, QString label8 = QString::null);
   
  public:
-  int ObjectItem::compare(QListViewItem * i, int col, bool ascending) const;   
 
+  int compare(QListViewItem * i, int col, bool ascending) const;    
   
 };
 

-- 
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