[Gluster-devel] Glusterfs 3.0.0pre1 on FreeBSD 7.2 amd64
Christoph Berkemeier
christop at physik.tu-berlin.de
Sat Nov 21 21:06:53 UTC 2009
Hello,
i was able to build a glusterfs server on a FreeBSD 7.2-RELEASE-p3
amd64 machine with following procedure:
SHELL# export LDFLAGS="-L/usr/local/lib -liconv"
SHELL# export CFLAGS="-O0 -g -DDEBUG -I/usr/local/include/"
SHELL# ./configure -disable-fuse-client
SHELL# make install clean
But could you please make the configure script apply following patches,
when started on freebsd?
MfG
Christoph
###glusterfsd/src/glusterfsd.c
--- glusterfs-3.0.0pre1.orig/glusterfsd/src/glusterfsd.c
2009-11-02 07:24:44.000000000 +0100
+++ glusterfs-3.0.0pre1.freebsd/glusterfsd/src/glusterfsd.c
2009-11-21 21:20:36.000000000 +0100
@@ -1197,9 +1197,9 @@
fprintf (stderr, "ignoring %s\n",
strerror (errno));
}
-#ifdef DEBUG
+/*#ifdef DEBUG
mtrace ();
-#endif
+#endif*/
signal (SIGUSR1, (sighandler_t) gf_proc_dump_info);
signal (SIGSEGV, gf_print_trace);
signal (SIGABRT, gf_print_trace);
###xlators/cluster/afr/src/afr-transaction.c
--- glusterfs-3.0.0pre1.orig/xlators/cluster/afr/src/afr-transaction.c
2009-11-02 07:24:44.000000000 +0100
+++
glusterfs-3.0.0pre1.freebsd/xlators/cluster/afr/src/afr-transaction.c
2009-11-21 21:15:15.000000000 +0100
@@ -24,7 +24,7 @@
#include "afr-transaction.h"
#include <signal.h>
-#include <alloca.h>
+#include <stdlib.h>
static void
###libglusterfs/src/xlator.h
--- glusterfs-3.0.0pre1.orig/libglusterfs/src/xlator.h 2009-11-02
07:24:44.000000000 +0100
+++ glusterfs-3.0.0pre1.freebsd/libglusterfs/src/xlator.h
2009-11-21 21:11:45.000000000 +0100
@@ -19,6 +19,7 @@
#ifndef _XLATOR_H
#define _XLATOR_H
+#define FUSE_USE_VERSION 26
#ifndef _CONFIG_H
#define _CONFIG_H
###libglusterfs/src/statedump.c
--- glusterfs-3.0.0pre1.orig/libglusterfs/src/statedump.c
2009-11-02 07:24:44.000000000 +0100
+++ glusterfs-3.0.0pre1.freebsd/libglusterfs/src/statedump.c
2009-11-21 21:13:11.000000000 +0100
@@ -18,7 +18,7 @@
*/
#include <stdarg.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "glusterfs.h"
#include "logging.h"
#include "iobuf.h"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20091121/2ba4cff0/attachment-0003.sig>
More information about the Gluster-devel
mailing list