This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg install bison flex leveldb protobuf gmake ruby bzr mercurial valgrind leveldb go | |
export CC=clang | |
export CGO_CFLAGS="-I/usr/local/include" | |
export CGO_LDFLAGS="-L/usr/local/lib" | |
git clone https://github.com/influxdb/influxdb.git | |
sed -i -e 's,^SHELL.*,SHELL = /usr/local/bin/bash,' Makefile.in | |
./configure --with-flex=/usr/local/bin/flex --with-bison=/usr/local/bin/bison | |
gmake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- main.c.orig | |
+++ main.c | |
@@ -833,7 +833,12 @@ main(int argc, char **argv, char **envp) | |
mySignal(SIGPIPE, SigPipe); | |
#endif | |
+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2 | |
+ orig_GC_warn_proc = GC_get_warn_proc(); | |
+ GC_set_warn_proc(wrap_GC_warn_proc); | |
+#else |