From todays 'emerge sync', updating libwww... # emerge libwww Calculating dependencies ...done! >>> emerge (1 of 1) net-libs/libwww-5.4.0-r2 to / >>> md5 src_uri ;-) w3c-libwww-5.4.0.tgz >>> md5 src_uri ;-) libwww-5.4.0-debian-autoconf-2.5.patch.bz2 >>> Unpacking source... >>> Unpacking w3c-libwww-5.4.0.tgz to /var/tmp/portage/libwww-5.4.0-r2/work >>> Unpacking libwww-5.4.0-debian-autoconf-2.5.patch.bz2 to /var/tmp/portage/libwww-5.4.0-r2/work [snip, snap ...] gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/include -I../../../modules/md5 -I../../../modules/expat/xmlparse -I../../../Library/src -I/usr/local/ssl/include -O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe -Wall -c HTSSL.c -fPIC -DPIC -o HTSSL.o HTSSLReader.c:27:17: ssl.h: No such file or directory HTSSLWriter.c:27:17: ssl.h: No such file or directory HTSSL.c:32:17: ssl.h: No such file or directory HTSSL.c:33:18: rand.h: No such file or directory HTSSLWriter.c: In function `HTSSLWriter_write': HTSSLWriter.c:167: error: `SSL_ERROR_NONE' undeclared (first use in this function) HTSSLWriter.c:167: error: (Each undeclared identifier is reported only once HTSSLWriter.c:167: error: for each function it appears in.) HTSSLWriter.c:186: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function) HTSSLWriter.c:192: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function) HTSSLWriter.c:195: error: `SSL_ERROR_WANT_X509_LOOKUP' undeclared (first use in this function) HTSSLWriter.c:199: error: `SSL_ERROR_ZERO_RETURN' undeclared (first use in this function) HTSSLWriter.c:200: error: `SSL_ERROR_SSL' undeclared (first use in this function) HTSSLWriter.c:201: error: `SSL_ERROR_SYSCALL' undeclared (first use in this function) make[5]: *** [HTSSLWriter.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... HTSSLReader.c: In function `HTSSLReader_read': HTSSLReader.c:161: error: `SSL_ERROR_NONE' undeclared (first use in this function) HTSSLReader.c:161: error: (Each undeclared identifier is reported only once HTSSLReader.c:161: error: for each function it appears in.) HTSSLReader.c:181: error: `SSL_ERROR_WANT_READ' undeclared (first use in this function) HTSSLReader.c:194: error: `SSL_ERROR_WANT_WRITE' undeclared (first use in this function) HTSSLReader.c:197: error: `SSL_ERROR_WANT_X509_LOOKUP' undeclared (first use in this function) HTSSLReader.c:201: error: `SSL_ERROR_ZERO_RETURN' undeclared (first use in this function) HTSSLReader.c:202: error: `SSL_ERROR_SSL' undeclared (first use in this function) HTSSLReader.c:203: error: `SSL_ERROR_SYSCALL' undeclared (first use in this function) In file included from HTSSL.c:43: HTSSLMan.h:24: error: syntax error before "SSL" HTSSLMan.h:24: warning: no semicolon at end of struct or union HTSSLMan.h:28: error: syntax error before '}' token HTSSL.c:46: error: syntax error before '*' token HTSSL.c:46: warning: type defaults to `int' in declaration of `app_ctx' HTSSL.c:46: warning: data definition has no type or storage class HTSSL.c:53: error: `X509_V_OK' undeclared here (not in a function) HTSSL.c:64: error: syntax error before '*' token HTSSL.c: In function `apps_ssl_info_callback': HTSSL.c:67: error: `where' undeclared (first use in this function) HTSSL.c:67: error: (Each undeclared identifier is reported only once HTSSL.c:67: error: for each function it appears in.) HTSSL.c:67: error: `SSL_ST_MASK' undeclared (first use in this function) HTSSL.c:68: error: `SSL_ST_CONNECT' undeclared (first use in this function) HTSSL.c:70: error: `SSL_ST_ACCEPT' undeclared (first use in this function) HTSSL.c:74: error: `SSL_CB_LOOP' undeclared (first use in this function) HTSSL.c:75: warning: implicit declaration of function `SSL_state_string_long' HTSSL.c:75: error: `s' undeclared (first use in this function) HTSSL.c:76: error: `SSL_CB_ALERT' undeclared (first use in this function) HTSSL.c:77: error: `SSL_CB_READ' undeclared (first use in this function) HTSSL.c:78: warning: implicit declaration of function `SSL_alert_type_string_long' HTSSL.c:78: error: `ret' undeclared (first use in this function) HTSSL.c:78: warning: implicit declaration of function `SSL_alert_desc_string_long' HTSSL.c:81: error: `SSL_CB_EXIT' undeclared (first use in this function) HTSSL.c: At top level: HTSSL.c:94: error: syntax error before "X509_STORE_CTX" HTSSL.c: In function `verify_callback': HTSSL.c:97: error: `X509' undeclared (first use in this function) HTSSL.c:97: error: `err_cert' undeclared (first use in this function) HTSSL.c:97: warning: implicit declaration of function `X509_STORE_CTX_get_current_cert' HTSSL.c:97: error: `ctx' undeclared (first use in this function) HTSSL.c:98: warning: implicit declaration of function `X509_STORE_CTX_get_error' HTSSL.c:99: warning: implicit declaration of function `X509_STORE_CTX_get_error_depth' HTSSL.c:100: warning: implicit declaration of function `X509_NAME_oneline' HTSSL.c:100: warning: implicit declaration of function `X509_get_subject_name' HTSSL.c:103: error: `ok' undeclared (first use in this function) HTSSL.c:104: warning: implicit declaration of function `X509_verify_cert_error_string' HTSSL.c:108: error: `X509_V_OK' undeclared (first use in this function) HTSSL.c:111: error: `X509_V_ERR_CERT_CHAIN_TOO_LONG' undeclared (first use in this function) HTSSL.c:116: error: `X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT' undeclared (first use in this function) HTSSL.c:117: warning: implicit declaration of function `X509_get_issuer_name' HTSSL.c:121: error: `X509_V_ERR_CERT_NOT_YET_VALID' undeclared (first use in this function) HTSSL.c:122: error: `X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD' undeclared (first use in this function) HTSSL.c:128: error: `X509_V_ERR_CERT_HAS_EXPIRED' undeclared (first use in this function) HTSSL.c:129: error: `X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD' undeclared (first use in this function) HTSSL.c: In function `HTSSL_init': HTSSL.c:179: warning: implicit declaration of function `RAND_file_name' HTSSL.c:180: warning: implicit declaration of function `RAND_load_file' HTSSL.c:183: error: `SSL_METHOD' undeclared (first use in this function) HTSSL.c:183: error: `meth' undeclared (first use in this function) HTSSL.c:184: warning: implicit declaration of function `SSLeay_add_ssl_algorithms' HTSSL.c:186: warning: implicit declaration of function `SSL_load_error_strings' HTSSL.c:191: warning: implicit declaration of function `SSLv2_client_method' HTSSL.c:194: warning: implicit declaration of function `SSLv3_client_method' HTSSL.c:197: warning: implicit declaration of function `SSLv23_client_method' HTSSL.c:201: warning: implicit declaration of function `TLSv1_client_method' HTSSL.c:206: warning: implicit declaration of function `SSL_CTX_new' HTSSL.c:206: warning: assignment makes pointer from integer without a cast HTSSL.c:214: warning: implicit declaration of function `SSL_CTX_set_info_callback' HTSSL.c:218: warning: implicit declaration of function `SSL_CTX_set_verify' HTSSL.c:218: error: `SSL_VERIFY_PEER' undeclared (first use in this function) HTSSL.c:221: warning: implicit declaration of function `SSL_CTX_set_session_cache_mode' HTSSL.c:221: error: `SSL_SESS_CACHE_CLIENT' undeclared (first use in this function) HTSSL.c: In function `HTSSL_terminate': HTSSL.c:232: warning: implicit declaration of function `SSL_CTX_free' HTSSL.c: In function `HTSSL_connectSetup': HTSSL.c:251: error: dereferencing pointer to incomplete type HTSSL.c:252: error: dereferencing pointer to incomplete type HTSSL.c:253: error: dereferencing pointer to incomplete type HTSSL.c:254: error: dereferencing pointer to incomplete type HTSSL.c:254: warning: implicit declaration of function `SSL_new' HTSSL.c:255: error: dereferencing pointer to incomplete type HTSSL.c:258: warning: implicit declaration of function `SSL_set_connect_state' HTSSL.c:258: error: dereferencing pointer to incomplete type HTSSL.c:261: warning: implicit declaration of function `SSL_set_fd' HTSSL.c:261: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_addRef': HTSSL.c:275: error: dereferencing pointer to incomplete type HTSSL.c:276: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_new': HTSSL.c:298: error: dereferencing pointer to incomplete type HTSSL.c:307: error: invalid application of `sizeof' to an incomplete type HTSSL.c: In function `HTSSL_free': HTSSL.c:329: error: dereferencing pointer to incomplete type HTSSL.c:330: error: dereferencing pointer to incomplete type HTSSL.c:332: error: dereferencing pointer to incomplete type HTSSL.c:335: error: dereferencing pointer to incomplete type HTSSL.c:336: warning: implicit declaration of function `SSL_free' HTSSL.c:336: error: dereferencing pointer to incomplete type HTSSL.c:337: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_open': HTSSL.c:351: error: dereferencing pointer to incomplete type HTSSL.c:356: error: dereferencing pointer to incomplete type HTSSL.c:363: error: dereferencing pointer to incomplete type HTSSL.c:369: error: dereferencing pointer to incomplete type HTSSL.c:370: error: dereferencing pointer to incomplete type HTSSL.c:373: warning: implicit declaration of function `SSL_connect' HTSSL.c:373: error: dereferencing pointer to incomplete type HTSSL.c:374: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_close': HTSSL.c:386: error: dereferencing pointer to incomplete type HTSSL.c:387: error: dereferencing pointer to incomplete type HTSSL.c:388: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_isOpen': HTSSL.c:396: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_read': HTSSL.c:401: error: dereferencing pointer to incomplete type HTSSL.c:401: warning: implicit declaration of function `SSL_read' HTSSL.c:401: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_write': HTSSL.c:406: error: dereferencing pointer to incomplete type HTSSL.c:406: warning: implicit declaration of function `SSL_write' HTSSL.c:406: error: dereferencing pointer to incomplete type HTSSL.c: In function `HTSSL_getError': HTSSL.c:411: error: dereferencing pointer to incomplete type HTSSL.c:411: warning: implicit declaration of function `SSL_get_error' HTSSL.c:411: error: dereferencing pointer to incomplete type make[5]: *** [HTSSLReader.lo] Error 1 make[5]: *** [HTSSL.lo] Error 1 make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0/Library/src/SSL' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0/Library/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0/Library' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libwww-5.4.0-r2/work/w3c-libwww-5.4.0' make: *** [all] Error 2 !!! ERROR: net-libs/libwww-5.4.0-r2 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message) ------------------------------ # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r9) ================================================================= System uname: 2.4.20-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe" 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/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://gentoo.noved.org/ http://gentoo.noved.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d acl acpi alsa apache2 apm arts avi berkdb bindist bonobo cdr crypt cups curl doc dvd dvdr encode esd evo fastcgi flash foomaticdb gdbm gif gnome gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib ipv6 java jikes jpeg libg++ libwww mad maildir mcal mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png ppds python quicktime readline samba sasl scanner sdl slang slp snmp spell sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xml xml2 xmms xosd xv zeo zlib"
Looks like autoconf was finding an older version of the ssl headers in /usr/local/ssl/include/openssl and was setting the build up to barf on it. Removing /usr/local/ssl from the mix allowed the build to complete. It would be nice to be able to exclude stuff in /usr/local from ebuild processes, since this should be strictly a private heirarchy and not used for system ebuilds unless explicitly configured to do so.