Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191916 - media-gfx/gimp-2.4.0 fails to build without jpeg support
Summary: media-gfx/gimp-2.4.0 fails to build without jpeg support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
: 197729 203961 208960 210094 215251 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-09 22:26 UTC by Joshua Kinard
Modified: 2008-10-21 19:31 UTC (History)
9 users (show)

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


Attachments
Gimp 2.4.0 sunning on an SGI Octane (gimp-2.4.0-on-mips.jpg,200.33 KB, image/jpeg)
2007-12-05 07:33 UTC, Joshua Kinard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2007-09-09 22:26:22 UTC
Not sure if we're missing a dependency somewheres.  Looks like something isn't right regarding jpeg dependencies.  Thoughts?

We'll be removing mips keywords from 2.4* until we get this bug resolved, as 2.3.19 is stable for us (even though it's a dev-branch).  Once this is sorted out, I'll throw ~mips back into the KEYWORDS.


Error Message:

mips-unknown-linux-gnu-gcc -O2 -march=r10000 -mtune=r10000 -pipe -fomit-frame-pointer -ftracer -fforce-addr -fweb -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -o jpegqual jpeg-quality.o jpegqual.o -pthread  /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so
jpegqual.o: In function `main':
jpegqual.c:(.text+0x5a4): undefined reference to `jpeg_std_error'
jpegqual.c:(.text+0x5c4): undefined reference to `jpeg_CreateDecompress'
jpegqual.c:(.text+0x5d8): undefined reference to `jpeg_stdio_src'
jpegqual.c:(.text+0x5ec): undefined reference to `jpeg_read_header'
jpegqual.c:(.text+0x630): undefined reference to `jpeg_destroy_decompress'
jpegqual.c:(.text+0x6ac): undefined reference to `jpeg_std_error'
jpegqual.c:(.text+0x6cc): undefined reference to `jpeg_CreateDecompress'
jpegqual.c:(.text+0x6e0): undefined reference to `jpeg_stdio_src'
jpegqual.c:(.text+0x6f4): undefined reference to `jpeg_read_header'
jpegqual.c:(.text+0x88c): undefined reference to `jpeg_destroy_decompress'
jpegqual.c:(.text+0xa54): undefined reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status
make[3]: *** [jpegqual] Error 1
make[3]: Leaving directory `/usr/obj/portage/media-gfx/gimp-2.4.0_rc2/work/gimp-2.4.0-rc2/plug-ins/jpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/obj/portage/media-gfx/gimp-2.4.0_rc2/work/gimp-2.4.0-rc2/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/obj/portage/media-gfx/gimp-2.4.0_rc2/work/gimp-2.4.0-rc2'
make: *** [all] Error 2


emerge --info:

Portage 2.1.3.9 (default-linux/mips/2007.1-dev/ip30/o32, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-rc5-mipsgit-20070904 mips64)
=================================================================
System uname: 2.6.23-rc5-mipsgit-20070904 mips64 R14000 V2.3 FPU V0.0
Timestamp of tree: Sat, 08 Sep 2007 21:20:01 +0000
distcc 2.18.3 mips-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.3.6, 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="mips ~mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=r10000 -mtune=r10000 -pipe -fomit-frame-pointer -ftracer -fforce-addr -fweb"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=r10000 -mtune=r10000 -pipe -fomit-frame-pointer -ftracer -fforce-addr -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/usr/obj"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X berkdb cli cracklib fortran gdbm iconv ip30 isdnlog libwww midi mips mudflap nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode usb userlocales xorg" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev impact newport v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joshua Kinard gentoo-dev 2007-09-10 01:56:12 UTC
Turns out that gtk+ needs to be built with use 'jpeg', per drac's suggestion.  I'll see if I can put a patch later on for that.
Comment 2 Lars Strojny 2007-09-27 09:13:15 UTC
The GIMP ebuild should check wheither gtk+ is compiled with the correct USE-flags.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-11-01 07:49:15 UTC
*** Bug 197729 has been marked as a duplicate of this bug. ***
Comment 4 Hanno Böck gentoo-dev 2007-11-01 12:22:22 UTC
I've tried this, and it's not the case, at least not on all machines.

I can build gtk+ with USE="-jpeg" and gimp with USE="jpeg" without problems.

Does anyone see this on !=mips?
Comment 5 Jukka Ruohonen 2007-11-01 13:30:36 UTC
Hanno,

confirmed here with amd64:

USE="-jpeg" emerge gtk+ && USE="jpeg" emerge gimp

emerges without problems.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-11-15 15:29:27 UTC
Not really a mips issue, same thing on x86.
Comment 7 Hanno Böck gentoo-dev 2007-11-15 15:32:19 UTC
jakub, if you can reproduce it on x86, please tell me how. I couldn't.
Comment 8 Joshua Kinard gentoo-dev 2007-11-20 03:42:34 UTC
Build gtk+ with -jpeg in USE, then switch it to 'jpeg', then merge gimp; you should get the errors I have listed in my opening post.  Least, that roughly mimics the setup I had on my Octane until it was suggested I try rebuilding gtk+ with jpeg USE.

Comment 9 Hanno Böck gentoo-dev 2007-11-26 14:17:27 UTC
I don't get the error (after merging gtk+ with -jpeg and then gimp with +jpeg), so there's nothing I can do for now. If anyone sees this on x86, please post compile log and emerge --info.
Comment 10 Joshua Kinard gentoo-dev 2007-12-05 07:33:10 UTC
So can we get this change in, or until reproduced on x86, it's blocked for us?

I'll attach a screenshot of it running on my Octane to show 2.4.0 is working (gonna build 2.4.2 shortly).
Comment 11 Joshua Kinard gentoo-dev 2007-12-05 07:33:49 UTC
Created attachment 137779 [details]
Gimp 2.4.0 sunning on an SGI Octane
Comment 12 Hanno Böck gentoo-dev 2008-01-06 00:25:26 UTC
*** Bug 203961 has been marked as a duplicate of this bug. ***
Comment 13 Hanno Böck gentoo-dev 2008-01-06 00:28:11 UTC
I've digged deeper into this. This has nothing to do with gtk+ (nor with mips or ppc), it's basically a bug in gimp's configure-script. For the details, see this upstream bug:

http://bugzilla.gnome.org/show_bug.cgi?id=507572

I don't consider this importand enough to patch it in gentoo (as this would require running eautoreconf/autotools-eclass, thus adding additional bloat). I'll wait till this get's fixed upstream, should get fixed within the next one or two gimp releases. Workaround is not to build gimp with -jpeg or emerge media-libs/jpeg before doing so.
Comment 14 Joshua Kinard gentoo-dev 2008-01-06 17:31:40 UTC
Hmm, well, all I know is since rebuilding gtk+ w/ the jpeg stuff, if I re-keyword gimp-2.4.x, it'll build and update for me.  Perhaps we can add a mips & ppc specific bit in the current ebuilds until upstream fixes the issue?  That keeps the impact minimized to two archs suffering the issue right now.
Comment 15 Evil Compile Person 2008-01-14 18:00:09 UTC
I'd have said disable the jpeg useflag until it's fixed, but as long as it gets fixed I don't care :)
Comment 16 Gunnar Eikman 2008-01-26 09:09:37 UTC
(In reply to comment #14)
It does not only affect mips & ppc. I just ran across this in my newbie installation on a new amd64. Could not build gimp (same complaints about missing jpeg methods).

Comment 17 Gunnar Eikman 2008-01-26 09:41:51 UTC
Summary: On my AMD64, I installed gentoo without "jpeg" USE flag. gtk+ was built without the flag. Then gimp build failed. I then (being a newbie) did:
# emerge jpeg (I found the library and suspected some lacking dependency)
# emerge gimp --> Still failing
When everything else fails, read the documentation, right?
Then I found this bug description.
I set the jpeg USE flag (in /etc/make.conf in my case)
# emerge --newuse gtk+
# emerge gimp --> SUCCESS

So (after emerging jpeg library, if that has anything to do with it), things work if both gtk+ and gimp are built with the jpeg USE flag. Being a newbie, I can only observe, not diagnose ;-)
Comment 18 Hanno Böck gentoo-dev 2008-02-04 17:17:40 UTC
I've now temporarily removed the jpeg-useflag from the gimp ebuild (as jpeg disabling was broken anyway).

This is fixed in gimp trunk, but backporting is nontrivial, so it'll stay this way till upstream trunk get's a new version. Then we'll add the jpeg flag back.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 09:06:11 UTC
*** Bug 210094 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 22:10:01 UTC
*** Bug 215251 has been marked as a duplicate of this bug. ***
Comment 21 Jan Kundrát (RETIRED) gentoo-dev 2008-05-03 01:08:47 UTC
*** Bug 208960 has been marked as a duplicate of this bug. ***
Comment 22 Ben Kohler gentoo-dev 2008-10-21 19:31:29 UTC
im having this same failure on gimp-2.6.1 when USE=-jpeg is set for gimp