From 264183b1a497b32fc701b47b80051c9d1c003a0b Mon Sep 17 00:00:00 2001 From: Abhishek Shrivastava Date: Tue, 21 Oct 2014 17:45:01 -0700 Subject: [PATCH 1/3] Bugfix for the automake (global options already processed) error The bug is due to Scribe calling AM_INIT_AUTOMAKE in both the top of configure.ac and inside FB_INITIALIZE defined in acinclude.m4. The solution is to comment the AM_INIT_AUTOMAKE. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b13a56b3..7bcaa755 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ AC_PREREQ(2.52) AC_INIT([scribe], [1.5.0]) AC_CONFIG_MACRO_DIR([aclocal]) -AM_INIT_AUTOMAKE([foreign -Wall]) +# AM_INIT_AUTOMAKE([foreign -Wall]) # To install locally FB_INITIALIZE([localinstall]) AC_PREFIX_DEFAULT([/usr/local]) From 5cda37c1a72f5c6cb539e4c1f841b03e04afca9f Mon Sep 17 00:00:00 2001 From: Abhishek Shrivastava Date: Tue, 6 Jan 2015 20:06:20 -0800 Subject: [PATCH 2/3] Adding boost libraries to external lib section to make sure it lies in the end of the g++ compile command --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index 35f9f090..81110278 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -54,6 +54,7 @@ endif # Set libraries external to this component. EXTERNAL_LIBS = -L$(thrift_home)/lib -L$(fb303_home)/lib -L$(hadoop_home)/lib -lfb303 -lthrift -lthriftnb EXTERNAL_LIBS += -levent -lpthread +EXTERNAL_LIBS += $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) if USE_SCRIBE_HDFS EXTERNAL_LIBS += -lhdfs -ljvm endif From 612833a3546e9a4bcc0a93d04bcbbe5877de3b2d Mon Sep 17 00:00:00 2001 From: Abhishek Shrivastava Date: Tue, 6 Jan 2015 20:07:11 -0800 Subject: [PATCH 3/3] Forcing standard boost library names to ward off cross-platform issues --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index f11ed2d7..062b24a4 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,4 +2,4 @@ # To be safe include -I flag autoreconf --force --verbose --install -./configure --config-cache $* +./configure --with-boost-system=boost_system --with-boost-filesystem=boost_filesystem --config-cache $*