Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261034 - emerge =media-libs/lcms-1.17 fails if python use flag unset
Summary: emerge =media-libs/lcms-1.17 fails if python use flag unset
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 10:19 UTC by florenzopaolo.dimagli
Modified: 2009-03-03 11:44 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description florenzopaolo.dimagli 2009-03-03 10:19:20 UTC
The only way I were successful to emerge lcms, was to put the line "media-libs/lcms -python" in /etc/portage/package.use

python is a default use flag for this package (which suggest me it should be of some importance in the programmer's intention). So, in order to compile it, I had to flag off it explicitly.
This happened with more than one version of python installed, currently python-2.5.4-r2

Reproducible: Always

Steps to Reproduce:
1. emerge lcms
2.
3.

Actual Results:  
 x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"lcms\" -DPACKAGE_TARNAME=\"lcms\" -DPACKAGE_VERSION=\"1.17\" "-DPACKAGE_STRING=\"lcms 1.17\"" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSIZEOF_INT=4 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_LONG=8 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_LONG_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHasJPEG=1 -DHasZLIB=1 -DHasTIFF=1 -DHAVE_TIFFCONF_H=1 -I. -I/usr/include/python2.5 -I/usr/local/include/python2.5 -I../include -I../include -march=athlon64 -O2 -pipe -msse3 -c lcms_wrap.cxx -o _lcms_la-lcms_wrap.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -march=athlon64 -O2 -pipe -msse3 -no-undefined -module -avoid-version -L/usr/local/lib/python2.5/config  -Wl,-O1 -o _lcms.la -rpath /usr/local/lib/python2.5/site-packages _lcms_la-lcms_wrap.lo ../src/liblcms.la -lpython2.5 
x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o  .libs/_lcms_la-lcms_wrap.o  -Wl,--rpath -Wl,/hugetmp/portage/portage/media-libs/lcms-1.17/work/lcms-1.17/src/.libs -L/usr/local/lib/python2.5/config ../src/.libs/liblcms.so -lpython2.5 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o  -march=athlon64 -msse3 -Wl,-O1 -Wl,-soname -Wl,_lcms.so -o .libs/_lcms.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [_lcms.la] Error 1
make[1]: Leaving directory `/hugetmp/portage/portage/media-libs/lcms-1.17/work/lcms-1.17/python'
make: *** [all-recursive] Error 1
 * 
 * ERROR: media-libs/lcms-1.17 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2474:  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 '/sync/gentoo/log/media-libs:lcms-1.17:20090301-190918.log'.
 * The ebuild environment file is located at '/hugetmp/portage/portage/media-libs/lcms-1.17/temp/environment'.
 * 



Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon_Dual-Core_QL-60-with-glibc2.2.5
Timestamp of tree: Mon, 02 Mar 2009 15:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.6-r1
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.12
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/sync/gentoo/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://156.56.247.195 http://distfiles.gentoo.org http://152.46.7.80/pub/Linux/distributions/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/sync/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --timeout=23 --bwlimit=20"
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="/hugetmp/portage"
PORTDIR="/sync/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/vmware /sync/gentoo/myebs"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm aspell audiofile avi bash-completion bcmath berkdb bindist bitmap-fonts blas bzip2 bzip2cairo caps cdparanoia cdr cli clibpdf cracklib crypt cscope ctype cups cxx dbus dbx diet dillo dio directfb divx4linux doc dv dvb dvd dvdr dvdread emul-linux-86 encode examples exif expat f90 f95 fam fbcon ffmpeg fftw flac flash foomaticdb fortran fortran90 fortran95 g95 gcj gd gdbm geforce ggi gif ginac glut glx gmp gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal hardened hardenedphp hdf5 hdtemp headphones html2ps iconv ieee1394 imagemagick imlib inifile innodb ipv6 isdnlog jabber jack jikes jpeg junit ladcca lapack lcms ldap libcaca libwww lm_sensors m17n-lib mad mhash midi mikmod mime ming mjpeg mmx mng motif mp3 mpeg mplayer msession mudflap multilib mysql mysqli ncurses netcdf nforce nls nptl nptlonly nsplugin nvidia nvidia-glx objc ofx ogg openal opengl openmp osc pcre pdflib perl php plotutils png portaudio ppds pppd prelude profile python qdbm qt qt3 qt4 quicktime radius readline reflection ruby samba scanner sdl session sharedext shorten simplexml slp sndfile speex spell spl sse sse2 ssl svg sysfs szip tcltk tcp tcpd test tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd videos vim-syntax vorbis wddx wifi wireless wmf xfce xfce4 xine xml xmlrpc xorg xosd xpm xscreensaver xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="access auth auth_dbm auth_anon auth_digest authz_host alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate  filter mime-magic cern-meta expires headers usertrack unique_id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia nv vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-03 10:29:59 UTC
/usr/local/lib/python2.5/config/libpython2.5.a(abstract.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/usr/local/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad
value

Why do you have libpython2.5.a residing in /usr/local/lib? Seems like you installed python manually and this installation now interferes with the regular python installation from portage.

Please remove all python-related stuff from /usr/local and try to emerge lcms with activated python USE flag again.
Comment 2 florenzopaolo.dimagli 2009-03-03 11:44:47 UTC
(In reply to comment #1)

> Please remove all python-related stuff from /usr/local and try to emerge lcms
> with activated python USE flag again.

Thank you it did the trick. I tend to exclude that I installed python2.5 manually, but I admit I have no explanation as to why those files where there. Nor remerging python (just to experiment) has put any files there. Strange.