Autoconf213 generated configure scripts fail on -CURRENT with gcc 3.1, due to duplicated include directories. The problem is that the cyrus-sasl port is adding "-I${OPENSSLINC} -I${OPENSSLINC}/openssl" to the CPPFLAGS, then when autoconf213's AC_CHECK_HEADERS is used these flags are being passed to gcc 3.1, which outputs a warning to conftest.out. Then conftest.out is grep'd for warning/error messages, which results in the configure script failing to detect these headers. How-To-Repeat: On a 5.0-CURRENT system, try to build a port which adds "-I/usr/include" to the compile flags during configure stage: cd /usr/ports/security/cyrus-sasl make configure configures output shows that pwd.h & unistd.h were not detected, and then proced with a 'make build', and the following error occurs: ... rm -f .libs/checkpw.lo cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include -I/usr/include/opens sl -Wall -W -O -pipe -c checkpw.c -fPIC -DPIC cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory checkpw.c: In function `passwd_verify_password': checkpw.c:651: warning: implicit declaration of function `getpwnam' checkpw.c:651: warning: assignment makes pointer from integer without a cast checkpw.c:654: dereferencing pointer to incomplete type checkpw.c:656: warning: implicit declaration of function `crypt' checkpw.c:656: warning: assignment makes pointer from integer without a cast checkpw.c:658: dereferencing pointer to incomplete type checkpw.c: In function `retry_writev': checkpw.c:1160: warning: comparison between signed and unsigned checkpw.c: In function `pwcheck_verify_password': checkpw.c:1223: warning: comparison between signed and unsigned checkpw.c:1224: warning: implicit declaration of function `read' checkpw.c:1229: warning: implicit declaration of function `close' *** Error code 1 Fix: The attached patch adds -I${OPENSSLINC} to the CPPFLAGS, only if ${OPENSSLINC} != /usr/include. Also updated the Sendmail.README for Sendmail 8.10 - 8.12 Changed Files: files/Sendmail.README files/patch-ab
State Changed From-To: open->closed committed, thanks