Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 23:09:08 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        mexas@bristol.ac.uk
Cc:        kpaasial@gmail.com, roberthuff@rcn.com, freebsd-stable@freebsd.org, beat.siegenthaler@beatsnet.com, freebsd-current@freebsd.org
Subject:   Re: troubles with buildworld/sendmail/sasl/clang
Message-ID:  <7DFCA510-5230-4EB6-8199-199DE7F8DE67@FreeBSD.org>
In-Reply-To: <201303211416.r2LEG8cG041216@mech-cluster241.men.bris.ac.uk>
References:  <201303211416.r2LEG8cG041216@mech-cluster241.men.bris.ac.uk>

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

--Apple-Mail=_EA33AD19-AED4-4FCC-A396-907B0E557429
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On Mar 21, 2013, at 15:16, Anton Shterenlikht <mexas@bristol.ac.uk> =
wrote:
>       Kimmo Paasiala writes:
...
>       >  > =
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.c:1864:8:
>       >  > error: incompatible pointer types passing 'void ()' to =
parameter of type
>       >  > 'void (*)(char *, bool, MAILER *, struct mailer_con_info *, =
ENVELOPE *)'
>       >  > [-Werror,-Wincompatible-pointer-types]
>       >  >                                    getsasldata, NULL, =
XS_AUTH);
>       >  >                                    ^~~~~~~~~~~
...
> # cat /etc/make.conf
> SENDMAIL_CFLAGS+=3D   -I/usr/local/include -DSASL=3D2
> SENDMAIL_LDFLAGS+=3D  -L/usr/local/lib
> SENDMAIL_LDADD+=3D    -lsasl2

Use the port, or the attached patch, to disable usage of stdbool.h.

--Apple-Mail=_EA33AD19-AED4-4FCC-A396-907B0E557429
Content-Disposition: attachment;
	filename=sendmail-disable-stdbool-1.diff
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="sendmail-disable-stdbool-1.diff"
Content-Transfer-Encoding: 7bit

Index: contrib/sendmail/include/sm/gen.h
===================================================================
--- contrib/sendmail/include/sm/gen.h	(revision 248230)
+++ contrib/sendmail/include/sm/gen.h	(working copy)
@@ -51,7 +51,7 @@
 **  Define bool, true, false (from the C99 standard)
 */
 
-# if SM_CONF_STDBOOL_H
+# if SM_CONF_STDBOOL_H && 0
 #  include <stdbool.h>
 # else /* SM_CONF_STDBOOL_H */
 #  ifndef __cplusplus

--Apple-Mail=_EA33AD19-AED4-4FCC-A396-907B0E557429--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DFCA510-5230-4EB6-8199-199DE7F8DE67>