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' make[2]: *** No rule to make target `jpg-httpd.cxx', needed by `jpg-httpd.o'. 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
please post `emerge info`
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="http://www.ibiblio.org/pub/Linux/distributions/gentoo" 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" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/portage.local" USE="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" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon -O3 -pipe" CXXFLAGS="-march=athlon -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" 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 "Simgear-CVS" Has "FlightGear/configure" a bug that detect jpeg-factory by a mistake?
Could you please try 0.9.2?
Same result: make[2]: Entering directory `/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Network' make[2]: *** No rule to make target `jpg-httpd.cxx', needed by `jpg-httpd.o'. Stop. make[2]: Leaving directory `/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src/Network' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/flightgear-0.9.2/work/FlightGear-0.9.2/src' 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
oddly enough if i install simgear + flightgear w/out using --with-jpeg-factory in simgear it'll work ... but if i emerge simgear with --with-jpeg-factory then flightgear fails with the same error you reported
I have look at Flightgear-devel mail-list and found this one: http://seneca.me.umn.edu/pipermail/flightgear-devel/2002-March/005444.html > I think what we need to do is change the test in > FlightGear / configure.in > line 115: AC_CHECK_LIB(jpeg, jpeg_start_compress) > > to check for the existance trJpgFactory code in libsgscreen.a > as this will only be compiled in if SimGear was compiled with > jpeg factory support and a suitable libjpeg is available and from my /usr/lib/libsgscreen.a: > nm /usr/lib/libsgscreen.a |grep Factory was empty! but my local CVS build with --with-jpeg-factory > 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.
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 's|#include <simgear/screen/jpgfactory.hxx>|#include <simgear/screen/jpgfactory.hxx-faile-include>|g' > $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.
Created attachment 13660 [details] flightgear-0.9.2-r1.ebuild
yeah that script fixed the prob alright :) excellent job on tracking this thing down ... i'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&r2=1.3