Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2013 17:22:54 +0900
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        Doug Hardie <bc979@lafn.org>
Cc:        "freebsd-stable@freebsd.org List" <freebsd-stable@freebsd.org>
Subject:   Re: FreeBSD-Update + Sendmail
Message-ID:  <yge61v79xcx.wl%ume@mahoroba.org>
In-Reply-To: <EC151460-ECFA-4027-9A3D-422E5D986743@lafn.org>
References:  <5200FE0E.8506.5CB69E@lausts.acm.org> <alpine.BSF.2.00.1308061113030.28510@io-tx.com> <EC151460-ECFA-4027-9A3D-422E5D986743@lafn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Tue, 13 Aug 2013 18:50:20 -0700
>>>>> Doug Hardie <bc979@lafn.org> said:

bc979> FreeBSD zool.lafn.org 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #4: Wed Feb 20 22:34:04 PST 2013     doug@zool.lafn.org:/usr/obj/usr/src/sys/LAFN  i386


bc979> make of sendmail yields:

bc979> cc -O2 -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS -D_FFR_TLS_1 -I/usr/local/include/sasl -DSASL -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c
bc979> cc1: warnings being treated as errors
bc979> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c: In function 'sm_sasl_init':
bc979> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 1 of 'sasl_set_alloc' from incompatible pointer type
bc979> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 2 of 'sasl_set_alloc' from incompatible pointer type
bc979> /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.c:141: warning: passing argument 3 of 'sasl_set_alloc' from incompatible pointer type
bc979> *** [sasl.o] Error code 1


bc979> /etc/make.conf:

bc979> SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
bc979> SENDMAIL_LDFLAGS=-L/usr/local/lib
bc979> SENDMAIL_LDADD=-lsasl2
bc979> WITHOUT_X11=yes

bc979> # added by use.perl 2013-05-22 13:05:04
bc979> PERL_VERSION=5.12.4


bc979> I can't figure out where cc1 has been configured to treat warnings as errors.  This has not happened before to me.

In cyrus-sasl 2.1.26, the type of callback functions was changed from
"unsigned long" to "size_t", after 9.1-RELEASE was released.
It seems you are using 9.1-RELEASE.  You need to apply the following
patch:

http://svnweb.freebsd.org/base/stable/9/contrib/sendmail/src/sasl.c?r1=225736&r2=243747&view=patch

Sincerely,

--
Hajimu UMEMOTO
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.mahoroba.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge61v79xcx.wl%ume>