Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 203961

Summary: media-gfx/gimp-2.4.2: fails to compile on PPC
Product: Gentoo Linux Reporter: Steve Carr <gpf>
Component: Current packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steve Carr 2008-01-01 11:48:28 UTC
attempting to emerge gimp results in:

powerpc-unknown-linux-gnu-gcc -O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -fsigned-char -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 /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 `analyze_file':
jpegqual.c:(.text+0x644): undefined reference to `jpeg_std_error'
jpegqual.c:(.text+0x678): undefined reference to `jpeg_CreateDecompress'
jpegqual.c:(.text+0x684): undefined reference to `jpeg_stdio_src'
jpegqual.c:(.text+0x690): undefined reference to `jpeg_read_header'
jpegqual.c:(.text+0x72c): undefined reference to `jpeg_destroy_decompress'
jpegqual.c:(.text+0x744): undefined reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status
make[3]: *** [jpegqual] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.2/work/gimp-2.4.2/plug-ins/jpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.2/work/gimp-2.4.2/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.2/work/gimp-2.4.2'
make: *** [all] Error 2
 * 
 * ERROR: media-gfx/gimp-2.4.2 failed.
 * Call stack:
 *           ebuild.sh, line 1701:  Called dyn_compile
 *           ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *           ebuild.sh, line   44:  Called src_compile
 *   gimp-2.4.2.ebuild, line  103:  Called die
 * The specific snippet of code:
 *   	emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/gimp-2.4.2/temp/build.log'.
 * 



Reproducible: Always

Steps to Reproduce:
emerge gimp
Actual Results:  
powerpc-unknown-linux-gnu-gcc -O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -fsigned-char -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 /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 `analyze_file':
jpegqual.c:(.text+0x644): undefined reference to `jpeg_std_error'
jpegqual.c:(.text+0x678): undefined reference to `jpeg_CreateDecompress'
jpegqual.c:(.text+0x684): undefined reference to `jpeg_stdio_src'
jpegqual.c:(.text+0x690): undefined reference to `jpeg_read_header'
jpegqual.c:(.text+0x72c): undefined reference to `jpeg_destroy_decompress'
jpegqual.c:(.text+0x744): undefined reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status
make[3]: *** [jpegqual] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.2/work/gimp-2.4.2/plug-ins/jpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.2/work/gimp-2.4.2/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.2/work/gimp-2.4.2'
make: *** [all] Error 2
 * 
 * ERROR: media-gfx/gimp-2.4.2 failed.
 * Call stack:
 *           ebuild.sh, line 1701:  Called dyn_compile
 *           ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *           ebuild.sh, line   44:  Called src_compile
 *   gimp-2.4.2.ebuild, line  103:  Called die
 * The specific snippet of code:
 *   	emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/gimp-2.4.2/temp/build.log'.
 * 



Expected Results:  
Gimp emerged successfully.

barkley ~ # emerge --info
Portage 2.1.3.19 (default-linux/ppc/ppc32/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-gentoo-r4 ppc)
=================================================================
System uname: 2.6.21-gentoo-r4 ppc 7447A, altivec supported
Timestamp of tree: Tue, 01 Jan 2008 05:17:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=600"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl altivec apache2 berkdb bitmap-fonts cli cracklib crypt cups curl dbus dri fam fortran freetds gdbm gpm hal iconv ieee1394 imap ipv6 isdnlog ldap midi mudflap mysql ncurses nls nptl nptlonly odbc openmp pcre perl php ppc pppd python readline reflection samba session spl sqlite ssl startup-notification tcpd truetype-fonts type1-fonts unicode xml xorg xscreensaver zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Comment 1 Steve Carr 2008-01-01 16:30:09 UTC
Adding "media-gfx/gimp jpeg" into package.use proved to be a workaround but you should not have to manually activate the "jpeg" USE flag, if it needs the jpeg package to compile then it should be added as a dependancy.
Comment 2 ScytheMan 2008-01-03 02:13:25 UTC
Maybe this is related to http://bugs.gentoo.org/show_bug.cgi?id=191916
Comment 3 Steve Carr 2008-01-03 08:14:32 UTC
Looks exactly like the same problem, anything you would like me to do testing wise?
Comment 4 Hanno Böck gentoo-dev 2008-01-06 00:25:26 UTC

*** This bug has been marked as a duplicate of bug 191916 ***