Bug 48695

Summary: Error building world with sasl support in sendmail
Product: Base System Reporter: jmegias <jmegias>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-STABLE   
Hardware: Any   
OS: Any   

Description jmegias 2003-02-26 08:10:09 UTC
	I'm trying to add sasl support to sendmail. Then I've prepared the file /etc/make.conf with the following lines:
	SENDMAIL_CFLAGS+=   -I/usr/local/include/sasl -DSASL - -D_FFR_UNSAFE_SASL
	SENDMAIL_LDFLAGS+=  -L/usr/local/lib
	SENDMAIL_LDADD+=    -lsasl

	Then I've updated the system via cvsup to 4.7 stable release and making a buildworld break with the following error:

	===> lib/libmilter
	cc -O -pipe  -I/usr/src/lib/libmilter/../../contrib/sendmail/src -I/usr/src/lib/
	libmilter/../../contrib/sendmail/include -I. -DNETINET6 -DNOT_SENDMAIL -Dsm_snpr
	intf=snprintf -D_THREAD_SAFE -I/usr/local/include/sasl -DSASL - -D_FFR_UNSAFE_SA
	SL  -c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/main.c -o main.o
	cc: cannot specify -o with -c or -S and multiple compilations
	*** Error code 1

	Stop in /usr/src/lib/libmilter.
	*** Error code 1

	Stop in /usr/src/lib.
	*** Error code 1

	Stop in /usr/src.
	*** Error code 1

	Stop in /usr/src.
	*** Error code 1

	Stop in /usr/src.
	*** Error code 1

	Stop in /usr/src.
	tijeras#

Fix: 

Make buildworld makes ok if not exists the make.conf file.
How-To-Repeat: 	Always exists the before make.conf file and making a buildworld.
Comment 1 ru freebsd_committer freebsd_triage 2003-02-26 08:18:29 UTC
State Changed
From-To: open->closed

Remove a stray `-' from SENDMAIL_CFLAGS after -DSASL.