Re: [Flightgear-devel] Problems compiling latest CVS snapshot (2005-10-11)
Andy Ross wrote: This fix can't be checked in though, because it isn't correct*. The generated ID is not guaranteed to be unique. The right solution would be to either change the type of the ID to a long long or uint64_t, or generate an identifier from something other than the pointer value. This change has just been checked in. Erik ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] Problems compiling latest CVS snapshot (2005-10-11)
Hi Andy, thanks for the hint and patch. I should have searched in the mail archive. With the patch it compiles fine. Thanks Matthias This is a known bug when compiling on a 64 bit system. I fix it in my tree by double casting: --- AIBase.cxx 5 Sep 2005 13:25:09 - 1.41 +++ AIBase.cxx 10 Oct 2005 23:39:47 - @@ -398,7 +398,7 @@ } int FGAIBase::_getID() const { -return (int)(this); +return (int)(long)this; } This fix can't be checked in though, because it isn't correct*. The generated ID is not guaranteed to be unique. The right solution would be to either change the type of the ID to a long long or uint64_t, or generate an identifier from something other than the pointer value. ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] Problems compiling latest CVS snapshot (2005-10-11)
Hi all, I tried to compile a new CVS snapshot of FlightGear. I got following error message: Making all in AIModel make[2]: Entering directory `/home/boerner/scr/cvs/FlightGear/FlightGear-0.9/source/src/AIModel' if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/opt/FlightGear/flightgear-20051011/include -I/usr/X11R6/include -I/usr/local//include -march=k8 -O3 -pipe -funroll-loops -fomit-frame-pointer -D_REENTRANT -MT submodel.o -MD -MP -MF .deps/submodel.Tpo -c -o submodel.o submodel.cxx; \ then mv -f .deps/submodel.Tpo .deps/submodel.Po; else rm -f .deps/submodel.Tpo; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/opt/FlightGear/flightgear-20051011/include -I/usr/X11R6/include -I/usr/local//include -march=k8 -O3 -pipe -funroll-loops -fomit-frame-pointer -D_REENTRANT -MT AIManager.o -MD -MP -MF .deps/AIManager.Tpo -c -o AIManager.o AIManager.cxx; \ then mv -f .deps/AIManager.Tpo .deps/AIManager.Po; else rm -f .deps/AIManager.Tpo; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/opt/FlightGear/flightgear-20051011/include -I/usr/X11R6/include -I/usr/local//include -march=k8 -O3 -pipe -funroll-loops -fomit-frame-pointer -D_REENTRANT -MT AIBase.o -MD -MP -MF .deps/AIBase.Tpo -c -o AIBase.o AIBase.cxx; \ then mv -f .deps/AIBase.Tpo .deps/AIBase.Po; else rm -f .deps/AIBase.Tpo; exit 1; fi AIBase.cxx: In member function ‘int FGAIBase::_getID() const’: AIBase.cxx:401: error: cast from ‘const FGAIBase*’ to ‘int’ loses precision {standard input}: Assembler messages: {standard input}:446: Error: Local symbol `.LTHUNK0' can't be equated to undefined symbol `_ZN9logstreamD1Ev' {standard input}:446: Error: Local symbol `.LTHUNK1' can't be equated to undefined symbol `_ZN9logstreamD0Ev' make[2]: *** [AIBase.o] Error 1 make[2]: Leaving directory `/home/boerner/scr/cvs/FlightGear/FlightGear-0.9/source/src/AIModel' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/boerner/scr/cvs/FlightGear/FlightGear-0.9/source/src' make: *** [all-recursive] Error 1 Does anybody has an idea what this could be? I am working with SuSE 10.0, Kernel 2.6.13, gcc version 4.0.2 20050901. Greetings Matthias ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d