Re: [Flightgear-devel] size of symbol
Andy Ross <[EMAIL PROTECTED]> said: > David Megginson wrote: > > Alex Perry writes: > > > Do we care about this error ? > > > /usr/bin/ld: Warning: size of symbol `current_model' changed from 4 to 8 in ../../src/Model/libModel.a(acmodel.o) > > > > Yes, I'm getting this as well and I don't understand it. > > It's a symbol collision. There's another "current_model" defined in > LaRCsim/ls_model.c. Renaming one of them fixes the issue. > > Why the linker doesn't detect this as a vanilla multiple-definitions > collision, instead of that weird size mismatch, though, is beyond me. > > Andy It's even weirder than that. Try taking out the "export" and see what it gives you for an error. The "duplicate" I got reported was on a source line that doesn't exist, supposedly from a simgear header file! Something is throwing the linker out of whack. Best, JIm ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] size of symbol
Sorry I mistyped thatit should have been "extern" not export :-/ Andy Ross <[EMAIL PROTECTED]> said: > David Megginson wrote: > > Alex Perry writes: > > > Do we care about this error ? > > > /usr/bin/ld: Warning: size of symbol `current_model' changed from 4 to 8 in ../../src/Model/libModel.a(acmodel.o) > > > > Yes, I'm getting this as well and I don't understand it. > > It's a symbol collision. There's another "current_model" defined in > LaRCsim/ls_model.c. Renaming one of them fixes the issue. > > Why the linker doesn't detect this as a vanilla multiple-definitions > collision, instead of that weird size mismatch, though, is beyond me. > > Andy It's even weirder than that. Try taking out the "extern" declaration and see what it gives you for an error. The "duplicate" I got reported was on a source line that doesn't exist, supposedly from a simgear header file! Something is throwing the linker out of whack. Best, Jim ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] size of symbol
David Megginson wrote: > Alex Perry writes: > > Do we care about this error ? > > /usr/bin/ld: Warning: size of symbol `current_model' changed from 4 to 8 in >../../src/Model/libModel.a(acmodel.o) > > Yes, I'm getting this as well and I don't understand it. It's a symbol collision. There's another "current_model" defined in LaRCsim/ls_model.c. Renaming one of them fixes the issue. Why the linker doesn't detect this as a vanilla multiple-definitions collision, instead of that weird size mismatch, though, is beyond me. Andy -- Andrew J. RossNextBus Information Systems Senior Software Engineer Emeryville, CA [EMAIL PROTECTED] http://www.nextbus.com "Men go crazy in conflagrations. They only get better one by one." - Sting (misquoted) ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
re: [Flightgear-devel] size of symbol
David Megginson <[EMAIL PROTECTED]> said: > Alex Perry writes: > > > Do we care about this error ? > > > > /usr/bin/ld: Warning: size of symbol `current_model' changed from 4 to 8 in ../../src/Model/libModel.a(acmodel.o) > > Yes, I'm getting this as well and I don't understand it. > It's probably the extern declaration...would think the problem goes away when you move it. Best, Jim ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
re: [Flightgear-devel] size of symbol
Alex Perry writes: > Do we care about this error ? > > /usr/bin/ld: Warning: size of symbol `current_model' changed from 4 to 8 in >../../src/Model/libModel.a(acmodel.o) Yes, I'm getting this as well and I don't understand it. All the best, David -- David Megginson [EMAIL PROTECTED] ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel