I'm trying to upgrade my system from x86 to ~x86 Ive attempted to emerge kde first, but the emerge for libxslt fails with the following. -------------------------------------------------------------------------------- /usr/include/gcrypt.h:1372: error: syntax error before "gcry_prime_generate" /usr/include/gcrypt.h:1385: error: syntax error before "gcry_prime_group_generator" /usr/include/gcrypt.h:1395: error: syntax error before "gcry_prime_check" In file included from /usr/include/gcrypt.h:1495, from crypto.c:319: /usr/include/gcrypt-module.h:40: error: syntax error before '*' token /usr/include/gcrypt-module.h:42: error: `gcry_err_code_t' declared as function returning a function /usr/include/gcrypt-module.h:42: error: `gcry_err_code_t' redeclared as different kind of symbol /usr/include/gcrypt.h:95: error: previous declaration of `gcry_err_code_t' /usr/include/gcrypt-module.h:81: error: syntax error before "gcry_cipher_setkey_t" /usr/include/gcrypt-module.h:86: error: syntax error before '}' token /usr/include/gcrypt-module.h:91: error: syntax error before "gcry_cipher_register" /usr/include/gcrypt-module.h:91: error: syntax error before '*' token /usr/include/gcrypt-module.h:106: error: `gcry_pk_generate_t' declared as function returning a function /usr/include/gcrypt-module.h:110: error: `gcry_pk_check_secret_key_t' declared as function returning a function /usr/include/gcrypt-module.h:117: error: `gcry_pk_encrypt_t' declared as function returning a function /usr/include/gcrypt-module.h:124: error: `gcry_pk_decrypt_t' declared as function returning a function /usr/include/gcrypt-module.h:130: error: `gcry_pk_sign_t' declared as function returning a function /usr/include/gcrypt-module.h:138: error: `gcry_pk_verify_t' declared as function returning a function /usr/include/gcrypt-module.h:166: error: syntax error before "gcry_pk_register" /usr/include/gcrypt-module.h:211: error: syntax error before "gcry_md_register" crypto.c: In function `exsltCryptoGcryptRc4Encrypt': crypto.c:367: error: syntax error before "rc" crypto.c:371: error: `rc' undeclared (first use in this function) crypto.c: In function `exsltCryptoGcryptRc4Decrypt': crypto.c:406: error: syntax error before "rc" crypto.c:410: error: `rc' undeclared (first use in this function) make[2]: *** [crypto.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/include/libxml2 -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -I/usr/include -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -MT math.lo -MD -MP -MF .deps/math.Tpo -c math.c -o math.o >/dev/null 2>&1 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/include/libxml2 -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -I/usr/include -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -MT functions.lo -MD -MP -MF .deps/functions.Tpo -c functions.c -fPIC -DPIC -o .libs/functions.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/include/libxml2 -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -I/usr/include -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c -fPIC -DPIC -o .libs/strings.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/include/libxml2 -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -I/usr/include -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c -o strings.o >/dev/null 2>&1 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/include/libxml2 -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -I/usr/include -O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays -Wall -MT functions.lo -MD -MP -MF .deps/functions.Tpo -c functions.c -o functions.o >/dev/null 2>&1 make[2]: Leaving directory `/home/tmp/portage/libxslt-1.1.8-r1/work/libxslt-1.1.8/libexslt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/tmp/portage/libxslt-1.1.8-r1/work/libxslt-1.1.8' make: *** [all] Error 2 !!! ERROR: dev-libs/libxslt-1.1.8-r1 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! make failed -------------------------------------------------------------------------------- Reproducible: Always Steps to Reproduce: 1. use flags set to ~x86 2. emerge kde, world or libxslt directly 3. Actual Results: failure to emerge libxslt as noted above Expected Results: installed cleanly Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r1) ================================================================= System uname: 2.6.8-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.70GHz Gentoo Base System version 1.5.3 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays " 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/share/config /usr/lib/mozilla/defaults/pref /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="-O3 -march=pentium4 -pipe -funroll-loops -fprefetch-loop-arrays " DISTDIR="/home/portage/distfiles" FEATURES="ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.datapipe.net/gentoo ftp://mirrors.tds.net/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/tmp" PORTDIR="/home/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 apm arts avi berkdb bonobo cdr cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pcmcia pda pdflib perl png pnp python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex truetype video_cards_radeon x86 xml xml2 xmms xv zlib"
Resolved. possible problem with the order of emerging. updated to the latest available libgcrypt. This solved the problem.
this stil needs a look
Was missing a USE flag, and dependency on gcrypt. Fixed with 1.1.9-r1. Thanks for your report.
*** Bug 72586 has been marked as a duplicate of this bug. ***
*** Bug 73552 has been marked as a duplicate of this bug. ***
*** Bug 73925 has been marked as a duplicate of this bug. ***
*** Bug 80089 has been marked as a duplicate of this bug. ***