From owner-freebsd-stable@FreeBSD.ORG Mon Mar 18 16:20:20 2013 Return-Path: Delivered-To: freebsd-stable@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 388367E0; Mon, 18 Mar 2013 16:20:20 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 7AD2F78C; Mon, 18 Mar 2013 16:20:19 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id x8so5058567wey.20 for ; Mon, 18 Mar 2013 09:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=hEl4yd27G6vIt8eviNUy4k0FUq9IvoQM7JaJToCkGGU=; b=nFSx+nTcA++8N6xrckd3WGdCwNtrO1mkTYZwYwMVPPyX/N/reNWbQZBA7liL5KfToc yGJG2auOUqTcNhzYSnrUkHBW8+lXRDvrDmNRuyJ2XJP9/sqEsM/DUJ4pxzO+MwaXeSwY TRReL5lgBjDIMIqVnatiy3OWBKGqpNVnEhf3BTlWBBpL/y/cevuT3wTpwN25fB32MXRs qZ8NEx/+O5kRmt4wRNxui2WWBpApT3tkKZBFb9GBma3tTiHazH/l7qe+R2rqKiqefOpn 27iOcT8GBlb6vLpHF2i5X83VKH6y8fVxf1mxh13YtLNyhLWUknXB/u/iJdI6fW9wdRDg n23Q== MIME-Version: 1.0 X-Received: by 10.180.104.225 with SMTP id gh1mr6074290wib.27.1363623618703; Mon, 18 Mar 2013 09:20:18 -0700 (PDT) Received: by 10.216.9.68 with HTTP; Mon, 18 Mar 2013 09:20:18 -0700 (PDT) In-Reply-To: <5146F49B.5080609@beatsnet.com> References: <5146F49B.5080609@beatsnet.com> Date: Mon, 18 Mar 2013 18:20:18 +0200 Message-ID: Subject: Re: troubles with buildworld/sendmail/sasl/clang From: Kimmo Paasiala To: Beat Siegenthaler Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD current , FreeBSD-STABLE Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2013 16:20:20 -0000 On Mon, Mar 18, 2013 at 1:03 PM, Beat Siegenthaler wrote: > Hi all, > > since some days i try to "make buildworld", but have some errors in > sendmail. > The make conf is not changed since years (in this case) . Adding > NO_WERROR= in src.conf helps, but i think it is not the optimal solution? > > # SASL (cyrus-sasl v2) sendmail build flags... > SENDMAIL_CFLAGS+=-I/usr/local/include -DSASL=2 > SENDMAIL_LDFLAGS+=-L/usr/local/lib > SENDMAIL_LDADD+=-lsasl2 > SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL > > SENDMAIL_MC = /etc/mail/xyz.mc > WITH_SSL_AND_PLAINTEXT=yes # for imaps and cclient > > ==============src.conf=================== > > CC=clang > CXX=clang++ > CPP=clang-cpp > # This setting to build world without -Werror: > # NO_WERROR= > # This setting to build kernel without -Werror: > # WERROR= > > =================buildworld=============== > > /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); > ^~~~~~~~~~~ > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:2519:67: note: > passing argument to parameter here > extern int reply __P((MAILER *, MCI *, ENVELOPE *, time_t, void > (*)__P((char *, bool, MAILER *, MCI *, ENVELOPE *)), char **, int)); > ^ > /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:129:21: note: expanded from > macro '__P' > #define __P(protos) protos /* full-blown ANSI C */ > ^ > 3 errors generated. > *** [usersmtp.o] Error code 1 > 1 error > *** [all] Error code 2 > 1 error > *** [usr.sbin.all__D] Error code 2 > 1 error > *** [everything] Error code 2 > 1 error > *** [buildworld] Error code 2 > 1 error > > regards > beat I can not help with the error but I really have to make this question: Does FreeBSD really have to support pre-ANSI C compilers in 2013? -Kimmo