Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 11:59:24 +0200
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        "stable@freebsd.org" <stable@FreeBSD.org>
Subject:   -stdlib=libc++ fails for some ports
Message-ID:  <50B731FC.5090301@gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all.

When compiling databases/db5 with CFLAGS+= -stdlib=libc++ I got this:

libtool: compile:  c++ -c -I. -I./../src -D_THREAD_SAFE -O2 -pipe 
-march=native -fno-strict-aliasing -stdlib=libc++ ../lang/cxx/cxx_db.cpp 
  -fPIC -DPIC -o .libs/cxx_db.o
In file included from ../lang/cxx/cxx_channel.cpp:13:
In file included from ./db_cxx.h:55:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:590:
In file included from /usr/include/c++/v1/initializer_list:47:
/usr/include/c++/v1/cstddef:64:61: error: expected class member or base 
class name
     _LIBCPP_ALWAYS_INLINE _LIBCPP_CONSTEXPR nullptr_t() : _(0) {}
                                                             ^
./db_int.h:445:16: note: expanded from macro '_'
#define _(msg)  msg     /* Replace with localization function. */
                 ^

The problem is actually on libc++ side and has been fixed upstream:

http://llvm.org/viewvc/llvm-project?view=rev&revision=167038

-- 
Sphinx of black quartz, judge my vow.



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