Created
September 6, 2016 18:52
-
-
Save kylejohnson/8fd7c8c6e84b52121f37628354ed895b to your computer and use it in GitHub Desktop.
compiling glusterfs on freebsd
This file contains 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
[kyle@colossus2 ~]$ git clone https://github.com/gluster/glusterfs.git | |
[kyle@colossus2 ~]$ cd glusterfs | |
[kyle@colossus2 ~/glusterfs]$ vim glusterfsd/src/Makefile.am | |
... | |
[kyle@colossus2 ~/glusterfs]$ vim glusterfsd/src/glusterfsd.c | |
... | |
[kyle@colossus2 ~/glusterfs]$ git diff | |
diff --git a/glusterfsd/src/Makefile.am b/glusterfsd/src/Makefile.am | |
index 0f83622..20eabd1 100644 | |
--- a/glusterfsd/src/Makefile.am | |
+++ b/glusterfsd/src/Makefile.am | |
@@ -3,7 +3,7 @@ sbin_PROGRAMS = glusterfsd | |
glusterfsd_SOURCES = glusterfsd.c glusterfsd-mgmt.c | |
glusterfsd_LDADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \ | |
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \ | |
- $(top_builddir)/rpc/xdr/src/libgfxdr.la ${GF_LDADD} | |
+ $(top_builddir)/rpc/xdr/src/libgfxdr.la ${GF_LDADD} -largp | |
glusterfsd_LDFLAGS = $(GF_LDFLAGS) | |
noinst_HEADERS = glusterfsd.h glusterfsd-mem-types.h glusterfsd-messages.h | |
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c | |
index 7c07e3d..9f75104 100644 | |
--- a/glusterfsd/src/glusterfsd.c | |
+++ b/glusterfsd/src/glusterfsd.c | |
@@ -32,6 +32,8 @@ | |
#include <errno.h> | |
#include <pwd.h> | |
+#include <argp.h> | |
+ | |
#ifdef GF_LINUX_HOST_OS | |
#include <linux/oom.h> | |
#endif | |
[kyle@colossus2 ~/glusterfs]$ ./autogen.sh | |
... | |
[kyle@colossus2 ~/glusterfs]$ ./configure | |
... | |
[kyle@colossus2 ~/glusterfs]$ make -j 10 | |
... | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment