Package: python-visual Version: 3.1.1-4 Severity: normal Tags: patch When building 'python-visual' on amd64/unstable with gcc-4.0, I get the following error:
/usr/include/boost/config/compiler/gcc.hpp:92:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results" ../include/glcontext.h:17: warning: 'struct visual::glFont' has virtual functions but non-virtual destructor ../include/sphmodel.h: In member function 'float* visual::sph_model::avgptr(float*, float*)': ../include/sphmodel.h:59: error: cast from 'float*' to 'int' loses precision ../include/sphmodel.h:59: error: cast from 'float*' to 'int' loses precision ../include/sphmodel.h:59: error: cast from 'float*' to 'int' loses precision ../include/xgl.h: At global scope: ../include/xgl.h:30: warning: 'struct visual::xglFont' has virtual functions but non-virtual destructor make[2]: *** [ellipsoid.lo] Error 1 make[2]: Leaving directory `/python-visual-3.1.1/src' With the attached patch 'python-visual' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/python-visual-3.1.1/include/sphmodel.h ./include/sphmodel.h --- ../tmp-orig/python-visual-3.1.1/include/sphmodel.h 2004-12-22 17:28:47.000000000 +0100 +++ ./include/sphmodel.h 2005-04-09 09:31:35.827855963 +0200 @@ -56,7 +56,7 @@ inline float* avgptr( float* a, float* b) - { return (float*)( int(a) + ((int(b)-int(a))>>1) ); } + { return (float*)( long(a) + ((long(b)-long(a))>>1) ); } void subdivide( int span, float* v1, float* v2, float *v3 , float* s1, float* s2, float* s3 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]