From owner-freebsd-ports@freebsd.org Fri Sep 11 16:22:35 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BA11A02799 for ; Fri, 11 Sep 2015 16:22:35 +0000 (UTC) (envelope-from list-freebsd-ports@jyborn.se) Received: from mailgate.leissner.se (mailgate.leissner.se [212.3.1.210]) by mx1.freebsd.org (Postfix) with ESMTP id E726F1BFA for ; Fri, 11 Sep 2015 16:22:34 +0000 (UTC) (envelope-from list-freebsd-ports@jyborn.se) Received: from mailgate.leissner.se (localhost [127.0.0.1]) by mailgate.leissner.se (8.15.2/8.15.1) with ESMTP id t8BGMVxU013162 for ; Fri, 11 Sep 2015 18:22:31 +0200 (CEST) (envelope-from list-freebsd-ports@jyborn.se) Received: (from uucp@localhost) by mailgate.leissner.se (8.15.2/8.15.1/Submit) id t8BGMV26013159 for ; Fri, 11 Sep 2015 18:22:31 +0200 (CEST) (envelope-from list-freebsd-ports@jyborn.se) Received: from pol.leissner.se(192.71.29.17), claiming to be "pol-server.leissner.se" via SMTP by mailgate.leissner.se, id smtpdzoO7i0; Fri Sep 11 18:22:25 2015 Received: from localhost (pol-server.leissner.se [local]); by pol-server.leissner.se (OpenSMTPD) with ESMTPA id 6104b5d8; Fri, 11 Sep 2015 18:22:25 +0200 (CEST) Date: Fri, 11 Sep 2015 18:22:25 +0200 From: Peter To: Kurt Jaeger Cc: freebsd-ports@freebsd.org Subject: Re: Anyone got RethinkDB working in FreeBSD? Message-ID: <20150911162225.GU13922@pol-server.leissner.se> References: <20150911091155.GU13922@pol-server.leissner.se> <20150911152118.GK36682@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150911152118.GK36682@home.opsec.eu> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 16:22:35 -0000 On Fri, Sep 11, 2015 at 05:21:18PM +0200, Kurt Jaeger wrote: > Hi! > > > http://www.rethinkdb.com/ > > > > I tried compiling it in FreeBSD 9.3, and managed > > to get past configure and the start of gmake, but > > then got a lot of these: > > Here's a shar file, which overcomes the BREAKPOINT stuff > and quite a bit more, but still needs more patching. So > it's still a work in progress, but feel free to try it. > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203043 > > -- > pi@opsec.eu +49 171 3101372 5 years to go ! Thanks! I tried your file, but didn't get very far unfortunately. I had to do these two changes to your Makefile to get past the configure step: Add CXX=c++48 Comment cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/extra-patch-config.mk And I moved extra-patch-config.mk out of the files directory. The addition of CXX is because otherwise configure finds gcc in base, which is too old to be accepted. The removal of extra-patch-config.mk is because that patch failed, probably because I don't have LDFLAGS anywhere in my generated config.mk. I tried adding LDFLAGS, CXXFLAGS and CFLAGS manually to config.mk, but that didn't help. I get this error after a couple of successful compile lines: test -e ./build/external/v8_3.30.33.16/include && touch ./build/external/v8_3.30.33.16/include || true mkdir -p build/release_system/obj/rdb_protocol/ ./build/release_system/dep/rdb_protocol/ c++48 -O2 -pipe -fstack-protector -fno-strict-aliasing -isystem ./build/external/re2_20140111/include -isystem ./build/external/v8_3.30.33.16/include -I./src -pthread "-DPRODUCT_NAME=\"RethinkDB\"" "-D__STDC_LIMIT_MACROS" "-D__STDC_FORMAT_MACROS" -Wall -Wextra "-DRAPIDJSON_HAS_STDSTRING" "-DRAPIDJSON_PARSE_DEFAULT_FLAGS=kParseFullPrecisionFlag" -Wnon-virtual-dtor -Wno-deprecated-declarations -std=gnu++0x -Wformat=2 -Wswitch-enum -Wno-array-bounds -O3 -DNDEBUG -fno-strict-aliasing -g -DHAS_TERMCAP -I./build/release_system/proto -DRETHINKDB_VERSION=\"2.1.3\" -DRETHINKDB_CODE_VERSION=\"2.1.3\" -isystem ./build/external/gtest_1.6.0/include -c -o build/release_system/obj/rdb_protocol/erase_range.o src/rdb_protocol/erase_range.cc \ -MP -MQ build/release_system/obj/rdb_protocol/erase_range.o -MD -MF ./build/release_system/dep/rdb_protocol/erase_range.d In file included from ./src/utils.hpp:11:0, from ./src/containers/scoped.hpp:10, from ./src/containers/counted.hpp:10, from ./src/serializer/types.hpp:11, from ./src/buffer_cache/types.hpp:9, from ./src/rdb_protocol/erase_range.hpp:10, from src/rdb_protocol/erase_range.cc:2: /src/debug.hpp: In function 'typename std::enable_if::value>::type debug_print(printf_buffer_t*, T)': ./src/debug.hpp:32:22: error: 'to_string' is not a member of 'std' debug_print(buf, std::to_string(x)); ^ Peter