wmbiff-0.4.17 fails to compile if there's 'crypt' in the USE. With '-crypt' it compiles without problem. I've tried to install the 0.4.15 version but it fails with the same errors. Pop3Client.c:302: warning: passing arg 1 of `gcry_md_open' makes pointer from integer without a cast Pop3Client.c:302: error: too few arguments to function `gcry_md_open' Pop3Client.c:302: warning: assignment makes pointer from integer without a cast make[2]: *** [Pop3Client.o] Error 1 make[2]: *** Waiting for unfinished jobs.... wmbiff.c: In function `init_biff': wmbiff.c:368: warning: implicit declaration of function `gcry_errno' make[2]: Leaving directory `/var/tmp/portage/wmbiff-0.4.17/work/wmbiff-0.4.17/wmbiff' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/wmbiff-0.4.17/work/wmbiff-0.4.17' make: *** [all] Error 2 !!! ERROR: x11-plugins/wmbiff-0.4.17 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1) ================================================================= System uname: 2.6.1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -mfpmath=sse -Os -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/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="-march=pentium4 -mfpmath=sse -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 S3TC X aalib alsa apache2 avi caps cdr crypt cups dga dv dvb dvd encode foomaticdb gif gpgme gpm gtk gtk2 imlib ipv6 java jpeg maildir mmx mozilla moznocompose moznoirc moznomail mpeg ncurses nls nptl oggvorbis opengl pam pdflib perl plotutils png pnp python quicktime readline samba sasl sdl snmp sse ssl tcpd tetex tiff truetype usb wmf wxwindows xchattext xml xml2 xmms xv zlib"
what version of gnucrypt ?
err libgcrypt
libgcrypt-1.1.91, since I have ~x86. I tried to downgrade it to 1.1.12 (the last stable) and wmbiff compiled correctly.
Created attachment 23680 [details, diff] patch for libgcrypt API change fix This is because of an API change in libgcrypt. From http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/libgcrypt/README.apichanges?rev=1.4 So, really this can/should be reported upstream. The gentoo admins can decide either way. However, I noticed that there was a new version available for wmbiff 0.4.20 so my solution is presented here for future reference. So I made an ebuild for 0.4.20 (essentially by copying the 0.4.17 ebuild) and added my patch to handle the API changes in libgrypt (a new epatch line in the ebuild).
The patch is not sufficient because there are other compilation problems with the ~x86 gnutls version. Working on it...
Just added 0.4.20 to CVS which applies a patch for gcrypt/gnutls related stuff when > libgcrypt-1.1.12 is found and "crypt" is in USE. Please try. I will also report this to the author. Thanks for your patch!