You should also check *very* carefully to make sure you don't have a
stray packaged copy of plib installed on your system somewhere.  If
that was built with a different version of the compiler (very
plausible) then you would see errors similar to what you are
reporting.

Regards,

Curt.

Josh Babcock writes:
> Hmm, I compiled and installed plib, then did a make clean, make and make 
> install on simgear, then a make clean on FlightGear, and the make for 
> Flightgerar still gives the same kind of error:
> 
> <snip>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src 
> -I/usr/X11R6/include -DPKGLIBDIR=\"/usr/local/lib/FlightGear\" -g -O2 
> -D_REENTRANT -c -o viewmgr.o `test -f viewmgr.cxx || echo './'`viewmgr.cxx
> rm -f libMain.a
> ar cru libMain.a main.o fg_commands.o fg_init.o fg_io.o fg_props.o 
> globals.o logger.o options.o splash.o util.o viewer.o viewmgr.o
> ranlib libMain.a
> source='bootstrap.cxx' object='bootstrap.o' libtool=no \
> depfile='.deps/bootstrap.Po' tmpdepfile='.deps/bootstrap.TPo' \
> depmode=gcc3 /bin/sh ../../depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src 
> -I/usr/X11R6/include -DPKGLIBDIR=\"/usr/local/lib/FlightGear\" -g -O2 
> -D_REENTRANT -c -o bootstrap.o `test -f bootstrap.cxx || echo 
> './'`bootstrap.cxx
> g++ -DPKGLIBDIR=\"/usr/local/lib/FlightGear\" -g -O2 -D_REENTRANT 
> -L/usr/X11R6/lib -o fgfs bootstrap.o ../../src/Main/libMain.a 
> ../../src/Aircraft/libAircraft.a ../../src/ATC/libATC.a 
> ../../src/Autopilot/libAutopilot.a ../../src/Cockpit/libCockpit.a 
> ../../src/Cockpit/built_in/libBuilt_in.a 
> ../../src/Controls/libControls.a ../../src/FDM/libFlight.a 
> ../../src/FDM/Balloon/libBalloon.a 
> ../../src/FDM/ExternalNet/libExternalNet.a 
> ../../src/FDM/ExternalPipe/libExternalPipe.a 
> ../../src/FDM/JSBSim/libJSBSim.a ../../src/FDM/YASim/libYASim.a 
> ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a 
> ../../src/FDM/LaRCsim/libLaRCsim.a 
> ../../src/FDM/UIUCModel/libUIUCModel.a ../../src/GUI/libGUI.a 
> ../../src/Input/libInput.a 
> ../../src/Instrumentation/libInstrumentation.a 
> ../../src/Model/libModel.a ../../src/Network/libNetwork.a 
> ../../src/Navaids/libNavaids.a ../../src/Scenery/libScenery.a 
> ../../src/Sound/libSound.a ../../src/Airports/libAirports.a 
> ../../src/MultiPlayer/libMultiPlayer.a ../../src/Objects/libObjects.a 
> ../../src/Replay/libReplay.a ../../src/Systems/libSystems.a 
> ../../src/Time/libTime.a ../../src/Environment/libEnvironment.a 
> -lsgclouds3d -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb 
> -lsgmodel -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops 
> -lsgdebug -lsgmagvar -lsgmisc -lsgxml -lsgsound -lsgserial -lsgstructure 
> -lsgthreads -lpthread -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg 
> -lplibsg -lplibul -lz -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi 
> -lXext -lX11 -ldl -lm -lplibsl -lplibsm
> ../../src/Main/libMain.a(main.o)(.text+0x804): In function 
> `trRenderFrame()':
> ../../src/Scenery/scenery.hxx:369: undefined reference to 
> `ssgCullAndDraw(ssgRoot*)'
> ../../src/Main/libMain.a(main.o)(.text+0x844):../../src/Scenery/scenery.hxx:369: 
> undefined reference to `ssgCullAndDraw(ssgRoot*)'
> ../../src/Main/libMain.a(main.o)(.text+0x858):../../src/Scenery/scenery.hxx:369: 
> undefined reference to `ssgCullAndDraw(ssgRoot*)'
> ../../src/Main/libMain.a(main.o)(.text+0x1377): In function 
> `fgRenderFrame()':
> ../../src/Scenery/scenery.hxx:369: undefined reference to 
> `ssgCullAndDraw(ssgRoot*)'
> ../../src/Main/libMain.a(main.o)(.text+0x13b0):../../src/Scenery/scenery.hxx:369: 
> undefined reference to `ssgCullAndDraw(ssgRoot*)'
> ../../src/Main/libMain.a(main.o)(.text+0x13ce):../../src/Scenery/scenery.hxx:369: 
> more undefined references to `ssgCullAndDraw(ssgRoot*)' follow
> collect2: ld returned 1 exit status
> make[2]: *** [fgfs] Error 1
> make[2]: Leaving directory `/usr/local/src/FlightGear-0.9.3/src/Main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/FlightGear-0.9.3/src'
> make: *** [all-recursive] Error 1
> 
> 
> After re-installing the regular 1.6.0 distribution of plib and cleaning, 
> making and installing plib, SimGear and FlightGear, everything is back 
> the way it was before. Something is definitely broken with the patch, it 
> is the only thing that I changed between the two builds. Is it possible 
> that I picked up a bug in FlightGear from CVS recently and the plib 
> patch is activating it?
> 
> Josh
> 
> Andy Ross wrote:
> 
> >Josh Babcock wrote:
> >  
> >
> >>OK, the snapshot file solves that problem, but I think that main.o >
> >>is failing to link.  See here:
> >>    
> >>
> >
> >You swapped plib versions, but still have some SimGear and/or
> >FlightGear files compiled against the old one.  In general, C++
> >libraries aren't binary compatible across versions.  You need to do a
> >complete rebuild.
> >
> >Andy
> >
> >
> >_______________________________________________
> >Flightgear-devel mailing list
> >[EMAIL PROTECTED]
> >http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> >
> >  
> >
> 
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel

-- 
Curtis Olson   HumanFIRST Program               FlightGear Project
Twin Cities    curt 'at' me.umn.edu             curt 'at' flightgear.org
Minnesota      http://www.flightgear.org/~curt  http://www.flightgear.org

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to