From owner-freebsd-ports@FreeBSD.ORG Wed Jul 24 21:39:29 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mandree.no-ip.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EC6033BB; Wed, 24 Jul 2013 21:39:28 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id 44E8523D0E2; Wed, 24 Jul 2013 23:39:27 +0200 (CEST) Message-ID: <51F0498F.70607@FreeBSD.org> Date: Wed, 24 Jul 2013 23:39:27 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Michael Gmelin Subject: Re: Building db5 with clang 3.3 References: <20130613031535.4087d7f9@bsd64.grem.de> <20130722003246.5a05635d@bsd64.grem.de> <51EEDDFE.5070009@FreeBSD.org> <20130723233908.31c405c8@bsd64.grem.de> In-Reply-To: <20130723233908.31c405c8@bsd64.grem.de> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Dimitry Andric , "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: Wed, 24 Jul 2013 21:39:29 -0000 Am 23.07.2013 23:39, schrieb Michael Gmelin: > On Tue, 23 Jul 2013 21:48:14 +0200 > Matthias Andree wrote: > >> Am 22.07.2013 00:32, schrieb Michael Gmelin: >> >>> 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? >> >> Generally speaking yes, >> but what do I need to do to reproduce the problem on >> 9.1-RELEASE-mumble? >> > > That's a good question. Since the problem is caused by db5's > redefinition of atomic_init, which is used in current versions of > libc++ you'll need clang++ 3.3 and a matching libc++ > (/usr/ports/devel/libc++ uses SVN Rev 185324 right now). > > Unfortunately libc++ won't build on 9.1-RELEASE by default, since it > requires at least OS version 901502 (which means 9.1-STABLE as of Nov > 28 2012 or later) due to the lack of aligned_alloc in earlier versions > of the OS. Fortunately a patch for the sake of demonstrating the > problem is not too hard. Regarding db5 (and db6, too): Thanks for the detailed instructions. I have reproduced the problem and confirmed that the fix works, and have forward-ported the fix to db6 (SVN r323621). If older db4* versions fail to compile, that's finally some incentive to rid ourselves of them, so I have not even bothered to check. :-) The committed version only patches src/dbinc/atomic.h, the other references are dealt with by REINPLACE_CMD. Regarding libc++ and 9.1-RELEASE, should not the libc++ port be fixed so that it works on 9.1-RELEASE, too? Maybe 8.X is out of reach, but aligned_alloc does not seem too intrusive, or is it? Best regards, Matthias