[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#325357: vrweb: FTBFS on 64 bit arches: cast from 'AnyLight*' to 'int' loses precision



Package: vrweb
Version: 1.5-12
Severity: serious

Hi,

Your package is failing to build on 64 bit arches with the
following error:
g++ -O -O -DLINUX_ELF -DVERBOSE -DASSERT -Dcplusplus_2_1 -DInterViews -Div_nls -DOSMajorVersion=2 -DOSMinorVersion=0 -DLINUX -DHG_OSMaj=2 -DHG_OSMin=0  -I/build/buildd/vrweb-1.5/installed/include     -pipe  -c /build/buildd/vrweb-1.5/src/harmony/scene/bspbuild.C
/build/buildd/vrweb-1.5/src/harmony/scene/bspbuild.C: In member function 'virtu
al void QvIndexedFaceSet::buildBSP(BSPTree*)':
/build/buildd/vrweb-1.5/src/harmony/scene/bspbuild.C:1218: error: cast from 'An
yLight*' to 'int' loses precision
make[4]: *** [bspbuild.o] Error 1

It's trying to print the address.  In C, with printf,
you'd use a %p for it.  I have no idea if std::cout has
something simular.

I think the easiest way to fix it would be cast it to an intptr_t.


Kurt




Reply to: