From owner-freebsd-ports@FreeBSD.ORG Sun Jul 21 22:32:46 2013 Return-Path: Delivered-To: freebsd-ports@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 1298B4F0 for ; Sun, 21 Jul 2013 22:32:46 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 5A2C27F2 for ; Sun, 21 Jul 2013 22:32:44 +0000 (UTC) Received: (qmail 54583 invoked by uid 89); 21 Jul 2013 22:32:42 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@93.215.164.105) by mail.grem.de with ESMTPA; 21 Jul 2013 22:32:42 -0000 Date: Mon, 22 Jul 2013 00:32:46 +0200 From: Michael Gmelin To: Dimitry Andric , Matthias Andree Subject: Re: Building db5 with clang 3.3 (was: Are ports supposed to build and run on 10-CURRENT?) Message-ID: <20130722003246.5a05635d@bsd64.grem.de> In-Reply-To: References: <20130613031535.4087d7f9@bsd64.grem.de> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.18; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-ports@freebsd.org Ports" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 22:32:46 -0000 On Sat, 22 Jun 2013 00:27:53 +0200 Dimitry Andric wrote: > > No, db5 does not build because it is redefining a C++11 standard > > library identifier, atomic_init(). It should probably prefix all > > its internal defines with 'db_', to avoid collisions. The > > db-5.3.21/src/dbinc/atomic.h file is already patched by our port to > > avoid one such collision, but it is probably necessary to do this > > again for any other identifiers that are used either by C++, or are > > compiler builtins. > > Attached is a diff to fix the db5 port, so it correctly builds with > CXXFLAGS?=-std=c++11 -stdlib=libc++. Matthias, could you please have > a look at it? > > After db5 (compiled with libc++) was installed, Hi Matthias, I just tested building databases/db5 on 9.2-BETA1 (which ships with clang 3.3) using c++11 and libc++ and ran into the same problem. Dimitry's patch applied cleanly and resolved the issue. Do you think you could commit his patch to db5? Cheers, Michael -- Michael Gmelin