On Sat, Apr 02, 2005 at 03:09:40PM +0200, Andreas Jochens wrote: > 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.
I haven't been able to replicate the same problem here, but I'm not running AMD64. I am using gcc-4.0 from experimental on a unstable setup in i386, so there may be some inconsistencies in my setup. As your patch does not appear to introduce any problems in building against gcc/g++ 3.3 or 3.4, I will now merge the patch with the debian lavaps package. That way, once gcc4.0 moves into unstable, it *should* work with lavaps. I have informed upstream of the problem as well. -- Ashley T. Howes, Ph.D. http://www.ashleyhowes.com "Every man has his own destiny: The only imperative is to follow it, to accept it, no matter where it leads him." - Henry Miller
signature.asc
Description: Digital signature