<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>32420</bug_id>
          
          <creation_ts>2003-10-31 12:02 0000</creation_ts>
          <short_desc>Flightgear 0.9.2 fail to compile - missing files</short_desc>
          <delta_ts>2003-11-10 18:52:12 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>peterhkarlsson@gmail.com</reporter>
          <assigned_to>seemant@gentoo.org</assigned_to>
          <cc>games@gentoo.org</cc>
    
    <cc>peterhkarlsson@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>peterhkarlsson@gmail.com</who>
            <bug_when>2003-10-31 12:02:16 0000</bug_when>
            <thetext>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&apos;
source=&apos;aircraft.cxx&apos; object=&apos;aircraft.o&apos; libtool=no \
depfile=&apos;.deps/aircraft.Po&apos; tmpdepfile=&apos;.deps/aircraft.TPo&apos; \
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 &apos;./&apos;`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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peterhkarlsson@gmail.com</who>
            <bug_when>2003-10-31 12:02:16 0000</bug_when>
            <thetext>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&apos;
source=&apos;aircraft.cxx&apos; object=&apos;aircraft.o&apos; libtool=no \
depfile=&apos;.deps/aircraft.Po&apos; tmpdepfile=&apos;.deps/aircraft.TPo&apos; \
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 &apos;./&apos;`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&apos; with 
   no type
../../src/Input/input.hxx:103: invalid use of undefined type `struct 
   SGCommandMgr&apos;
../../src/Main/globals.hxx:53: forward declaration of `struct SGCommandMgr&apos;
../../src/Input/input.hxx:103: syntaxfel före symbolen &quot;(&quot;
../../src/Input/input.hxx: In member function `virtual const std::string&amp; 
   FGBinding::getCommandName() const&apos;:
../../src/Input/input.hxx:94: `_command_name&apos; 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 &quot;*&quot;
../../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()&apos; cannot have `
   const&apos; method qualifier
../../src/Input/input.hxx:132: virtual outside class declaration
../../src/Input/input.hxx:132: non-member function `void fire(double, double)&apos; 
   cannot have `const&apos; method qualifier
../../src/Input/input.hxx:142: virtual outside class declaration
../../src/Input/input.hxx:142: non-member function `void fire(double)&apos; cannot 
   have `const&apos; method qualifier
../../src/Input/input.hxx:145: syntaxfel före &quot;private&quot;
../../src/Input/input.hxx:149: `std::string _command_name&apos; used prior to 
   declaration
../../src/Input/input.hxx:150: syntaxfel före symbolen &quot;;&quot;
../../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&apos;
make[1]: *** [all-recursive] Fel 1
make[1]: Leaving directory
`/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src&apos;
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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -mcpu=pentium4 -funroll-loops -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -mcpu=pentium4 -funroll-loops -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;sandbox ccache autoaddcvs&quot;
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-10-31 12:46:51 0000</bug_when>
            <thetext>Peter, please change your MAKEOPTS to -j2 and try again please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peterhkarlsson@gmail.com</who>
            <bug_when>2003-10-31 16:16:53 0000</bug_when>
            <thetext>Seemant,

That didn&apos;t work. I tried commenting out the -j flag in make.conf, then tried
both with -j1 and -j2 with the same result.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-11-02 08:29:00 0000</bug_when>
            <thetext>do you have simgear installed ? :)
if so, what version ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brandy@gentoo.org</who>
            <bug_when>2003-11-02 17:38:11 0000</bug_when>
            <thetext>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 &gt;=simgear-0.3.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>2tcso6e02@sneakemail.com</who>
            <bug_when>2003-11-03 20:53:41 0000</bug_when>
            <thetext>FYI: Just moving (well, symbolically linking) the headers Brandy Westcott
mentioned doesn&apos;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)&apos;:
/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&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libsgxml.a(easyxml.o)(.text+0xb44):
In function `readXML(std::basic_istream&lt;char, std::char_traints&lt;char&gt; &gt;&amp;,
XMLVisitor&amp;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt;
&gt; const&amp;)&apos;:
/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&lt;char,
std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, int, int)&apos;
/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&lt;char,
std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, sg_location const&amp;,
std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)&apos;

etc., etc.

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

DEPEND=&quot;&gt;=dev-games/simgear-0.3.3
	&gt;=sys-apps/sed-4&quot;

to

DEPEND=&quot;=dev-games/simgear-0.3.3
	&gt;=sys-apps/sed-4&quot;

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.)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-11-03 21:16:15 0000</bug_when>
            <thetext>does flightgear 0.9.3 work ?
`emerge /usr/portage/games-simulation/flightgear/flightgear-0.9.3.ebuild`</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-11-10 18:52:12 0000</bug_when>
            <thetext>the versions in the dep lists are listed correctly now.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>