Package: osgcal
Version: 0.1.32-1
Severity: serious
Tags: patch

When building 'osgcal' on amd64/unstable,
I get the following error:

 x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I./include -DSUPPORT_GIF_HLS 
-I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-Wall -g -O2 -MT Model.lo -MD -MP -MF .deps/Model.Tpo -c src/osgCal/Model.cpp  
-fPIC -DPIC -o .libs/Model.o
src/osgCal/Model.cpp: In function 'std::string convertProxyName(const 
std::string&)':
src/osgCal/Model.cpp:284: warning: comparison is always false due to limited 
range of data type
src/osgCal/Model.cpp: In member function 'void 
osgCal::Model::fixNormalSW(float)':
src/osgCal/Model.cpp:2121: error: cast from 'RadixUserSW*' to 'int' loses 
precision
make[3]: *** [Model.lo] Error 1
make[3]: Leaving directory `/osgcal-0.1.32'

With the attached patch 'osgcal' can be compiled on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/osgcal-0.1.32/include/osgCal/Model ./include/osgCal/Model
--- ../tmp-orig/osgcal-0.1.32/include/osgCal/Model      2005-09-04 
19:44:23.000000000 +0000
+++ ./include/osgCal/Model      2005-09-14 12:37:16.000000000 +0000
@@ -345,7 +345,7 @@
 class RadixFloatItem {
 public:
        float   value;
-       int             user;
+       long    user;
 };
 
 class FloatRadix {
diff -urN ../tmp-orig/osgcal-0.1.32/src/osgCal/Model.cpp ./src/osgCal/Model.cpp
--- ../tmp-orig/osgcal-0.1.32/src/osgCal/Model.cpp      2005-09-08 
07:40:45.000000000 +0000
+++ ./src/osgCal/Model.cpp      2005-09-14 12:36:35.000000000 +0000
@@ -2118,7 +2118,7 @@
         user->readNormal = readNormals[k];
 
         items[iv].value = user->calVertex->position.x;
-        items[iv].user = (int) user;
+        items[iv].user = (long) user;
         iv++;
       }
     }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to