[Gluster-devel] Errors compiling 2.0.1 on OS X

Kevin Constantine Kevin.Constantine at disneyanimation.com
Fri May 22 00:26:13 UTC 2009


Hello-
I was trying to build gluster 2.0.1 on OSX and running into errors:


gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D_GNU_SOURCE 
-DXLATORDIR=\"/usr/local/lib/glusterfs/2.0.1/xlator\" -DSCHEDULERDIR=\"/usr/local/lib/glusterfs/2.0.1/scheduler\" 
-DTRANSPORTDIR=\"/usr/local/lib/glusterfs/2.0.1/transport\" -DGF_DARWIN_HOST_OS 
-DLIBDIR=\"/usr/local/lib/glusterfs/2.0.1/auth\" -fPIC -Wall -g -shared -nostartfiles -I../../argp-standalone 
-D__DARWIN_64_BIT_INO_T -bundle -undefined suppress -flat_namespace -g -O2 -MT libglusterfs_la-glusterfs_fstab.lo -MD -MP -MF 
.deps/libglusterfs_la-glusterfs_fstab.Tpo -c glusterfs_fstab.c  -fno-common -DPIC -o .libs/libglusterfs_la-glusterfs_fstab.o
glusterfs_fstab.c:23:23: error: stdio_ext.h: No such file or directory
In file included from glusterfs_fstab.c:26:
glusterfs_fstab.h:23:22: error: features.h: No such file or directory
glusterfs_fstab.c: In function 'glusterfs_fstab_init':
glusterfs_fstab.c:39: warning: implicit declaration of function 'mempcpy'
glusterfs_fstab.c:39: warning: incompatible implicit declaration of built-in function 'mempcpy'
glusterfs_fstab.c:48: warning: implicit declaration of function '__fsetlocking'
glusterfs_fstab.c:48: error: 'FSETLOCKING_BYCALLER' undeclared (first use in this function)
glusterfs_fstab.c:48: error: (Each undeclared identifier is reported only once
glusterfs_fstab.c:48: error: for each function it appears in.)
glusterfs_fstab.c: In function '__glusterfs_fstab_getent':
glusterfs_fstab.c:136: warning: implicit declaration of function 'fgets_unlocked'
glusterfs_fstab.c:136: warning: comparison between pointer and integer
glusterfs_fstab.c:149: warning: comparison between pointer and integer
make[3]: *** [libglusterfs_la-glusterfs_fstab.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Darwin clotho 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386

I pulled down the git tree and was able to compile that successfully.  I just wanted to report this in case anyone else ran 
into a similar issue.

Thanks

-kevin





More information about the Gluster-devel mailing list