Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57881 - Incompatibility between libgcrypt and gpgme
Summary: Incompatibility between libgcrypt and gpgme
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 11:54 UTC by Bryan Childs
Modified: 2004-09-22 01:51 UTC (History)
2 users (show)

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 Bryan Childs 2004-07-21 11:54:20 UTC
With the current versions of gnupg, newpg and libgcrypt that I have emerged on my installation, I'm not able to successfully emerge gpgme (required for things like seahorse and other gpg front ends) without running into the following compilation error :

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gpgme    -O3 -march=athlon-xp -fomit-frame-pointer -pipe -I/usr/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT t-genkey.o -MD -MP -MF ".deps/t-genkey.Tpo" \
  -c -o t-genkey.o `test -f 't-genkey.c' || echo './'`t-genkey.c; \
then mv -f ".deps/t-genkey.Tpo" ".deps/t-genkey.Po"; \
else rm -f ".deps/t-genkey.Tpo"; exit 1; \
fi
/usr/bin/gpgsm --homedir . --import ./cert_g10code_test1.der
/usr/bin/gpgsm: error while loading shared libraries: libgcrypt.so.1: cannot open shared object file: No such file or directory
make[3]: *** [pubring.kbx] Error 127
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gpgme-0.4.7/work/gpgme-0.4.7/tests/gpgsm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gpgme-0.4.7/work/gpgme-0.4.7/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gpgme-0.4.7/work/gpgme-0.4.7'
make: *** [all] Error 2

!!! ERROR: app-crypt/gpgme-0.4.7 failed.
!!! Function src_compile, Line 47, Exitcode 2
!!! (no error message)


Version of gnupg currently installed is : 
*  app-crypt/gnupg
      Latest version available: 1.2.4
      Latest version installed: 1.2.4
      Size of downloaded files: 2,326 kB
      Homepage:    http://www.gnupg.org/
      Description: The GNU Privacy Guard, a GPL pgp replacement

newpg :
*  app-crypt/newpg
      Latest version available: 0.9.4-r1
      Latest version installed: 0.9.4-r1
      Size of downloaded files: 592 kB
      Homepage:    http://www.gnupg.org/
      Description: NewPG is the S/MIME variant of GnuPG which does also include
                   the gpg-agent, useful even for GnuPG

libgcrypt :
*  dev-libs/libgcrypt
      Latest version available: 1.2.0
      Latest version installed: 1.2.0
      Size of downloaded files: 926 kB
      Homepage:    http://www.gnupg.org/
      Description: general purpose crypto library based on the code used in 
                   GnuPG


If I try to make the symbolic link to libgcrypt.so.1 manually, then gpgsm seg faults...

That's about it - email me if you have more questions :)



Reproducible: Always
Steps to Reproduce:
1. emerge the packages I've outlined above (at those versions)
2. attempt to emerge gpgme
3. watch it go wrong

Actual Results:  
As described in the description, the build fails because the test of gpgsm
doesn't work properly.

Expected Results:  
Installed correctly by successfully building gpgme.

None at the moment.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-08-08 13:54:27 UTC
Doing gpgme overvamp in bug #57193. gpgsm (smime) I'm going to delay until gnupg can get stable.
Comment 2 Wim Uyttebroek 2004-08-21 07:14:16 UTC
Same problem here.

But I can install gpgme, when I first install an old
version of libgcrypt (libgcrypt-1.1.12.ebuild).


======================
 uemerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/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="-march=pentium3 -Os -pipe -fomit-frame-pointer"
DISTDIR="/home/gentoo/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imap imlib java jpeg junit kde libg++ libwww mad maildir mailwrapper mikmod mmx mod_php mod_ssl motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl php png prebuilt python qt quicktime readline ruby samba sasl sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml xml2 xmms xv zlib"
Comment 3 Neil Katin 2004-09-20 22:59:24 UTC
I see this problem too, both with gpgme-0.4.0 and gpgme-0.9.0-r1.

I tried the workaround in comment #2; it worked for me.

GPGME seems to be hard coded to look for libgcrypt.so.1; the newer
libgcrypt-1.1.91 and beyond install libgcrypt.so.7 and libgcrypt.so.11.
libgcrypt-1.1.12.ebuild generates libgcrypt.so.1 which is why it works.

So either libgcrypt should use slots or it should force a rebuild of
the dependent packages.

Looking further, bug 60211 might be the answer, since the file that
is failing (gpgsm) is in the newpg package, which seems to have been
removed from the portage tree and orphaned.

I unmerged newpg and then the emerge of gpgme worked OK.
Comment 4 Mark E. Drummond 2004-09-21 14:00:51 UTC
Same result for me. Uninstalling newpg allowed gpgme to install fine. Not sure if that is going to have any side effects or not.

Mark
Comment 5 Neil Katin 2004-09-21 19:08:12 UTC
Re: comment #4 from Mark about side effects of uninstalling newpg: you
lose S/MIME support.  If you need S/MIME then that's pretty serious.
Personally I don't know anyone who does, so I couldn't care less...
Comment 6 Daniel Black (RETIRED) gentoo-dev 2004-09-22 01:51:48 UTC
newpg is replaced with app-crypt/gnupg-1.9+. This is still under development so use at your own risk. There are reports that it is still missing part of the functionality in the gnupg-1.2* series.

gpgme-0.9.0-r20 has some very untested smime support if you want to give that a go. If you get it working great (i'd like to know). If it needed modification to get it working please tell me how and I'll introduce your fix.

There are harsher warning about using gnupg-1.9+ than my half warning here.So let me state more clearly: if you want to use it, make sure your job and life doesn't depend on it.

Fixed by the removal of newpg from gentoo. Users will need to remove newpg. Thanks to everyone for their contribution to the solution.