The configure stage of the build of imlib-1.9.14-r1 is failing. Going into the build directory ./configure and ./configure --prefix=/usr/local seem to work fine, but ./configure --prefix=/usr fails. Is this the default, and can I set this to something else? Also, is there a way to just do the compile and install stage of a package with emerge? I seem to be getting a lot of errors compiling KDE, and using an older version of a package sometimes helps, but there is no previous version of imlib, and the fix was not obvious to me. This is essentially the same problem as 3853 nor P2 x86 gnome@gentoo.org RESO FIXE media-libs/imlib fails to compile but it seems to have been dismissed as a problem that is not reproducible. I am using gcc 3.2. Reproducible: Always Steps to Reproduce: 1.emerge imlib 2. 3. Actual Results: checking for IceConnectionNumber in -lICE... yes checking for XShmAttach in -lXext... yes checking for sys/ipc.h... no checking for sys/shm.h... no checking X11/extensions/XShm.h... yes checking for jpeg_destroy_decompress in -ljpeg... yes checking for jpeglib.h... no configure: error: *** JPEG header file not found *** !!! ERROR: media-libs/imlib-1.9.14-r1 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed
reopen with the output of emerge --info please.
I currently have a workaround to the problem, and offer it as information toward a bug fix. I had problems with line 7368 of the configure file, and replaced CPPFLAGS="$CPPFLAGS -I$includedir -I$prefix/include" with CPPFLAGS="$CPPFLAGS -I$includedir" I did this by editing the imlib-1.9.14-r1.ebuild file. My change is easy to see below. src_unpack() { unpack ${A} # fix config script bug 3425 cd ${S} mv imlib-config.in imlib-config.in.bad sed -e "49,51D" -e "55,57D" imlib-config.in.bad > imlib-config.in mv configure configure.bad sed -e 's,CPPFLAGS="$CPPFLAGS -I$includedir -I$prefix/include",CPPFLAGS="$CPPFLAGS -I$includedir",g' configure.bad > configure chmod 755 configure } My emerge --info is listed below as well. Thanks. After changing the ebuild, emerge imlib worked fine. Portage 2.0.50-r6 (default-alpha-1.4, gcc-3.2, glibc-2.2.5-r7, 2.4.21-alpha-r6) ================================================================= System uname: 2.4.21-alpha-r6 alpha EV56 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="alpha" AUTOCLEAN="yes" CFLAGS="-mcpu=ev56 -O3 -pipe " CHOST="alpha-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb:/usr/kde/3.2/share/config:/usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=ev56 -O3 -pipe " DISTDIR="/usr/portage/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alpha arts berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
I can't reproduce this - is it still a problem?
Closing this bug as I can't reproduce it and the reporter changed distribution.