Package: inventor Version: 2.1.5-10-7 Severity: normal Tags: patch When building 'inventor' on ppc64/unstable, I get the following error:
make[5]: Entering directory `/inventor-2.1.5-10/lib/database/src/so' /usr/bin/g++ -g -D_REENTRANT -O3 -DIVBINDIR=\"/usr/bin\" -DIVLIBDIR=\"/usr/lib\" -DIVHDRTOP=\"/usr/include/Inventor\" -DIVFONTPATH=\"/usr/share/inventor/fonts\" -DIVHELPDIR=\"/usr/share/inventor/help\" -DIVDATADIR=\"/usr/share/inventor/data/models\" -DIVMATERIALSDIR=\"/usr/share/inventor/data/materials\" -DIVTEXTURESDIR=\"/usr/share/inventor/data/textures\" -DIVDEMOBINDIR=\"/usr/lib/inventor\" -DIVDEMODATADIR=\"/usr/share/inventor/data/demos\" -DPDFVIEWER=\"xpdf\" -I/usr/X11R6/include -I. -I../../../../lib/database/include -I../../../../lib/interaction/include -I../../../../lib/nodekits/include -I../../../../libSoXt/include -fPIC -O -DNDEBUG -c So.c++ SoType.c++: In static member function 'static SoType SoType::fromName(SbName)': SoType.c++:338: error: cast from 'void*' to 'int' loses precision SoOutput.c++: In member function 'int SoOutput::findReference(const SoBase*) const': SoOutput.c++:1468: error: cast from 'void*' to 'int' loses precision make[5]: *** [So.o] Error 1 make[5]: Leaving directory `/inventor-2.1.5-10/lib/database/src/so' With the attached patch 'inventor' can be compiled on ppc64. Regards Andreas Jochens diff -urN ../tmp-orig/inventor-2.1.5-10/lib/database/include/machine.h ./lib/database/include/machine.h --- ../tmp-orig/inventor-2.1.5-10/lib/database/include/machine.h 2006-04-06 07:23:57.000000000 +0000 +++ ./lib/database/include/machine.h 2006-04-06 07:23:21.000000000 +0000 @@ -371,7 +371,7 @@ #endif /* Added for Debian by Steve M. Robbins */ -#if (_MIPS_SZPTR == 64 || __ia64 || __x86_64 || __alpha__) +#if (_MIPS_SZPTR == 64 || __ia64 || __x86_64 || __alpha__ || __powerpc64__) # define USE_64BIT_HACKS 1 #else # define USE_64BIT_HACKS 0 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]