Sid Boyce wrote: > Martin Gansser wrote: >> hi, >> >> i tried to built fgfs-Atlas-0.3.1 on Fedora 8 against FlightGear-1.0.0 >> fgfs-base-1.0.0 and SimGear-1.0.0, but this fails with the following >> error message: >> >> >> g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 >> -mtune=generic -fasynchronous-unwind-tables -fPIC >> -DFGBASE_DIR='"/usr/share/FlightGear"' -L/usr/local//lib -o Atlas >> Atlas.o FlightTrack.o LoadPng.o LoadJpg.o MapBrowser.o Output.o >> OutputGL.o Overlays.o Projection.o -lsgmagvar -lsgtiming -lsgmisc -lsgio >> -lsgserial -lsgdebug -lsgbucket -lsgxml -lplibsg -lplibpu -lplibul >> -lplibfnt -lplibnet -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext >> -lX11 -lpthread -lm -lpng -lz -lpthread -ljpeg -lplibul -lcurl -lm >> g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 >> -mtune=generic -fasynchronous-unwind-tables -fPIC >> -DFGBASE_DIR='"/usr/share/FlightGear"' -L/usr/local//lib -o Map Map.o >> FlightTrack.o MapMaker.o Output.o OutputGL.o Overlays.o Projection.o >> Scenery.o fg_mkdir.o -lsgmagvar -lsgtiming -lsgmisc -lsgio -lsgdebug >> -lplibsg -lplibpu -lplibul -lplibfnt -lsgbucket -lsgscreen -lglut -lGLU >> -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lpthread -lm -lpng -lz >> -ljpeg -lplibul -lcurl -lm >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0xcd4): undefined reference to >> `sg_exception::sg_exception(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> const&)' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0xd14): undefined reference to `sg_exception::~sg_exception()' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0xd1c): undefined reference to `typeinfo for sg_exception' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0x17c4): undefined reference to >> `sg_exception::sg_exception(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> const&)' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0x1804): undefined reference to `sg_exception::~sg_exception()' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0x180c): undefined reference to `typeinfo for sg_exception' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(lowleveltime.o): >> In function `fgtzset_internal(int, char const*)': >> (.text+0x11be): undefined reference to >> `sg_exception::sg_exception(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> const&)' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(lowleveltime.o): >> In function `fgtzset_internal(int, char const*)': >> (.text+0x11e7): undefined reference to `sg_exception::~sg_exception()' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(lowleveltime.o): >> In function `fgtzset_internal(int, char const*)': >> (.text+0x11ef): undefined reference to `typeinfo for sg_exception' >> collect2: ld returned 1 exit status >> make[3]: *** [Atlas] Error 1 >> make[3]: *** Waiting for unfinished jobs.... >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0xcd4): undefined reference to >> `sg_exception::sg_exception(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> const&)' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0xd14): undefined reference to `sg_exception::~sg_exception()' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0xd1c): undefined reference to `typeinfo for sg_exception' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0x17c4): undefined reference to >> `sg_exception::sg_exception(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> const&)' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0x1804): undefined reference to `sg_exception::~sg_exception()' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(timezone.o): >> In function `SGTimeZoneContainer::SGTimeZoneContainer(char const*)': >> (.text+0x180c): undefined reference to `typeinfo for sg_exception' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(lowleveltime.o): >> In function `fgtzset_internal(int, char const*)': >> (.text+0x11be): undefined reference to >> `sg_exception::sg_exception(std::basic_string<char, >> std::char_traits<char>, std::allocator<char> > const&, >> std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> const&)' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(lowleveltime.o): >> In function `fgtzset_internal(int, char const*)': >> (.text+0x11e7): undefined reference to `sg_exception::~sg_exception()' >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libsgtiming.a(lowleveltime.o): >> In function `fgtzset_internal(int, char const*)': >> (.text+0x11ef): undefined reference to `typeinfo for sg_exception' >> collect2: ld returned 1 exit status >> make[3]: *** [Map] Error 1 >> >> any hint ? >> >> Regards Martin >> >> > > I can't see a specific C++ source file it's complaining about, but one > or more in the directory needs "#include <memory>" inserted somewhere > near the top. > With openSUSE gcc-4.3 I had lots of header files missing in the > OpenSceneGraph sources and I was asked to submit a diff, which I have done. > I shall grab the Atlas source adn have a go myself. > Regards > Sid. > > The diff for OpenSceneGraph latest SVN. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------
I got the latest cvs of Atlas and had to make the following changes in order to successfully build it and I have it working. diff -ur Atlas/src/fg_mkdir.cxx Atlas_modded/src/fg_mkdir.cxx --- Atlas/src/fg_mkdir.cxx 2005-01-28 12:54:12.000000000 +0000 +++ Atlas_modded/src/fg_mkdir.cxx 2007-12-22 23:16:13.000000000 +0000 @@ -34,6 +34,7 @@ #endif #include <string.h> #include <string> +#include <stdlib.h> using namespace std; Only in Atlas_modded/src: Makefile.in diff -ur Atlas/src/Overlays.cxx Atlas_modded/src/Overlays.cxx --- Atlas/src/Overlays.cxx 2007-11-15 10:46:15.000000000 +0000 +++ Atlas_modded/src/Overlays.cxx 2007-12-22 22:43:10.000000000 +0000 @@ -22,6 +22,7 @@ #include <stdio.h> #include <zlib.h> +#include "/usr/local/include/osgUtil/RenderBin" #include <map> #include "Overlays.hxx" Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users