From nobody@FreeBSD.org  Sat Jan  5 20:44:29 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 5F2994A8
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Jan 2013 20:44:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4CB3C1D0
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Jan 2013 20:44:29 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r05KiSVS015476
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Jan 2013 20:44:28 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r05KiS39015475;
	Sat, 5 Jan 2013 20:44:28 GMT
	(envelope-from nobody)
Message-Id: <201301052044.r05KiS39015475@red.freebsd.org>
Date: Sat, 5 Jan 2013 20:44:28 GMT
From: Paranoid Ted <paranoidted@yopmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: base sendmail fails to build with security/cyrus-sasl2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175052
>Category:       bin
>Synopsis:       sendmail(8): base sendmail fails to build with security/cyrus-sasl2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 05 20:50:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Jan 11 07:53:31 UTC 2013
>Originator:     Paranoid Ted
>Release:        9.1-RELEASE
>Organization:
none
>Environment:
FreeBSD testbox.paranoidted.info 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When trying to rebuild sendmail with SASLv2 according to
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html
the build process stops with the following error:

cc1: warnings being treated as errors
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c: In function 'sm_sasl_init':
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 1 of 'sasl_set_alloc' from incompatible pointer type
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 2 of 'sasl_set_alloc' from incompatible pointer type
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 3 of 'sasl_set_alloc' from incompatible pointer type
*** [sasl.o] Error code 1


in the following step:
#cd /usr/src/usr.sbin/sendmail
# make cleandir && make obj && make && make install


>How-To-Repeat:
Follow steps 1-5 from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html

The error happens on step 5.
>Fix:
There is a proposed fix here: http://forums.freebsd.org/showthread.php?p=203528

"changed line 141 in /usr/src/contrib/sendmail/src/sasl.c to:
sasl_set_alloc((sasl_malloc_t *)sm_sasl_malloc, (sasl_calloc_t *)sm_sasl_calloc,
(sasl_realloc_t *)sm_sasl_realloc, (sasl_free_t *)sm_sasl_free);"

N.B. The error manifests itself on i386 but it may not happen on amd64.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jan 7 03:43:05 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175052 
>Unformatted:

Please provide the output that precedes those errors (i.e., the compile
command itself) so I can replicate the error.  My attempts to reproduce
it have failed so far but it may be I am using different cc options.
