When I try to emerge newpg-0.9.4-r1, I get the following errors: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c `test -f 'maperror.c' || echo './'`maperror.c maperror.c: In function `map_gcry_err': maperror.c:72: error: `GCRYERR_EOF' undeclared (first use in this function) maperror.c:72: error: (Each undeclared identifier is reported only once maperror.c:72: error: for each function it appears in.) maperror.c:80: error: `GCRYERR_WRONG_PK_ALGO' undeclared (first use in this function) maperror.c:81: error: `GCRYERR_INV_PK_ALGO' undeclared (first use in this function) maperror.c:82: error: `GCRYERR_INV_MD_ALGO' undeclared (first use in this function) maperror.c:83: error: `GCRYERR_INV_CIPHER_ALGO' undeclared (first use in this function) maperror.c:86: error: `GCRYERR_INV_KEYLEN' undeclared (first use in this function) maperror.c:87: error: `GCRYERR_WEAK_KEY' undeclared (first use in this function) maperror.c:88: error: `GCRYERR_BAD_PUBLIC_KEY' undeclared (first use in this function) maperror.c:89: error: `GCRYERR_BAD_SECRET_KEY' undeclared (first use in this function) maperror.c:90: error: `GCRYERR_BAD_SIGNATURE' undeclared (first use in this function) maperror.c:92: error: `GCRYERR_BAD_MPI' undeclared (first use in this function) maperror.c:96: error: `GCRYERR_INV_ARG' undeclared (first use in this function) maperror.c:97: error: `GCRYERR_INV_OP' undeclared (first use in this function) maperror.c:98: error: `GCRYERR_INTERNAL' undeclared (first use in this function) maperror.c:99: error: `GCRYERR_INV_CIPHER_MODE' undeclared (first use in this function) maperror.c:103: error: `GCRYERR_SELFTEST' undeclared (first use in this function) maperror.c:107: error: `GCRYERR_SEXP_INV_LEN_SPEC' undeclared (first use in this function) maperror.c:108: error: `GCRYERR_SEXP_STRING_TOO_LONG' undeclared (first use in this function) maperror.c:109: error: `GCRYERR_SEXP_UNMATCHED_PAREN' undeclared (first use in this function) maperror.c:110: error: `GCRYERR_SEXP_NOT_CANONICAL' undeclared (first use in this function) maperror.c:111: error: `GCRYERR_SEXP_BAD_CHARACTER' undeclared (first use in this function) maperror.c:112: error: `GCRYERR_SEXP_BAD_QUOTATION' undeclared (first use in this function) maperror.c:113: error: `GCRYERR_SEXP_ZERO_PREFIX' undeclared (first use in this function) maperror.c:114: error: `GCRYERR_SEXP_NESTED_DH' undeclared (first use in this function) maperror.c:115: error: `GCRYERR_SEXP_UNMATCHED_DH' undeclared (first use in this function) maperror.c:116: error: `GCRYERR_SEXP_UNEXPECTED_PUNC' undeclared (first use in this function) maperror.c:117: error: `GCRYERR_SEXP_BAD_HEX_CHAR' undeclared (first use in this function) maperror.c:118: error: `GCRYERR_SEXP_ODD_HEX_NUMBERS' undeclared (first use in this function) maperror.c:119: error: `GCRYERR_SEXP_BAD_OCT_CHAR' undeclared (first use in this function) maperror.c:123: error: `GCRYERR_NO_MEM' undeclared (first use in this function) maperror.c:125: error: `GCRYERR_NOT_IMPL' undeclared (first use in this function) maperror.c:126: error: `GCRYERR_CONFLICT' undeclared (first use in this function) maperror.c:128: error: `GCRYERR_INV_OBJ' undeclared (first use in this function) maperror.c:129: error: `GCRYERR_TOO_SHORT' undeclared (first use in this function) maperror.c:130: error: `GCRYERR_TOO_LARGE' undeclared (first use in this function) maperror.c:131: error: `GCRYERR_NO_OBJ' undeclared (first use in this function) make[3]: *** [maperror.o] Error 1 make[3]: Leaving directory `/tmp/portage/portage/newpg-0.9.4-r1/work/newpg-0.9.4/common' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/portage/portage/newpg-0.9.4-r1/work/newpg-0.9.4/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/portage/newpg-0.9.4-r1/work/newpg-0.9.4' make: *** [all] Error 2 !!! ERROR: app-crypt/newpg-0.9.4-r1 failed. !!! Function src_compile, Line 36, Exitcode 2 !!! (no error message) I *think* these defines were expected in libgcrypt, as gcrypt.h has stuff that looks pretty close (all the gcry_* stuff seems to be found there). I have libgcrypt-1.1.91 installed, but those defines are not in there. Also, if I comment out the switch that contains all those defines (letting it default to "general error"), I then get the following error: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I../common -I../intl -I/usr/include -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c `test -f 'fingerprint.c' || echo './'`fingerprint.c In file included from fingerprint.c:33: gpgsm.h:183: warning: `GCRY_MD_HD' is deprecated (declared at /usr/include/gcrypt.h:1032) gpgsm.h:185: warning: `GCRY_MD_HD' is deprecated (declared at /usr/include/gcrypt.h:1032) fingerprint.c: In function `gpgsm_get_fingerprint': fingerprint.c:48: warning: `GCRY_MD_HD' is deprecated (declared at /usr/include/gcrypt.h:1032) fingerprint.c:62: warning: passing arg 1 of `gcry_md_open' makes pointer from integer without a cast fingerprint.c:62: error: too few arguments to function `gcry_md_open' fingerprint.c:62: warning: assignment makes pointer from integer without a cast fingerprint.c: In function `gpgsm_get_keygrip': fingerprint.c:146: warning: `GCRY_SEXP' is deprecated (declared at /usr/include/gcrypt.h:224) make[2]: *** [fingerprint.o] Error 1 make[2]: Leaving directory `/tmp/portage/portage/newpg-0.9.4-r1/work/newpg-0.9.4/sm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/portage/newpg-0.9.4-r1/work/newpg-0.9.4' make: *** [all] Error 2 !!! ERROR: app-crypt/newpg-0.9.4-r1 failed. !!! Function src_compile, Line 36, Exitcode 2 !!! (no error message) Sure enough, the function declaration for gcry_md_open in gcrypt.h says it takes three arguments, but fingerprint.c is only passing 2. So, it would appear there is a version mismatch here. How can I fix it? Thanks, Eric Reproducible: Always Steps to Reproduce: 1. emerge newpg 2. 3. Actual Results: didn't compile Expected Results: compile Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) MP Processor 1600+ Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon-mp -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.1/share/config /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/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/tmp/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d acl acpi apache2 apm arts artswrappersuid avi berkdb crypt cups curl dga directfb dvd encode esd evms2 fbcon foomaticdb freetds gd gdbm ggi gif gnome gpm gtk gtk2 imap imlib innodb java jpeg junit kde kerberos ldap libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mpi mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime readline ruby samba sasl scanner sdl slang slp socks5 spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xml xml2 xmms xosd xv zeo zlib video_cards_radeon"
Sorry - I didn't notice bug 37109 covers this problem already - I had recently done the search, but came up empty! Sorry. *** This bug has been marked as a duplicate of 37109 ***