Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220731 - dev-libs/opensc: missing -fPIC?
Summary: dev-libs/opensc: missing -fPIC?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Lowest normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on: 206683
Blocks:
  Show dependency tree
 
Reported: 2008-05-07 11:05 UTC by Marti Raudsepp
Modified: 2008-11-04 10:56 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 Marti Raudsepp 2008-05-07 11:05:06 UTC
[non]# emerge opensc -a

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

[ebuild     U ] dev-libs/opensc-0.11.4 [0.11.1-r1] USE="nsplugin%*" 

Would you like to merge these packages? [Yes/No]
[...]

 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./npinclude -I../../src/include -I../../src/include -DXP_UNIX -Wall -fno-strict-aliasing -fstack-protector -pipe -O2 -march=athlon64 -mtune=athlon64 -MT opensc_signer_la-dialog.lo -MD -MP -MF .deps/opensc_signer_la-dialog.Tpo -c dialog.c -o opensc_signer_la-dialog.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc  -Wall -fno-strict-aliasing -fstack-protector -pipe -O2 -march=athlon64 -mtune=athlon64    -o opensc-signer.la -rpath /usr/lib64 -module -avoid-version opensc_signer_la-opensc-crypto.lo opensc_signer_la-opensc-support.lo opensc_signer_la-signer.lo opensc_signer_la-stubs.lo opensc_signer_la-dialog.lo ../../src/libopensc/libopensc.la -lssl -lcrypto -ldl   -L/usr/lib64 -lassuan -lpthread  -lz
x86_64-pc-linux-gnu-gcc -shared  .libs/opensc_signer_la-opensc-crypto.o .libs/opensc_signer_la-opensc-support.o .libs/opensc_signer_la-signer.o .libs/opensc_signer_la-stubs.o .libs/opensc_signer_la-dialog.o  -Wl,--rpath -Wl,/var/tmp/portage/dev-libs/opensc-0.11.4/work/opensc-0.11.4/src/libopensc/.libs ../../src/libopensc/.libs/libopensc.so -lssl -lcrypto -ldl -L/usr/lib64 -lassuan -lpthread -lz  -march=athlon64 -mtune=athlon64 -Wl,-soname -Wl,opensc-signer.so -o .libs/opensc-signer.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libassuan.a(assuan-errors.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libassuan.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [opensc-signer.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-libs/opensc-0.11.4/work/opensc-0.11.4/src/signer'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/opensc-0.11.4/work/opensc-0.11.4/src/signer'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/opensc-0.11.4/work/opensc-0.11.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/opensc-0.11.4/work/opensc-0.11.4'
make: *** [all] Error 2
 * 
 * ERROR: dev-libs/opensc-0.11.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line  161:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * 
 * 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/dev-libs/opensc-0.11.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/opensc-0.11.4/temp/environment'.
 * 

[non]# emerge --info
Portage 2.2_pre5 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Tue, 06 May 2008 19:45:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r4, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/confcache:  0.4.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
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.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-fstack-protector -pipe -O2 -march=athlon64 -mtune=athlon64"
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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php4/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /usr/share/X11"
CXXFLAGS="-fstack-protector -pipe -O2 -march=athlon64 -mtune=athlon64"
DISTDIR="/usr/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="   ftp://ftp.ipv6.linux.ee/pub/gentoo/distfiles/   http://ftp.linux.ee/pub/gentoo/distfiles/   http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US en_GB et"
MAKEOPTS="-j2"
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/local/musicbrainz-overlay /usr/local/junkoverlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl adns agg alsa amd64 ao asf berkdb browserplugin bzip2 cairo cap caps cddb cli cracklib crypt cscope curl custom-cflags d dbus device-mapper dga dri dvd encode exif expat fame fastcgi fbcon ffmpeg firefox flac galago gd gdbm gdc gedit gimp glib glitz glut gmp gnome gphoto2 gpm gtk hal iconv idn imagemagick imlib ipv6 isdnlog jbig joystick jpeg jpeg2k keyring lcms libcaca libgksu libnotify logrotate lzo mad matroska midi mikmod mjpeg mmap mmx mmxext mng mozdevelop mozilla moznoirc mozsvg mp3 mpeg mplayer mudflap musepack musicbrainz ncurses nptl nptlonly nsplugin ntfs offensive ogg oggvorbis openal opengl openmp opensc otr pam pcre pcsc-lite perl png pppd python qt3 qt4 quotas randr readline reflection reiser4 reiserfs rtc samba sasl sdl session smartcard speex spl sqlite sqlite3 sse sse2 ssl startup-notification svg theora tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wxwindows xcb xgetdefault xine xml xml2 xorg xv xvid xvmc zlib zsh-completion" 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 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 joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB et" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marti Raudsepp 2008-05-07 17:08:04 UTC
Problem solved by re-merging libassuan (upgrading from 1.0.2 to 1.0.4).

I believe the -fPIC bug was resolved on 1.0.2-r1, so opensc should probably depend on >=libassuan-1.0.2-r1

From: /usr/portage/dev-libs/libassuan/ChangeLog

*libassuan-1.0.2-r1 (20 Jul 2007)
  20 Jul 2007; Alon Bar-Lev <alonbl@gentoo.org> +libassuan-1.0.2-r1.ebuild:
  Make archive PIC
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2008-05-08 07:36:00 UTC
This is hard as I am waiting for ~s390 ~sh to be stable first...
Thanks!
Comment 3 Daniel Black (RETIRED) gentoo-dev 2008-11-04 10:56:23 UTC
as libassuan-1.0.2-r1 has been stable and the lowest version for ages I'm marking this as closed.

Later versions of stable so I've purged 1.0.2-r1 just to be sure :-)