[Gluster-devel] 1.3.8 FreeBSD Compilation issues

Jordan Mendler jmendler at ucla.edu
Thu May 8 23:08:03 UTC 2008


Hi all,

I am trying to compile 1.3.8 on FreeBSD 7.0 and am not having luck. I have a
pretty minimal BSD install, but installed Bison for glusterfs. I have used
glusterfs before on linux, but would like to use it on FreeBSD so I can
build a storage system atop ZFS for the UCLA Human Genetics department.


First off, in addition to fusefs-kmod and bison are there any other
dependencies I need to install to get gluster working?

Now the issues:
1) alloca.h cannot be found. Some research indicates that a fix is doing
"echo "#include <stdlib.h>" > /usr/include/alloca.h" which seems to fix it.
Apparently this library is needed in linux but not explicitely needed for
FreeBSD. Creating the file works for now, but seems too hackish.


2)  I cannot figure this one out. I am not sure if it is a simple library
issue or what. When doing the make it breaks as follow:
....
....
Making all in storage
Making all in posix
Making all in src
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../..     -fPIC
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_BSD_HOST_OS -Wall
-I../../../../libglusterfs/src -shared -nostartfiles   -g -O2 -MT posix.o
-MD -MP -MF ".deps/posix.Tpo" -c -o posix.o posix.c;  then mv -f
".deps/posix.Tpo" ".deps/posix.Po"; else rm -f ".deps/posix.Tpo"; exit 1; fi
posix.c: In function 'posix_readdir':
posix.c:2179: error: 'struct dirent' has no member named 'd_off'
*** Error code 1

Stop in /tmp/glusterfs-1.3.8/xlators/storage/posix/src.
*** Error code 1

Stop in /tmp/glusterfs-1.3.8/xlators/storage/posix.
*** Error code 1

Stop in /tmp/glusterfs-1.3.8/xlators/storage.
*** Error code 1

Stop in /tmp/glusterfs-1.3.8/xlators.
*** Error code 1

Stop in /tmp/glusterfs-1.3.8.
*** Error code 1

Stop in /tmp/glusterfs-1.3.8.

Does anyone know what this means and how I can fix it?


Thanks so much,
Jordan Mendler



More information about the Gluster-devel mailing list