Bug 38646 - security/cyrus-sasl: problem with configure script on -CURRENT
Summary: security/cyrus-sasl: problem with configure script on -CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-28 05:10 UTC by Scot W. Hetzel
Modified: 2002-06-18 07:17 UTC (History)
0 users

See Also:


Attachments
file.diff (3.89 KB, patch)
2002-05-28 05:10 UTC, Scot W. Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot W. Hetzel 2002-05-28 05:10:01 UTC
	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
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-06-18 07:17:03 UTC
State Changed
From-To: open->closed

committed, thanks