June 6, 200520 yr Hi, I'm actually trying to compile the old version 0.6.1of Flight Gear on SuSE Linux 8.2. The compiler is gcc version 3.3 20030226."Configure" works fine, but with "make" the comiler produces the following error messages: linux:/usr/local/FlightGear-0.6.1 # makeMaking all in Includemake[1]: Entering directory `/usr/local/FlightGear-0.6.1/Include'make[1]: Nothing to be done for `all'.make[1]: Leaving directory `/usr/local/FlightGear-0.6.1/Include'Making all in Libmake[1]: Entering directory `/usr/local/FlightGear-0.6.1/Lib'Making all in Bucketmake[2]: Entering directory `/usr/local/FlightGear-0.6.1/Lib/Bucket'c++ -DHAVE_CONFIG_H -I. -I. -I../../Include -I../.. -I../../Lib -I/usr/local/include -I/usr/X11R6/include -g -O2 -c newbucket.cxxIn file included from ../../Lib/Misc/fgpath.hxx:34, from newbucket.cxx:33:../../Include/compiler.h:90:6: #error Time to upgrade. GNU compilers < 2.7 not supportedIn file included from newbucket.cxx:33:../../Lib/Misc/fgpath.hxx:36:10: #include expects "FILENAME" or In file included from newbucket.cxx:33:../../Lib/Misc/fgpath.hxx:54: error: 'string' is used as a type, but is not defined as a type.../../Lib/Misc/fgpath.hxx:62: error: parse error before `)' token../../Lib/Misc/fgpath.hxx:68: error: parse error before `)' token../../Lib/Misc/fgpath.hxx:71: error: parse error before `)' token../../Lib/Misc/fgpath.hxx:75: error: parse error before `)' token../../Lib/Misc/fgpath.hxx:78: error: ISO C++ forbids declaration of `string' with no type../../Lib/Misc/fgpath.hxx:78: error: `string' declared as an `inline' field../../Lib/Misc/fgpath.hxx:78: error: parse error before `(' token../../Lib/Misc/fgpath.hxx:79: error: ISO C++ forbids defining types within return type../../Lib/Misc/fgpath.hxx:79: error: extraneous `char' ignored../../Lib/Misc/fgpath.hxx: In function `const FGPath* c_str()':../../Lib/Misc/fgpath.hxx:79: error: `path' undeclared (first use this function)../../Lib/Misc/fgpath.hxx:79: error: (Each undeclared identifier is reported only once for each function it appears in.)../../Lib/Misc/fgpath.hxx: At global scope:../../Lib/Misc/fgpath.hxx:80: error: parse error before `}' tokenIn file included from /usr/include/g++/backward/iostream.h:31, from newbucket.hxx:38, from newbucket.cxx:35:/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.In file included from newbucket.cxx:35:newbucket.hxx:48:10: #include expects "FILENAME" or In file included from newbucket.cxx:35:newbucket.hxx:97: error: parse error before `)' tokennewbucket.hxx:100: error: parse error before `)' tokennewbucket.hxx:272: error: syntax error before `::' tokennewbucket.hxx:274: error: `tmp' was not declared in this scopenewbucket.hxx:275: error: `lon' was not declared in this scopenewbucket.hxx:275: error: `lat' was not declared in this scopenewbucket.hxx:275: error: `y' was not declared in this scopenewbucket.hxx:275: error: `x' was not declared in this scopenewbucket.hxx:275: error: ISO C++ forbids declaration of `sprintf' with no typenewbucket.hxx:275: error: `int sprintf' redeclared as different kind of symbol/usr/include/stdio.h:301: error: previous declaration of `int sprintf(char*, const char*, ...)'newbucket.hxx:275: error: initializer list being treated as compound expressionnewbucket.hxx:276: error: parse error before `return'newbucket.cxx:39: error: syntax error before `::' tokennewbucket.cxx:45: error: ISO C++ forbids declaration of `top_lon' with no typenewbucket.cxx:45: error: `lon' was not declared in this scopenewbucket.cxx:46: error: ISO C++ forbids declaration of `main_lon' with no typenewbucket.cxx:46: error: `lon' was not declared in this scopenewbucket.cxx:47: error: parse error before `if'newbucket.cxx:50: error: syntax error before `*=' tokennewbucket.cxx:55: error: syntax error before `*=' tokennewbucket.cxx:61: error: ISO C++ forbids declaration of `top_lat' with no typenewbucket.cxx:61: error: `lat' was not declared in this scopenewbucket.cxx:62: error: ISO C++ forbids declaration of `main_lat' with no typenewbucket.cxx:62: error: `lat' was not declared in this scopenewbucket.cxx:63: error: parse error before `if'newbucket.cxx:66: error: syntax error before `*=' tokennewbucket.cxx:71: error: syntax error before `*=' tokennewbucket.cxx:79: error: ISO C++ forbids declaration of `sprintf' with no typenewbucket.cxx:79: error: redefinition of `int sprintf'newbucket.hxx:275: error: `int sprintf' previously defined herenewbucket.cxx:79: error: initializer list being treated as compound expressionnewbucket.cxx:81: error: `FGPath path' used prior to declarationnewbucket.cxx:81: error: no matching function for call to `FGPath::FGPath( char[256])'../../Lib/Misc/fgpath.hxx:50: error: candidates are: FGPath::FGPath(const FGPath&)../../Lib/Misc/fgpath.hxx:59: error: FGPath::FGPath()newbucket.cxx:83: error: parse error before `return'make[2]: *** [newbucket.o] Error 1make[2]: Leaving directory `/usr/local/FlightGear-0.6.1/Lib/Bucket'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/FlightGear-0.6.1/Lib'make: *** [all-recursive] Error 1 It seems like the source code isn't compatible with new compilers, because they are using new header-files and namespace-conventions. Nevertheless it's important for me to compile exactly this version of FGFS on SuSE 8.2 (or higher). Does anyone have any idea to solve this problem? Many thanks in advance!
June 17, 200520 yr >Does anyone have any idea to solve this problem?Try to use an older compiler like gcc-2.7x, maybe that helps.
Create an account or sign in to comment