Your message dated Sat, 15 Oct 2005 16:43:54 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#294437: fixed in vdk2 2.4.0-3
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Feb 2005 18:52:42 +0000
>From [EMAIL PROTECTED] Wed Feb 09 10:52:42 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c129064.adsl.hansenet.de (localhost.localdomain) [213.39.129.64]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Cywx7-00008e-00; Wed, 09 Feb 2005 10:52:42 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
id 1Cywx3-0007Dh-L5; Wed, 09 Feb 2005 19:52:37 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: vdk2: FTBFS (amd64/gcc-4.0): 'data' was not declared in this scope
Message-Id: <[EMAIL PROTECTED]>
Date: Wed, 09 Feb 2005 19:52:37 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: vdk2
Severity: normal
Tags: patch
When building 'vdk2' on amd64 with gcc-4.0,
I get the following error:
vdkclist.cc: In member function 'VDKIntArray& VDKCustomList::Selections()':
vdkclist.cc:380: error: cast from 'void*' to 'int' loses precision
make[3]: *** [vdkclist.lo] Error 1
make[3]: Leaving directory `/vdk2-2.4.0/vdk'
With the attached patch 'vdk2' can be compiled
on amd64 using gcc-4.0.
This patch includes a part which was already necessary for gcc-3.4
(see #262091).
Regards
Andreas Jochens
diff -urN ../tmp-orig/vdk2-2.4.0/vdk/vdkclist.cc ./vdk/vdkclist.cc
--- ../tmp-orig/vdk2-2.4.0/vdk/vdkclist.cc 2002-03-22 15:25:00.000000000
+0100
+++ ./vdk/vdkclist.cc 2005-02-09 18:03:40.494721340 +0100
@@ -377,7 +377,7 @@
// load array;
WideSelection = VDKIntArray(listSize);
for(t = 0; t < WideSelection.size();t++,list = list->next)
- WideSelection[t] = (int) list->data;
+ WideSelection[t] = (long) list->data;
}
return WideSelection;
}
diff -urN ../tmp-orig/vdk2-2.4.0/vdk/chart.cc ./vdk/chart.cc
--- ../tmp-orig/vdk2-2.4.0/vdk/chart.cc 2002-05-22 10:26:12.000000000 +0200
+++ ./vdk/chart.cc 2005-02-09 18:01:19.000078883 +0100
@@ -45,7 +45,8 @@
size = Usize;
printf("\nsize:%d,%d",size.x,size.y);
fflush(stdout);
- axis = ChartAxis(this,size.X(),size.Y());
+ ChartAxis a(this,size.X(),size.Y());
+ axis = a;
axis.Draw();
DrawTitle();
DrawChart();
@@ -115,7 +116,8 @@
void VDKChart::SetChartBorder(int b)
{
size = Usize;
-axis = ChartAxis(this,size.X(),size.Y());
+ChartAxis a(this,size.X(),size.Y());
+axis = a;
DrawChart();
}
/*
@@ -415,10 +417,11 @@
ChartAxis::ChartAxis(VDKChart* owner,int w, int h):
owner(owner)
{
- domain = VDKRect(owner->ChartBorder,
+ VDKRect r(owner->ChartBorder,
h-owner->ChartBorder,
w-owner->ChartBorder*2,
h-owner->ChartBorder*2);
+ domain = r;
}
/*
copy-initializer
diff -urN ../tmp-orig/vdk2-2.4.0/vdk/vdkbtrees.h ./vdk/vdkbtrees.h
--- ../tmp-orig/vdk2-2.4.0/vdk/vdkbtrees.h 2005-02-09 18:05:26.084305705
+0100
+++ ./vdk/vdkbtrees.h 2005-02-09 18:01:19.000078883 +0100
@@ -717,7 +717,7 @@
class AbstractRedBlackTree : public AbstractBinaryTree<T, Node> {
protected:
virtual Node *FindNode(T q)
- { return (AbstractBinaryTree<T, Node>::root) ? (Node *) root->find(q)
: NULL; }
+ { return (AbstractBinaryTree<T, Node>::root) ? (Node *)
this->root->find(q) : NULL; }
};
/*!
@@ -985,14 +985,14 @@
BlackHeight = -1;
// Check binary tree properties.
- if (parent != _parent)
+ if (this->parent != _parent)
return NULL;
- if (left) {
- if (object < left->object)
+ if (this->left) {
+ if (this->object < this->left->object)
return NULL;
}
- if (right) {
- if (right->object < object)
+ if (this->right) {
+ if (this->right->object < this->object)
return NULL;
}
@@ -1001,15 +1001,15 @@
// If a node is red, then both its children are black
// (NULL nodes are black).
if (clr == Red) {
- if ((left && left->clr != Black) ||
- (right && right->clr != Black))
+ if ((this->left && this->left->clr != Black) ||
+ (this->right && this->right->clr != Black))
return NULL;
}
// The black-heights of all leaf nodes are equal.
int bh = NULL;
- if ((! left) && (! right)) {
+ if ((! this->left) && (! this->right)) {
// Compute black-height of node
for (Node *sc = (Node *) this; sc; sc = sc->parent)
if (sc->clr == Black)
@@ -1023,9 +1023,9 @@
return NULL;
}
}
- if (left && (! left->CheckTreeProperties((Node *) this)))
+ if (this->left && (! this->left->CheckTreeProperties((Node *) this)))
return NULL;
- if (right && (! right->CheckTreeProperties((Node *) this)))
+ if (this->right && (! this->right->CheckTreeProperties((Node *) this)))
return NULL;
return 1;
}
diff -urN ../tmp-orig/vdk2-2.4.0/vdk/vdkheap.h ./vdk/vdkheap.h
--- ../tmp-orig/vdk2-2.4.0/vdk/vdkheap.h 2000-11-22 06:10:52.000000000
+0100
+++ ./vdk/vdkheap.h 2005-02-09 18:01:19.001078689 +0100
@@ -85,7 +85,7 @@
VDKHeap<T>::VDKHeap(T* source, int size): VDKContainer<T>(size)
{
for(int i = 0; i < size; i++)
- data[i] = source[i];
+ this->data[i] = source[i];
BuildHeap();
}
@@ -94,13 +94,13 @@
void VDKHeap<T>::Heapify(int i, int heapsize)
{
int l = left(i), r = right(i), largest = i;
- if( (l < heapsize) && (data[l] > data[i])) largest = l;
- if( (r < heapsize) && (data[r] > data[largest])) largest = r;
+ if( (l < heapsize) && (this->data[l] > this->data[i])) largest = l;
+ if( (r < heapsize) && (this->data[r] > this->data[largest])) largest = r;
if(largest != i)
{
- T temp = data[i];
- data[i] = data[largest];
- data[largest] = temp;
+ T temp = this->data[i];
+ this->data[i] = this->data[largest];
+ this->data[largest] = temp;
Heapify(largest,heapsize);
}
}
@@ -109,21 +109,21 @@
template <class T>
void VDKHeap<T>::BuildHeap(void)
{
- for (int i = (size()-1)/2 ; i >= 0; i--)
- Heapify(i,size());
+ for (int i = (this->size()-1)/2 ; i >= 0; i--)
+ Heapify(i,this->size());
}
// HEAPSORT
template <class T>
void VDKHeap<T>::Sort(void)
{
- int heapsize = size();
+ int heapsize = this->size();
int i = heapsize-1;
for(; i > 0; i--)
{
- T temp = data[0];
- data[0] = data[i];
- data[i] = temp;
+ T temp = this->data[0];
+ this->data[0] = this->data[i];
+ this->data[i] = temp;
heapsize--;
Heapify(0,heapsize);
}
---------------------------------------
Received: (at 294437-close) by bugs.debian.org; 15 Oct 2005 23:53:45 +0000
>From [EMAIL PROTECTED] Sat Oct 15 16:53:45 2005
Return-path: <[EMAIL PROTECTED]>
Received: from joerg by spohr.debian.org with local (Exim 3.36 1 (Debian))
id 1EQvgw-0001hP-00; Sat, 15 Oct 2005 16:43:54 -0700
From: Michael Vogt <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: lisa $Revision: 1.30 $
Subject: Bug#294437: fixed in vdk2 2.4.0-3
Message-Id: <[EMAIL PROTECTED]>
Sender: Joerg Jaspert <[EMAIL PROTECTED]>
Date: Sat, 15 Oct 2005 16:43:54 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2
Source: vdk2
Source-Version: 2.4.0-3
We believe that the bug you reported is fixed in the latest version of
vdk2, which is due to be installed in the Debian FTP archive:
libvdk2-2c2_2.4.0-3_i386.deb
to pool/main/v/vdk2/libvdk2-2c2_2.4.0-3_i386.deb
libvdk2-dbg_2.4.0-3_i386.deb
to pool/main/v/vdk2/libvdk2-dbg_2.4.0-3_i386.deb
libvdk2-dev_2.4.0-3_i386.deb
to pool/main/v/vdk2/libvdk2-dev_2.4.0-3_i386.deb
libvdk2-doc_2.4.0-3_all.deb
to pool/main/v/vdk2/libvdk2-doc_2.4.0-3_all.deb
vdk2_2.4.0-3.diff.gz
to pool/main/v/vdk2/vdk2_2.4.0-3.diff.gz
vdk2_2.4.0-3.dsc
to pool/main/v/vdk2/vdk2_2.4.0-3.dsc
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Vogt <[EMAIL PROTECTED]> (supplier of updated vdk2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 15 Oct 2005 11:58:27 +0200
Source: vdk2
Binary: libvdk2-doc libvdk2-2c2 libvdk2-dbg libvdk2-dev
Architecture: source i386 all
Version: 2.4.0-3
Distribution: unstable
Urgency: low
Maintainer: Michael Vogt <[EMAIL PROTECTED]>
Changed-By: Michael Vogt <[EMAIL PROTECTED]>
Description:
libvdk2-2c2 - Visual Development Kit C++ library version 2
libvdk2-dbg - debugging static library for the VDK C++ library version 2
libvdk2-dev - header files and static libraries for VDK library version 2
libvdk2-doc - documentation for VDK library version 2
Closes: 262091 294437 333971
Changes:
vdk2 (2.4.0-3) unstable; urgency=low
.
* c++ transition (finally *cough*)
closes: #294437, #262091, #333971
Files:
148f233af0ac62d998572ae3fae1dec8 743 - optional vdk2_2.4.0-3.dsc
0acac60d83a732fd955975782938673b 85552 - optional vdk2_2.4.0-3.diff.gz
247b26847db4ac70398120cceb622ed8 670556 doc optional
libvdk2-doc_2.4.0-3_all.deb
590ec9d9f42ae750d659dba474f5618f 1027680 devel optional
libvdk2-dev_2.4.0-3_i386.deb
cd96eac33f3594695549369129272216 314134 libs optional
libvdk2-2c2_2.4.0-3_i386.deb
0f28e860ada3b396acfecd197995d8f4 1017930 devel extra
libvdk2-dbg_2.4.0-3_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDUNhBliSD4VZixzQRAgl0AJ0ZyQnahOc+3Ob+FY/Ch8E9zaxlxACgnP4C
259FuBnvNK4go1F4o/Ums7Y=
=dxqQ
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]