<?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>14177</bug_id>
          
          <creation_ts>2003-01-19 07:43 0000</creation_ts>
          <short_desc>flightgear-0.9.1 failed -- missing jpg-httpd.cxx</short_desc>
          <delta_ts>2003-06-21 11:28:18 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>All</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>larssj@nospam.dk</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>phosphan@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>larssj@nospam.dk</who>
            <bug_when>2003-01-19 07:43:24 0000</bug_when>
            <thetext>I get this when I tries to build flightgear-0.9.1 ebuild or compiles the tar file.

...
make[2]: Entering directory
`/var/tmp/portage/flightgear-0.9.1/work/FlightGear-0.9.1/src/Network&apos;
make[2]: *** No rule to make target `jpg-httpd.cxx&apos;, needed by `jpg-httpd.o&apos;.  Stop.

I tried to run ./configure --without-network with same result
I have reported it on the flightgear list. 
install ebuilds:
sys-devel/gcc-3.2.1-r6 
dev-db/metakit-2.4.7.37
media-libs/plib-1.6.0
dev-libs/simgear-0.3.1 
app-games/flightgear-0.9.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-03 21:02:52 0000</bug_when>
            <thetext>please post `emerge info` </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>larssj@nospam.dk</who>
            <bug_when>2003-02-04 15:43:53 0000</bug_when>
            <thetext>Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r4,2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS=&quot;http://www.ibiblio.org/pub/Linux/distributions/gentoo&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;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;/usr/portage.local&quot;
USE=&quot;x86 oss apm cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xv zlib gtkhtml gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk mysql sdl gpm tcpd pam libwww ssl perl imlib qt kde motif opengl mozilla ldap cdr scanner xfs avi oggvorbis xmms crypt alsa java 3dnow X gtk gnome dvd esd dga gb evo guile libgda snmp python mozsvg mozcalendar mozxmlterm innodb tiff&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon -O3 -pipe&quot;
CXXFLAGS=&quot;-march=athlon -O3 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache&quot;

I thing the problem is related to simgear or plib.

Instead I install the current version from cvs (--prefix ~/Local :-).
And got the opposit problem: 
   jpeg-factory was missing in &quot;Simgear-CVS&quot;

Has &quot;FlightGear/configure&quot; a bug that detect jpeg-factory by a mistake?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2003-06-18 03:59:10 0000</bug_when>
            <thetext>Could you please try 0.9.2?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>larssj@nospam.dk</who>
            <bug_when>2003-06-18 12:04:56 0000</bug_when>
            <thetext>Same result:

make[2]: Entering directory `/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Network&apos;
make[2]: *** No rule to make target `jpg-httpd.cxx&apos;, needed by `jpg-httpd.o&apos;.  Stop.
make[2]: Leaving directory `/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Network&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src&apos;
make: *** [all-recursive] Error 1
 
!!! ERROR: app-games/flightgear-0.9.2 failed.
!!! Function src_compile, Line 26, Exitcode 2

If I install SimGear with --with-jpeg-factory it works!
That what I do with the CVS version of FlightGear, SimGear and plib
The cvs version are install in my home dir: ~/Local

I can live with this bug because I use the current cvs-version of FlightGear.

I thing the problem is related to includes files, GNU configure and maybe a bug in my installation of gentoo.

Lars
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-06-21 04:16:12 0000</bug_when>
            <thetext>oddly enough if i install simgear + flightgear w/out using --with-jpeg-factory in simgear 
it&apos;ll work ... 
 
but if i emerge simgear with --with-jpeg-factory then flightgear fails with the same error 
you reported </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>larssj@nospam.dk</who>
            <bug_when>2003-06-21 07:53:55 0000</bug_when>
            <thetext>I have look at Flightgear-devel mail-list and found this one:

http://seneca.me.umn.edu/pipermail/flightgear-devel/2002-March/005444.html 
&gt; I think what we need to do is change the test in
&gt; FlightGear / configure.in
&gt; line 115:    AC_CHECK_LIB(jpeg, jpeg_start_compress)
&gt; 
&gt; to check for the existance trJpgFactory code in libsgscreen.a
&gt; as this will only be compiled in if SimGear was compiled with
&gt; jpeg factory support and a suitable libjpeg is available

and from my /usr/lib/libsgscreen.a: 
&gt; nm /usr/lib/libsgscreen.a |grep Factory
was empty!

but my local CVS build with --with-jpeg-factory
&gt; nm /home/lasj/Local/lib/libsgscreen.a |grep Factory
00000260 T _ZN12trJpgFactory4initEii
000004a0 T _ZN12trJpgFactory6renderEv
000000c0 T _ZN12trJpgFactory7destroyEi
000003e0 T _ZN12trJpgFactory8compressEv
00000170 T _ZN12trJpgFactory9jpeg_initEv
00000040 T _ZN12trJpgFactoryC1Ev
00000000 T _ZN12trJpgFactoryC2Ev
000000a0 T _ZN12trJpgFactoryD1Ev
00000080 T _ZN12trJpgFactoryD2Ev

So the problem is in FlightGear and it is a autoconf problem :-).

I with try to make a workaround/fix for the FlightGear ebuild.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>larssj@nospam.dk</who>
            <bug_when>2003-06-21 09:36:47 0000</bug_when>
            <thetext>From the standart ebuild/emerge:
checking for simgear 0.3.3 or newer... 0.3.3 or greater... yes
checking simgear/screen/jpgfactory.hxx usability... yes
checking simgear/screen/jpgfactory.hxx presence... yes
checking for simgear/screen/jpgfactory.hxx... yes
checking for jpeg_start_compress in -ljpeg... yes
checking zlib.h usability... yes

Workaround/fix to src_compile() is:
src_compile() {
	# Bug fix for bug 14177: flightgear failed -- missing jpg-httpd.cxx
	# Wrong detection of jpgfactory in SimGear 
	i=configure
	mv $i $i.orig;
        cat $i.orig | \
	sed &apos;s|#include &lt;simgear/screen/jpgfactory.hxx&gt;|#include &lt;simgear/screen/jpgfactory.hxx-faile-include&gt;|g&apos; &gt; $i
	chmod +x $i

	egamesconf 
	emake || make || die
}
It let the detection of simgear/screen/jpgfactory.hxx fail:
checking for simgear 0.3.3 or newer... 0.3.3 or greater... yes
checking simgear/screen/jpgfactory.hxx usability... no
checking simgear/screen/jpgfactory.hxx presence... no
checking for simgear/screen/jpgfactory.hxx... no
checking zlib.h usability... yes

I attach the new ebuild. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>larssj@nospam.dk</who>
            <bug_when>2003-06-21 09:39:10 0000</bug_when>
            <thetext>Created an attachment (id=13660)
flightgear-0.9.2-r1.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-06-21 11:28:18 0000</bug_when>
            <thetext>yeah that script fixed the prob alright :) 
 
excellent job on tracking this thing down ... i&apos;m not nearly involved in the projects as you 
are ;) 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/flightgear/flightgear-0.9.2.ebuild.diff?r1=1.2&amp;r2=1.3 </thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>13660</attachid>
            <date>2003-06-21 09:39 0000</date>
            <desc>flightgear-0.9.2-r1.ebuild</desc>
            <filename>flightgear-0.9.2-r1.ebuild</filename>
            <type>application/octet-stream</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDAzIEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIHYy
CiMgJEhlYWRlcjogL2hvbWUvY3Zzcm9vdC9nZW50b28teDg2L2FwcC1nYW1lcy9mbGlnaHRnZWFy
L2ZsaWdodGdlYXItMC45LjIuZWJ1aWxkLHYgMS4yIDIwMDMvMDYvMTIgMDU6NDI6MzIgc2VlbWFu
dCBFeHAgJAoKSVVTRT0iIgoKaW5oZXJpdCBnYW1lcwoKTVlfUE49RmxpZ2h0R2VhcgpNWV9QPSR7
TVlfUE59LSR7UFZ9CgpTPSR7V09SS0RJUn0vJHtNWV9QfQpERVNDUklQVElPTj0iT3BlbiBTb3Vy
Y2Ug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