Hi Fred,

Thank you! Yes, 512 links perfectly...

It's strange - I sort of saw the circular reference, and
tried many times to 'fix' the library 'order', but nothing
seemed to work! Each time with different problems...

I did _NOT_ think of putting a library TWICE, or perhaps
more times, in the list!

But I suppose it sort of make sense if the linker does
not look back to what it has already resolved! This
feels like a 'bug' in the linker, and seems like
someone should look at and fix the linker source ;=))

I note from the gcc site - http://gcc.gnu.org - that
they have a later release 4.3.3 2009-01-24, compared
to my 4.2.4 2008-05-19, and maybe this has been fixed
in there.

I see I could install this 4.3.3 through the 
Synaptic Package Manager, and might try this if I
get the time...

Anyway, lesson learned, and thanks for the speedy fix.
And also for the 'const' addition to remove the pesky
warning.

Regards,

Geoff.


On Sat, 2009-03-07 at 21:34 +0100, Frederic Bouvier wrote:
> I didn't read your message carefully. It was a bit tricky but it should
> be fixed now. Order of libraries in the link command is important and
> sometimes the same library must be put twice because of circular
> dependencies. Update your fgrun workspace ( to 512 ).
> 
> -Fred
> 
> Frederic Bouvier a écrit :
> > Hi Geoff,
> >
> > Mathias introduced a new SimGear Library : libsgbvh if I recall
> > correctly. Pretty sure it must be added to the link command.
> >
> > -Fred
> >
> > Geoff McLane a écrit :
> >   
> >> Hi Fred et al,
> >>
> >> In ubuntu, updated (cvs/svn) PLIB, SG, OSG, FG, and 
> >> FGRUN (svn/trunk) yesterday AND today (2009-03-07)...
> >>
> >> FG compiles and runs ok, at least for the default
> >> cessna...
> >>
> >> BUT can not get FGRUN to link! ;=((
> >>
> >> The big error output is given below.
> >>
> >> I thought it might just be missing some new SG things added very
> >> recently, like libsgbvh, so amended src/Makefile.am to include _ALL_
> >> the SG libraries, but still a problem! The error output changed to 2
> >> given below.
> >>
> >> I even tried a fresh svn checkout, and presently at revision 510
> >>
> >> Any help appreciated...
> >>
> >> I am using gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3), and 
> >> there is also a repeated 'warning' that has been there for a while :-
> >> make[2]: Entering directory `/home/geoff/fg/fgrun/trunk/fgrun/src'
> >> g++ -DHAVE_CONFIG_H -I.   -I/home/geoff/fg/install/simgear
> >> -I/home/geoff/fg/install/plib/include
> >> -I/home/geoff/fg/install/OpenSceneGraph/include
> >> -I/home/geoff/fg/install/simgear/include -DLOCALEDIR=
> >> \"/home/geoff/fg/install/fgrun/share/locale\" -g -O2 -MT wizard.o -MD
> >> -MP -MF .deps/wizard.Tpo -c -o wizard.o wizard.cxx
> >> In file included from wizard.cxx:8:
> >> folder_open.xpm:52: warning: deprecated conversion from string constant
> >> to ‘char*’
> >> ... repeated many many times ...
> >> But just adding 'const' in front of
> >> char * folder_open_xpm[] = {
> >> gets rid of this warning... 
> >>
> >> But still the LINK problem... Any others with this problem?
> >>
> >> Regards,
> >>
> >> Geoff.
> >>
> >> Error output 1
> >> g++ -DLOCALEDIR=\"/home/geoff/fg/install/fgrun/share/locale\" -g -O2
> >> -L/home/geoff/fg/install/plib/lib
> >> -L/home/geoff/fg/install/OpenSceneGraph/lib
> >> -L/home/geoff/fg/install/simgear/lib -o fgrun wizard.o wizard_funcs.o
> >> advanced.o advanced_funcs.o AirportBrowser.o AirportTable.o Fl_Table.o
> >> Fl_Table_Row.o Fl_OSG.o Fl_Heading_Dial.o main.o io.o fgfsrc.o logwin.o
> >> parkingloader.o settings.o util.o run_posix.o fgrun_pty.o -lsgmodel
> >> -lsgmath -lsgscreen -lsgprops -lsgxml -lsgmisc -lsgdebug -lsgstructure
> >> -lsgutil -lplibsg -lplibul -lplibnet -losgParticle -losgSim -losgViewer
> >> -losgGA -losgText -losgDB -losgUtil -losg -lOpenThreads -lfltk_gl
> >> -lpthread  -lfltk -lXft -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11
> >> -lm -lz -lutil -losgFX
> >> /home/geoff/fg/install/simgear/lib/libsgmodel.a(ModelRegistry.o): In
> >> function `simgear::BVHStaticGeometryBuilder::addTriangle(SGVec3<float>
> >> const&, SGVec3<float> const&, SGVec3<float> const&)':
> >> /home/geoff/fg/simgear/source/simgear/scene/model/../../../simgear/scene/bvh/BVHStaticGeometryBuilder.hxx:114:
> >>  undefined reference to 
> >> `simgear::BVHStaticTriangle::BVHStaticTriangle(unsigned int, unsigned int 
> >> const*)'
> >> /home/geoff/fg/install/simgear/lib/libsgmodel.a(ModelRegistry.o): In
> >> function
> >> `simgear::BVHStaticGeometryBuilder::buildTreeRecursive(std::list<simgear::BVHStaticGeometryBuilder::LeafRef,
> >>  std::allocator<simgear::BVHStaticGeometryBuilder::LeafRef> >&)':
> >> /home/geoff/fg/simgear/source/simgear/scene/model/../../../simgear/scene/bvh/BVHStaticGeometryBuilder.hxx:222:
> >>  undefined reference to 
> >> `simgear::BVHStaticBinary::BVHStaticBinary(unsigned int, 
> >> simgear::BVHStaticNode const*, simgear::BVHStaticNode const*, SGBox<float> 
> >> const&)'
> >> /home/geoff/fg/install/simgear/lib/libsgmodel.a(ModelRegistry.o): In
> >> function `simgear::BVHStaticGeometryBuilder::buildTree()':
> >> /home/geoff/fg/simgear/source/simgear/scene/model/../../../simgear/scene/bvh/BVHStaticGeometryBuilder.hxx:133:
> >>  undefined reference to 
> >> `simgear::BVHStaticGeometry::BVHStaticGeometry(simgear::BVHStaticNode 
> >> const*, simgear::BVHStaticData const*)'
> >> /home/geoff/fg/install/simgear/lib/libsgmodel.a(ModelRegistry.o): In
> >> function
> >> `simgear::BoundingVolumeBuildVisitor::pushMaterial(osg::StateSet*)':
> >> /home/geoff/fg/simgear/source/simgear/scene/model/BoundingVolumeBuildVisitor.hxx:401:
> >>  undefined reference to `SGMaterialLib::findMaterial(osg::StateSet const*)'
> >> /home/geoff/fg/simgear/source/simgear/scene/model/BoundingVolumeBuildVisitor.hxx:401:
> >>  undefined reference to `SGMaterialLib::findMaterial(osg::StateSet const*)'
> >> /home/geoff/fg/simgear/source/simgear/scene/model/BoundingVolumeBuildVisitor.hxx:401:
> >>  undefined reference to `SGMaterialLib::findMaterial(osg::StateSet const*)'
> >> /home/geoff/fg/simgear/source/simgear/scene/model/BoundingVolumeBuildVisitor.hxx:401:
> >>  undefined reference to `SGMaterialLib::findMaterial(osg::StateSet const*)'
> >> collect2: ld returned 1 exit status
> >> make[2]: *** [fgrun] Error 1
> >> make[2]: Leaving directory `/home/geoff/fg/fgrun/fgrun/src'
> >> make[1]: *** [all] Error 2
> >> make[1]: Leaving directory `/home/geoff/fg/fgrun/fgrun/src'
> >> make: *** [all-recursive] Error 1
> >>
> >> Error output 2:
> >> g++ -DLOCALEDIR=\"/home/geoff/fg/install/fgrun/share/locale\" -g -O2
> >> -L/home/geoff/fg/install/plib/lib
> >> -L/home/geoff/fg/install/OpenSceneGraph/lib
> >> -L/home/geoff/fg/install/simgear/lib -o fgrun wizard.o wizard_funcs.o
> >> advanced.o advanced_funcs.o AirportBrowser.o AirportTable.o Fl_Table.o
> >> Fl_Table_Row.o Fl_OSG.o Fl_Heading_Dial.o main.o io.o fgfsrc.o logwin.o
> >> parkingloader.o settings.o util.o run_posix.o fgrun_pty.o -lsgmodel
> >> -lsgmath -lsgscreen -lsgprops -lsgxml -lsgmisc -lsgdebug -lsgstructure
> >> -lsgutil -lsgbvh -lsgmaterial -lsgtgdb -lsgsky -lsgbucket -lsgephem
> >> -lsgthreads -lsgio -lsgroute -lsgsound -lsgtiming -lsgmagvar
> >> -lsgenvironment -lsgnasal -lsgserial -lplibsg -lplibul -lplibnet
> >> -losgParticle -losgSim -losgViewer -losgGA -losgText -losgDB -losgUtil
> >> -losg -lOpenThreads -lfltk_gl -lpthread  -lfltk -lXft -lGL -lXmu -lXt
> >> -lSM -lICE -lXi -lXext -lX11  -lm -lz -lutil -losgFX
> >> /home/geoff/fg/install/simgear/lib/libsgmaterial.a(matlib.o): In
> >> function `SGMaterialLib::load(std::basic_string<char,
> >> std::char_traits<char>, std::allocator<char> > const&,
> >> std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> >> const&, char const*, SGPropertyNode*)':
> >> /home/geoff/fg/simgear/source/simgear/scene/material/matlib.cxx:90:
> >> undefined reference to `sgReadCondition(SGPropertyNode*, SGPropertyNode
> >> const*)'
> >> /home/geoff/fg/install/simgear/lib/libsgmaterial.a(mat.o): In function
> >> `SGLoadTexture2D':
> >> /home/geoff/fg/simgear/source/simgear/scene/material/../../../simgear/scene/model/model.hxx:37:
> >>  undefined reference to `SGLoadTexture2D(bool, std::basic_string<char, 
> >> std::char_traits<char>, std::allocator<char> > const&, 
> >> osgDB::ReaderWriter::Options const*, bool, bool, int)'
> >> /home/geoff/fg/install/simgear/lib/libsgmaterial.a(mat.o): In function
> >> `SingletonRefPtr':
> >> /home/geoff/fg/simgear/source/simgear/scene/material/../../../simgear/structure/Singleton.hxx:36:
> >>  undefined reference to 
> >> `simgear::StateAttributeFactory::StateAttributeFactory()'
> >> /home/geoff/fg/simgear/source/simgear/scene/material/../../../simgear/structure/Singleton.hxx:36:
> >>  undefined reference to 
> >> `simgear::StateAttributeFactory::StateAttributeFactory()'
> >> /home/geoff/fg/simgear/source/simgear/scene/material/../../../simgear/structure/Singleton.hxx:36:
> >>  undefined reference to 
> >> `simgear::StateAttributeFactory::StateAttributeFactory()'
> >> /home/geoff/fg/install/simgear/lib/libsgmaterial.a(matmodel.o): In
> >> function `SGMatModel::get_randomized_range_m(mt*) const':
> >> /home/geoff/fg/simgear/source/simgear/scene/material/matmodel.cxx:190:
> >> undefined reference to `mt_rand'
> >> /home/geoff/fg/install/simgear/lib/libsgmaterial.a(matmodel.o): In
> >> function `SGMatModel::get_random_model(SGPropertyNode*)':
> >> /home/geoff/fg/simgear/source/simgear/scene/material/matmodel.cxx:171:
> >> undefined reference to `sg_random'
> >> /home/geoff/fg/install/simgear/lib/libsgmaterial.a(matmodel.o): In
> >> function `SGMatModel::load_models(SGPropertyNode*)':
> >> /home/geoff/fg/simgear/source/simgear/scene/material/matmodel.cxx:128:
> >> undefined reference to
> >> `simgear::SGModelLib::loadModel(std::basic_string<char,
> >> std::char_traits<char>, std::allocator<char> > const&, SGPropertyNode*,
> >> simgear::SGModelData*)'
> >> collect2: ld returned 1 exit status
> >> make[2]: *** [fgrun] Error 1
> >> make[2]: Leaving directory `/home/geoff/fg/fgrun/trunk/fgrun/src'
> >> make[1]: *** [all] Error 2
> >> make[1]: Leaving directory `/home/geoff/fg/fgrun/trunk/fgrun/src'
> >> make: *** [all-recursive] Error 1
> >>
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
> >> CA
> >> -OSBC tackles the biggest issue in open source: Open Sourcing the 
> >> Enterprise
> >> -Strategies to boost innovation and cut costs with open source 
> >> participation
> >> -Receive a $600 discount off the registration fee with the source code: 
> >> SFAD
> >> http://p.sf.net/sfu/XcvMzF8H
> >> _______________________________________________
> >> Flightgear-devel mailing list
> >> Flightgear-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
> >>   
> >>     
> >
> >
> >   
> 
> 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to