Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240490 - media-gfx/gimp-2.6.0 fails to compile (psd-image-res-load)
Summary: media-gfx/gimp-2.6.0 fails to compile (psd-image-res-load)
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:
Depends on:
Blocks:
 
Reported: 2008-10-08 10:27 UTC by Thomas Stein
Modified: 2008-10-10 08:48 UTC (History)
0 users

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


Attachments
don't build file-psd plugin if configured with --without-libjpeg (gimp-2.6.0-file-psd-needs-jpeg.patch,1.09 KB, patch)
2008-10-09 15:47 UTC, Simon Zilliken
Details | Diff
applies gimp-2.6.0-file-psd-needs-jpeg.patch (gimp-2.6.0.ebuild,3.17 KB, text/plain)
2008-10-09 15:50 UTC, Simon Zilliken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2008-10-08 10:27:34 UTC
Have an error too compiling gimp-2.6.0.

psd-image-res-load.o: In function `load_thumbnail_resource':                    
psd-image-res-load.c:(.text+0x27d): undefined reference to `jpeg_std_error'     
psd-image-res-load.c:(.text+0x29b): undefined reference to
`jpeg_CreateDecompress'                                                         
psd-image-res-load.c:(.text+0x2a7): undefined reference to `jpeg_stdio_src'     
psd-image-res-load.c:(.text+0x2b7): undefined reference to `jpeg_read_header'   
psd-image-res-load.c:(.text+0x2bf): undefined reference to
`jpeg_start_decompress'                                                         
psd-image-res-load.c:(.text+0x4be): undefined reference to
`jpeg_read_scanlines' 
psd-image-res-load.c:(.text+0x532): undefined reference to
`jpeg_finish_decompress'                                                        
psd-image-res-load.c:(.text+0x53a): undefined reference to
`jpeg_destroy_decompress'                                                       
collect2: ld returned 1 exit status                                             
make[3]: *** [file-psd-load] Error 1                                            
make[3]: Leaving directory
`/var/tmp/portage/media-gfx/gimp-2.6.0/work/gimp-2.6.0/plug-ins/file-psd'       
make[2]: *** [all-recursive] Error 1                                            
make[2]: Leaving directory
`/var/tmp/portage/media-gfx/gimp-2.6.0/work/gimp-2.6.0/plug-ins'                
make[1]: *** [all-recursive] Error 1                                            
make[1]: Leaving directory
`/var/tmp/portage/media-gfx/gimp-2.6.0/work/gimp-2.6.0'                         
make: *** [all] Error 2

commander ~ # emerge -pv gtk+ gail gegl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/gtk+-2.14.3-r2  USE="X cups jpeg -debug -doc -jpeg2k
-tiff -vim-syntax -xinerama" 0 kB
[ebuild   R   ] media-libs/gegl-0.0.20  USE="cairo jpeg svg -debug -doc -ffmpeg
-gtk -openexr -sdl" 0 kB
[ebuild   R   ] gnome-base/gail-1000  0 kB

emerge --info:
commander ~ # emerge --info
Portage 2.2_rc11 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.26
i686)
=================================================================               
System uname:
Linux-2.6.26-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-glibc2.0  
Timestamp of tree: Wed, 08 Oct 2008 08:00:01 +0000                              
app-shells/bash:     3.2_p33                                                    
dev-java/java-config: 1.3.7, 2.1.6-r1                                           
dev-lang/python:     2.4.4-r6, 2.5.2-r7                                         
dev-python/pycrypto: 2.0.1-r6                                                   
sys-apps/baselayout: 1.12.11.1                                                  
sys-apps/sandbox:    1.2.18.1-r2                                                
sys-devel/autoconf:  2.13, 2.63                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1               
sys-devel/binutils:  2.18-r3                                                    
sys-devel/gcc-config: 1.3.14                                                    
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.24                                                     
ACCEPT_KEYWORDS="x86 ~x86"                                                      
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=k8 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /usr/shutdown"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/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="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip
/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog midi
mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline
reflection session spl ssl tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1     emu10k1x ens1370
ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m        maestro3
trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mmap_emul 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="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always
Comment 1 Simon Zilliken 2008-10-09 13:15:53 UTC
Emerge gimp with USE="jpeg". It seems like the file-psd plugin needs libjpeg, but the linker can't find it when gimp is configured without jpeg-support.
Comment 2 Thomas Stein 2008-10-09 13:53:12 UTC
Right. This way gimp compiled. Thank you.
Comment 3 Simon Zilliken 2008-10-09 15:47:57 UTC
Created attachment 167746 [details, diff]
don't build file-psd plugin if configured with --without-libjpeg

If Gimp isn't configured with JPEG support, don't build the PSD-file plugin as well.
I'm not sure whether this can be considered a fix or only a workaround for the emerge to succeed. That is, I have no idea whether the PSD plugin actually requires JPEG support for Gimp.
Comment 4 Simon Zilliken 2008-10-09 15:50:53 UTC
Created attachment 167748 [details]
applies gimp-2.6.0-file-psd-needs-jpeg.patch
Comment 5 Hanno Böck gentoo-dev 2008-10-09 21:03:36 UTC
simon, have you sent that upstream? I think this is a proper fix and should go into the gimp codebase.
Comment 6 Hanno Böck gentoo-dev 2008-10-09 21:24:57 UTC
added
Comment 7 Simon Zilliken 2008-10-10 08:48:22 UTC
Yes, I've reported upstream and the patch has already been applied.