Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2013 00:32:46 +0200
From:      Michael Gmelin <freebsd@grem.de>
To:        Dimitry Andric <dim@FreeBSD.org>, Matthias Andree <mandree@FreeBSD.org>
Cc:        "freebsd-ports@freebsd.org Ports" <freebsd-ports@freebsd.org>
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: <C1CC40FC-4489-4164-96B7-5E1A25DCB37F@FreeBSD.org>
References:  <20130613031535.4087d7f9@bsd64.grem.de> <EF830CD7-00F1-4628-8515-76133BBE85E7@FreeBSD.org> <C1CC40FC-4489-4164-96B7-5E1A25DCB37F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Jun 2013 00:27:53 +0200
Dimitry Andric <dim@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130722003246.5a05635d>