gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/include -I../../../modules/md5 -I../../../modules/expat/xmlparse -I../../../Librar y/src -I/usr/include/openssl -march=pentium4 -O2 -pipe -Wall -c HTSSLReader.c -fPIC -DPIC -o .libs/HTSSLReader.lo In file included from /usr/include/openssl/rsa.h:65, from /usr/include/openssl/evp.h:127, from /usr/include/openssl/x509.h:67, from /usr/include/openssl/ssl.h:122, from HTSSL.c:32: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:243: syntax error before "BN_ULONG" /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:249: syntax error before '}' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:257: syntax error before "BIGNUM" /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:259: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:262: syntax error before '}' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:268: syntax error before "BIGNUM" /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:270: syntax error before "Ni" /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:272: syntax error before "n0" /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:274: syntax error before '}' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:281: syntax error before "BIGNUM" /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:286: syntax error before '}' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:325: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:331: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:333: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:334: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:335: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:336: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:337: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:339: syntax error before '*' token /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h:340: syntax error before ' This is from net-libs/libwww-5.4.0-r1 but any other package using ssl will fail as well. I tried remerging openssl but the problem persists. I wanted to try falling back to an earlier openssl but the ebuild are deleted (due to security i remember). Reproducible: Always Steps to Reproduce: 1. emerge openssl-0.9.6k (x86 stable) 2. emerge wget or libwww with USE=ssl 3. see fail Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://www.fhh.opensource-mirror.de/gentoo.org/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mmx motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex tcltk java mysql X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde opengl mozilla cdr apache2 artswrappersuid curl flash freetds gd gd-external gtk2 lufsusermount pic slp socks5 sse tiff wmf xml -gpm -svga"
delete that file and then try emerging again (/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h)
removing that file solved the problem. thanks!
Added the fix from 0.9.7c to 0.9.6k-r1. Closing