Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YqiXL-0003vw-0B for pgsql-bugs@arkaria.postgresql.org; Fri, 08 May 2015 13:41:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YqiXJ-0007QO-T6 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 May 2015 13:41:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yq9de-0006Jw-Ds for pgsql-bugs@postgresql.org; Thu, 07 May 2015 00:26:06 +0000 Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yq9dX-0006RF-Dw for pgsql-bugs@postgresql.org; Thu, 07 May 2015 00:26:05 +0000 Received: by iepj10 with SMTP id j10so24506120iep.0 for ; Wed, 06 May 2015 17:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=uAtcwXLAcnzNWcDorvZT4R+ClRs8J4MfHrmyQj3YKhY=; b=RF9lRBtZBV9LtWtESSm81uA7wVbdW7DQptD+nYrjhfr97KoZYB7icOT/+RIBB80Hj2 KFwki+/ToWLDc9o3+yiNjZqJPxLIMzOjwqLZ0RnRTgt/r+QYtQ9LnUcuDbFpRtG0wpqD Gv7ULfO819DfsKGdTUbwoHhPNlyyBLYxhxbL3slQGKANhrwuJmKRRyJWXVS9jWNDokt6 3L1efX/ywck6B0RZ0NuHmBcR53YRe+yNVPDOcpwR6NbaUfZs9lqN2Lesvbp3CUmVGnCP tFF8LG/dax2yF+F4O8OMomhVB6BaAt89qjsdrG1h64k4aDh2SEAPjmnoPF0xiVZhuoTV ukVg== X-Received: by 10.50.72.8 with SMTP id z8mr1381441igu.36.1430958358363; Wed, 06 May 2015 17:25:58 -0700 (PDT) Received: from localhost (pool-98-108-240-213.snloca.dsl-w.verizon.net. [98.108.240.213]) by mx.google.com with ESMTPSA id j4sm1911695igm.21.2015.05.06.17.25.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 17:25:57 -0700 (PDT) Date: Wed, 6 May 2015 17:25:56 -0700 From: Alex Dunn To: Heikki Linnakangas Cc: pgsql-bugs@postgresql.org Subject: Re: psqlodbc: HEAD fails to build with recent clang Message-ID: <20150507002556.GU4686@Hell> References: <20150506040733.GR4686@Hell> <554AA2FD.4090705@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <554AA2FD.4090705@iki.fi> X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=get&search=0xFCEC4680ECF924D9 User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org That fixes it, at least on my system. Thanks! On Thu, May 07, 2015 at 02:25:49AM +0300, Heikki Linnakangas wrote: > On 05/06/2015 07:07 AM, Alex Dunn wrote: > >Beginning (I think) in Mavericks, Clang has begun taking functions and > >defining them as macros; they then conflict with declarations via > >headers. I think this is what's happening with `strlcat` in the most > >recent psqlodbc, since it builds fine with GCC. > > > >Here are the build logs with system info (errors start at L15 of 03.make): > >https://gist.github.com/dunn/f6ed7ac29a23aa06ba65#file-03-make-L15 > > > >Clang is: Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) > > Hmm, I think this is because there's a typo in our misc.h header file (it > was checking HAVE_STRLCPY instead of HAVE_STRLCAT), and because of the typo > it always defines a prototype for strlcat(), even when the system provides > that function. And that prototype then conflicts with the one from the > system headers. > > I've pushed a fix to that, I hope it fixed the build for you. > > - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs