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.


--
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
diff -X EXCLUDES -ur OpenSceneGraph/src/osg/Image.cpp OpenSceneGraph_modded/src/osg/Image.cpp
--- OpenSceneGraph/src/osg/Image.cpp	2007-12-22 16:59:14.000000000 +0000
+++ OpenSceneGraph_modded/src/osg/Image.cpp	2007-12-21 21:04:43.000000000 +0000
@@ -25,6 +25,7 @@
 #include <osg/Texture2DArray>
 
 #include <string.h>
+#include <stdlib.h>
 
 #include "dxtctool.h"
 
diff -X EXCLUDES -ur OpenSceneGraph/src/osg/Notify.cpp OpenSceneGraph_modded/src/osg/Notify.cpp
--- OpenSceneGraph/src/osg/Notify.cpp	2007-12-22 16:59:14.000000000 +0000
+++ OpenSceneGraph_modded/src/osg/Notify.cpp	2007-12-21 21:07:00.000000000 +0000
@@ -12,6 +12,7 @@
 */
 #include <osg/Notify>
 #include <string>
+#include <stdlib.h>
 #include <iostream>
 #include <fstream>
 
diff -X EXCLUDES -ur OpenSceneGraph/src/osgDB/Field.cpp OpenSceneGraph_modded/src/osgDB/Field.cpp
--- OpenSceneGraph/src/osgDB/Field.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgDB/Field.cpp	2007-12-21 21:09:27.000000000 +0000
@@ -10,6 +10,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
  * OpenSceneGraph Public License for more details.
 */
+#include <string.h>
 #include <osgDB/Field>
 
 using namespace osgDB;
diff -X EXCLUDES -ur OpenSceneGraph/src/osgDB/FileNameUtils.cpp OpenSceneGraph_modded/src/osgDB/FileNameUtils.cpp
--- OpenSceneGraph/src/osgDB/FileNameUtils.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgDB/FileNameUtils.cpp	2007-12-21 21:13:26.000000000 +0000
@@ -11,6 +11,8 @@
  * OpenSceneGraph Public License for more details.
 */
 #include <stdlib.h>
+#include <string.h>
+#include <gmpxx.h>
 #include <limits.h>
 
 #include <osgDB/FileNameUtils>
diff -X EXCLUDES -ur OpenSceneGraph/src/osgDB/Registry.cpp OpenSceneGraph_modded/src/osgDB/Registry.cpp
--- OpenSceneGraph/src/osgDB/Registry.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgDB/Registry.cpp	2007-12-21 21:14:23.000000000 +0000
@@ -26,6 +26,7 @@
 #include <osgDB/Archive>
 
 #include <stdio.h>
+#include <gmpxx.h>
 
 #include <algorithm>
 #include <set>
diff -X EXCLUDES -ur OpenSceneGraph/src/osgPlugins/lwo/ReaderWriterLWO.cpp OpenSceneGraph_modded/src/osgPlugins/lwo/ReaderWriterLWO.cpp
--- OpenSceneGraph/src/osgPlugins/lwo/ReaderWriterLWO.cpp	2007-12-22 16:59:17.000000000 +0000
+++ OpenSceneGraph_modded/src/osgPlugins/lwo/ReaderWriterLWO.cpp	2007-12-21 21:46:39.000000000 +0000
@@ -16,6 +16,7 @@
 #endif
 
 #include <string>
+#include <memory>
 #include <sstream>
 #include <algorithm>
 
diff -X EXCLUDES -ur OpenSceneGraph/src/osgPlugins/x/directx.cpp OpenSceneGraph_modded/src/osgPlugins/x/directx.cpp
--- OpenSceneGraph/src/osgPlugins/x/directx.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgPlugins/x/directx.cpp	2007-12-21 21:47:44.000000000 +0000
@@ -30,6 +30,7 @@
 
 #include <iostream>
 #include <sstream>
+#include <string.h>
 
 #include <math.h>
 
diff -X EXCLUDES -ur OpenSceneGraph/src/osgPlugins/x/mesh.cpp OpenSceneGraph_modded/src/osgPlugins/x/mesh.cpp
--- OpenSceneGraph/src/osgPlugins/x/mesh.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgPlugins/x/mesh.cpp	2007-12-21 21:49:09.000000000 +0000
@@ -29,6 +29,8 @@
 #include "directx.h"
 
 #include <iostream>
+#include <string.h>
+#include <stdlib.h>
 
 #include <osg/Notify>
 
diff -X EXCLUDES -ur OpenSceneGraph/src/osgPlugins/x/types.cpp OpenSceneGraph_modded/src/osgPlugins/x/types.cpp
--- OpenSceneGraph/src/osgPlugins/x/types.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgPlugins/x/types.cpp	2007-12-21 21:50:20.000000000 +0000
@@ -29,6 +29,8 @@
 #include "types.h"
 
 #include <iostream>
+#include <string.h>
+#include <stdlib.h>
 
 using namespace std;
 
diff -X EXCLUDES -ur OpenSceneGraph/src/osgText/DefaultFont.cpp OpenSceneGraph_modded/src/osgText/DefaultFont.cpp
--- OpenSceneGraph/src/osgText/DefaultFont.cpp	2007-12-22 16:59:18.000000000 +0000
+++ OpenSceneGraph_modded/src/osgText/DefaultFont.cpp	2007-12-21 21:24:31.000000000 +0000
@@ -14,6 +14,7 @@
  * OpenSceneGraph Public License for more details.
 */
 
+#include <stdlib.h>
 #include "DefaultFont.h"
 
 #include <osg/Notify>
diff -X EXCLUDES -ur OpenSceneGraph/src/osgViewer/ViewerEventHandlers.cpp OpenSceneGraph_modded/src/osgViewer/ViewerEventHandlers.cpp
--- OpenSceneGraph/src/osgViewer/ViewerEventHandlers.cpp	2007-12-22 16:59:19.000000000 +0000
+++ OpenSceneGraph_modded/src/osgViewer/ViewerEventHandlers.cpp	2007-12-21 21:30:41.000000000 +0000
@@ -12,6 +12,7 @@
 */
 
 #include <stdlib.h>
+#include <values.h>
 
 #include <fstream>
 #include <osgViewer/Viewer>
-------------------------------------------------------------------------
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

Reply via email to