Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32420 - Flightgear 0.9.2 fail to compile - missing files
Summary: Flightgear 0.9.2 fail to compile - missing files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 12:02 UTC by Peter Karlsson
Modified: 2003-11-10 18:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Karlsson 2003-10-31 12:02:16 UTC
I tried to emerge flightgear-0.9.2 but the compile failed.
Here is the output of the compile (last lines only):

make[2]: Entering directory
`/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Aircraft'
source='aircraft.cxx' object='aircraft.o' libtool=no \
depfile='.deps/aircraft.Po' tmpdepfile='.deps/aircraft.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src 
-I/usr/X11R6/include  -pipe -c -o aircraft
.o `test -f aircraft.cxx || echo './'`aircraft.cxx
aircraft.cxx:33:37: simgear/misc/commands.hxx: Filen eller katalogen finns inte
aircraft.cxx:34:38: simgear/misc/exception.hxx: Filen eller katalogen finns inte
I fil inkluderad fr
Comment 1 Peter Karlsson 2003-10-31 12:02:16 UTC
I tried to emerge flightgear-0.9.2 but the compile failed.
Here is the output of the compile (last lines only):

make[2]: Entering directory
`/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Aircraft'
source='aircraft.cxx' object='aircraft.o' libtool=no \
depfile='.deps/aircraft.Po' tmpdepfile='.deps/aircraft.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src 
-I/usr/X11R6/include  -pipe -c -o aircraft
.o `test -f aircraft.cxx || echo './'`aircraft.cxx
aircraft.cxx:33:37: simgear/misc/commands.hxx: Filen eller katalogen finns inte
aircraft.cxx:34:38: simgear/misc/exception.hxx: Filen eller katalogen finns inte
I fil inkluderad från ../../src/Cockpit/panel.hxx:55,
                 från aircraft.cxx:39:
../../src/Input/input.hxx:35:37: simgear/misc/commands.hxx: Filen eller
katalogen finns inte
I fil includerad från ../../src/Cockpit/panel.hxx:55,
                 från aircraft.cxx:39:
../../src/Input/input.hxx:103: ISO C++ forbids declaration of `command_t' with 
   no type
../../src/Input/input.hxx:103: invalid use of undefined type `struct 
   SGCommandMgr'
../../src/Main/globals.hxx:53: forward declaration of `struct SGCommandMgr'
../../src/Input/input.hxx:103: syntaxfel före symbolen "("
../../src/Input/input.hxx: In member function `virtual const std::string& 
   FGBinding::getCommandName() const':
../../src/Input/input.hxx:94: `_command_name' undeclared (first use this 
   function)
../../src/Input/input.hxx:94: (Each undeclared identifier is reported only once 
   for each function it appears in.)
../../src/Input/input.hxx: At global scope:
../../src/Input/input.hxx:112: ISO C++ forbids defining types within return 
   type
../../src/Input/input.hxx:112: syntaxfel före symbolen "*"
../../src/Input/input.hxx:120: virtual outside class declaration
../../src/Input/input.hxx:126: virtual outside class declaration
../../src/Input/input.hxx:126: non-member function `void fire()' cannot have `
   const' method qualifier
../../src/Input/input.hxx:132: virtual outside class declaration
../../src/Input/input.hxx:132: non-member function `void fire(double, double)' 
   cannot have `const' method qualifier
../../src/Input/input.hxx:142: virtual outside class declaration
../../src/Input/input.hxx:142: non-member function `void fire(double)' cannot 
   have `const' method qualifier
../../src/Input/input.hxx:145: syntaxfel före "private"
../../src/Input/input.hxx:149: `std::string _command_name' used prior to 
   declaration
../../src/Input/input.hxx:150: syntaxfel före symbolen ";"
../../src/Input/input.hxx:151: confused by earlier errors, bailing out
make[2]: *** [aircraft.o] Fel 1
make[2]: Leaving directory
`/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Aircraft'
make[1]: *** [all-recursive] Fel 1
make[1]: Leaving directory
`/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src'
make: *** [all-recursive] Fel 1

!!! ERROR: games-simulation/flightgear-0.9.2 failed.
!!! Function games_src_compile, Line 113, Exitcode 2
!!! emake failed


Reproducible: Always
Steps to Reproduce:
1. emerge flightgear
2.
3.




Here is my emerge --info:

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
gdbm berkdb slang readline arts svga tcltk X sdl gpm tcpd pam libwww ssl perl
python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr"
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-10-31 12:46:51 UTC
Peter, please change your MAKEOPTS to -j2 and try again please.
Comment 3 Peter Karlsson 2003-10-31 16:16:53 UTC
Seemant,

That didn't work. I tried commenting out the -j flag in make.conf, then tried
both with -j1 and -j2 with the same result.
Comment 4 SpanKY gentoo-dev 2003-11-02 08:29:00 UTC
do you have simgear installed ? :)
if so, what version ?
Comment 5 Brandy Westcott (RETIRED) gentoo-dev 2003-11-02 17:38:11 UTC
simgear changed where some of the files are installed in the version bump
from -0.3.3 to -0.3.4; among them:

	simgear-0.3.3:	/usr/include/simgear/misc/commands.hxx
			/usr/include/simgear/misc/exception.hxx

	simgear-0.3.4:	/usr/include/simgear/structure/commands.hxx
			/usr/include/simgear/structure/exception.hxx

It looks like flightgear-0.9.2 depends on =simgear-0.3.3 whilst
flightgear-0.9.3 depends on >=simgear-0.3.4
Comment 6 Mark Purtill 2003-11-03 20:53:41 UTC
FYI: Just moving (well, symbolically linking) the headers Brandy Westcott
mentioned doesn't really help; I just get a bunch of link errors:

g++  -g -O2  -L/usr/X11R6/lib -o yasim  yasim-test.o Airplane.o Atmosphere.o
ControlMap.o FGFDM.o Gear.o Glue.o Integrator.o Jet.o Math.o Model.o PistonEngine.o
PropEngine.o Propeller.o RigidBody.o SimpleJet.o Surface.o Thruster.o Wing.o
-lsgxml -lsgprops -lsgmisc -lsgdebug -lm
yasim-test.o(.gcc_except_table+0x40): In function `fgGetFloat(char const*,
float)':
/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/FDM/YASim/yasim-test.cpp:16:
undefined reference to `typeinfo for sg_exception'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libsgxml.a(easyxml.o)(.text+0xb44):
In function `readXML(std::basic_istream<char, std::char_traints<char> >&,
XMLVisitor&, std::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&)':
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/stl_alloc.h:664:
undefined reference to `sg_location::sg_location[in-charge](std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int, int)'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libsgxml.a(easyxml.o)(.text+0xb90):/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/stl_alloc.h:664:
undefined reference to `sg_io_exception::sg_io_exception[in-charge](std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, sg_location const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

etc., etc.

However, when I copied the ebuild file to /usr/local/portage/... and changed
the dependency line from

DEPEND=">=dev-games/simgear-0.3.3
	>=sys-apps/sed-4"

to

DEPEND="=dev-games/simgear-0.3.3
	>=sys-apps/sed-4"

and unmerged simgear-0.3.4, I was able to compile and run successfully. 
(Well, impossible to fly without a joystick, but the program seemed to be
functioning.)
Comment 7 SpanKY gentoo-dev 2003-11-03 21:16:15 UTC
does flightgear 0.9.3 work ?
`emerge /usr/portage/games-simulation/flightgear/flightgear-0.9.3.ebuild`
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-10 18:52:12 UTC
the versions in the dep lists are listed correctly now.