Package: lavaps
Version: 2.7-1
Severity: normal
Tags: patch
When building 'lavaps' on amd64/unstable with gcc-4.0,
I get the following error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DUSE_GTK_BLOB -DORBIT2=1 -pthread
-DXTHREADS -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/libxml2
-DUSE_PROCESS_SCAN_LINUX_PROC -Ilinux -g -Wall -DLAVAPS_STL_NAMESPACE=std
-DGNOMELOCALEDIR=\""/usr/share/locale"\" -g -O2 -MT process_model.o -MD -MP -MF
".deps/process_model.Tpo" -c -o process_model.o process_model.cc; \
then mv -f ".deps/process_model.Tpo" ".deps/process_model.Po"; else rm -f
".deps/process_model.Tpo"; exit 1; fi
process_model.cc: In member function 'void process_model::dump()':
process_model.cc:89: error: cast from 'process_model*' to 'int' loses precision
make[4]: *** [process_model.o] Error 1
make[4]: Leaving directory `/lavaps-2.7/src'
The attached patch fixes this problem.
Regards
Andreas Jochens
diff -urN ../tmp-orig/lavaps-2.7/src/blob.cc ./src/blob.cc
--- ../tmp-orig/lavaps-2.7/src/blob.cc 2004-12-16 06:12:38.000000000 +0100
+++ ./src/blob.cc 2005-04-02 14:32:14.069646690 +0200
@@ -503,7 +503,7 @@
blob::print()
{
ENTRY_TRACE(__FILE__,__LINE__);
- cout << O_("blob: ") << (unsigned)this << O_(" x=") << x_ << O_("
step=") << x_step_ << O_(" num=") << num_ << O_(":");
+ cout << O_("blob: ") << (unsigned long)this << O_(" x=") << x_ << O_("
step=") << x_step_ << O_(" num=") << num_ << O_(":");
for (int i = 0; i < num_; i++) {
cout << O_(" ") << y_lows_[i] << O_("-") << y_highs_[i];
};
diff -urN ../tmp-orig/lavaps-2.7/src/process_model.cc ./src/process_model.cc
--- ../tmp-orig/lavaps-2.7/src/process_model.cc 2003-07-15 05:32:09.000000000
+0200
+++ ./src/process_model.cc 2005-04-02 14:31:59.413394662 +0200
@@ -86,7 +86,7 @@
void
process_model::dump()
{
- cout << int(this) << " "<< pid_ << " " << uid_ << " " << cmd_.c_str()
<< " " <<
+ cout << long(this) << " "<< pid_ << " " << uid_ << " " << cmd_.c_str()
<< " " <<
endl;
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]