Package: poker3d
Severity: normal
Tags: patch

When building 'poker3d' on amd64 with gcc-4.0,
I get the following error:

 ccache x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/SDL 
-D_REENTRANT -I/usr/include/python2.3 -I/usr/include/libxml2 
-I/usr/include/poker-eval -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I../../include -I../../examples/poker -pipe -O3 -Wall -Wpointer-arith 
-Wstrict-prototypes -MT vision.lo -MD -MP -MF .deps/vision.Tpo -c vision.cpp  
-fPIC -DPIC -o .libs/vision.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
vision.cpp: In function 'void RecursiveLeakCheck(osg::NodeVisitor*)':
vision.cpp:168: error: cast from 'osg::Node*' to 'int' loses precision
make[4]: *** [vision.lo] Error 1
make[4]: Leaving directory `/poker3d-0.2.12/src/maf'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/poker3d-0.2.12/src/maf/vision.cpp ./src/maf/vision.cpp
--- ../tmp-orig/poker3d-0.2.12/src/maf/vision.cpp       2004-11-06 
16:10:55.000000000 +0100
+++ ./src/maf/vision.cpp        2005-02-03 21:56:19.909800254 +0100
@@ -165,7 +165,7 @@
       i != leakNodes->mNodes.end();
       i++) {
     if((*i)->referenceCount() > 1) {
-      g_debug("RecursiveLeakCheck: reachable: %s|%s|0x%08x %d", 
(*i)->className(), (*i)->getName().c_str(), (int)i->get(), 
(*i)->referenceCount());
+      g_debug("RecursiveLeakCheck: reachable: %s|%s|0x%16x %d", 
(*i)->className(), (*i)->getName().c_str(), (long)i->get(), 
(*i)->referenceCount());
     }
   }
   delete leakNodes;


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

Reply via email to