gcc -I/usr/include -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -o sc-investigate sc-investigate.o apdu.o ccid-driver.o iso7816.o tlv.o atr.o app.o app-help.o app-openpgp.o app-nks.o app-dinsig.o ../jnlib/libjnlib.a ../common/libcommon.a -lgcrypt -lgpg-error -lksba -lgpg-error -L/usr/lib -lopensc -lpcsclite -lpthread -lgpg-error -ldl -lz /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpcsclite collect2: ld returned 1 exit status make[2]: *** [sc-investigate] Error 1 make[2]: *** Waiting for unfinished jobs.... /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpcsclite collect2: ld returned 1 exit status make[2]: *** [scdaemon] Error 1 make[2]: Leaving directory `/var/tmp/portage/gnupg-1.9.10/work/gnupg-1.9.10/scd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnupg-1.9.10/work/gnupg-1.9.10' make: *** [all] Error 2 !!! ERROR: app-crypt/gnupg-1.9.10 failed. !!! Function src_compile, Line 66, Exitcode 2 !!! (no error message) Having sys-apps/pcsc-lite-1.2.0 merged it works. So this looks like a dependency or configure error. (I have the smartcard useflag set) Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r11 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r7-rei4-gcc34) ================================================================= System uname: 2.6.8-gentoo-r7-rei4-gcc34 i686 AMD Athlon(TM) XP 2100+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages prelink userpriv" GENTOO_MIRRORS="http://gentoo.inode.at/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow 3dnowex X X509 aac acpi acpi4linux alsa amd apache2 apm arts artswrappersuid avi berkdb bitmap-fonts bluetooth bzlib cddb cdr cdrom chroot codecs composite crypt cscope cups dga dio divx divx4linux dmx dri dv dvd dvdr dvdreadencode exif faac faad fam fbcon ffmpeg flac foomaticdb ftp gd gif gimp gimpprint gphoto2 gpm graphviz gs gtk gtk2 hbci imap imlib imlib2 ipv6 irda irmc java jit jpeg jpeg2k kde libg++ libwww linguas_de lirc lm_sensors lufsusermount lzo lzw lzw-tiff mad maildir mcal mikmod mime mmx mmx2 mng monkey motif moznocompose moznoirc mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer ncurses nls nntp no-old-linux nptl nvidia odbc oggvorbis ooo-kde openal opengl pam pcre pda pdf pdflib pear-db pic png ppds procmail python qt quicktime readline samba scanner sdl session skey slang slp smartcard smime spamassassin spellsse sse2 ssl svg svga tcltk tcpd tetex tga theora threads tiff transcode truetype usb userlocales v4l v4l2 vim-with-x wmf x86 xine xinerama xml xml2 xmms xosd xpm xprint xv xvid xvmc yv12 zlib"
I'd try adding sys-apps/pcsc-lite and see if that works.
I can confirm that >=gnupg-1.9 needs pcsc-lite to compile.
Only if you set USE=smartcard, then it should depend on pcsc-lite
Isn't it enough as it currently is, depending on opensc ? (1.9.10 is no longer in portage, so I can check the old dep-tree) This bug-entry has been here for a long time now
http://bugs.gentoo.org/attachment.cgi?id=61145&action=view
(In reply to comment #5) > http://bugs.gentoo.org/attachment.cgi?id=61145&action=view If this is a proposed patch, please attach a new one by doing "diff -u oldfile newfile". The option "-u" ensures that output of diff is compatible with input of patch.
Please mark Bug 95938 as a dupe of this. The patch should also be broken down a bit more (it is for 1.9.15-r1 ebuild) PIC should always be fixed ./configure should be fixed to detect whether to use pcsclite or opensc if told to support smartcard.
*** Bug 95938 has been marked as a duplicate of this bug. ***
applying patch in gnupg-1.9.18