Building db5 with clang 3.3 (was: Are ports supposed to build and run on 10-CURRENT?)

Michael Gmelin freebsd at grem.de
Sun Jul 21 22:32:46 UTC 2013


On Sat, 22 Jun 2013 00:27:53 +0200
Dimitry Andric <dim at 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


More information about the freebsd-ports mailing list