[Gluster-users] Compile error with latest git on Centos 5.3

SIPVoIP sipvoip at gmail.com
Mon Jul 27 02:30:51 UTC 2009


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.1.0git/xlator\"
-DSCHEDULERDIR=\"/usr/local/lib/glusterfs/2.1.0git/scheduler\"
-DTRANSPORTDIR=\"/usr/local/lib/glusterfs/2.1.0git/transport\"
-DGF_LINUX_HOST_OS -DLIBDIR=\"/usr/local/lib/glusterfs/2.1.0git/auth\" -fPIC
-Wall -g -shared -nostartfiles -g -O2 -MT libglusterfs_la-mem-pool.lo -MD
-MP -MF .deps/libglusterfs_la-mem-pool.Tpo -c mem-pool.c  -fPIC -DPIC -o
.libs/libglusterfs_la-mem-pool.o
 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.1.0git/xlator\"
-DSCHEDULERDIR=\"/usr/local/lib/glusterfs/2.1.0git/scheduler\"
-DTRANSPORTDIR=\"/usr/local/lib/glusterfs/2.1.0git/transport\"
-DGF_LINUX_HOST_OS -DLIBDIR=\"/usr/local/lib/glusterfs/2.1.0git/auth\" -fPIC
-Wall -g -shared -nostartfiles -g -O2 -MT libglusterfs_la-mem-pool.lo -MD
-MP -MF .deps/libglusterfs_la-mem-pool.Tpo -c mem-pool.c -o
libglusterfs_la-mem-pool.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile 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.1.0git/xlator\"
-DSCHEDULERDIR=\"/usr/local/lib/glusterfs/2.1.0git/scheduler\"
-DTRANSPORTDIR=\"/usr/local/lib/glusterfs/2.1.0git/transport\"
-DGF_LINUX_HOST_OS -DLIBDIR=\"/usr/local/lib/glusterfs/2.1.0git/auth\"
-fPIC  -Wall -g -shared -nostartfiles   -g -O2 -MT
libglusterfs_la-gf-dirent.lo -MD -MP -MF
".deps/libglusterfs_la-gf-dirent.Tpo" -c -o libglusterfs_la-gf-dirent.lo
`test -f 'gf-dirent.c' || echo './'`gf-dirent.c; \
    then mv -f ".deps/libglusterfs_la-gf-dirent.Tpo"
".deps/libglusterfs_la-gf-dirent.Plo"; else rm -f
".deps/libglusterfs_la-gf-dirent.Tpo"; exit 1; fi
 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.1.0git/xlator\"
-DSCHEDULERDIR=\"/usr/local/lib/glusterfs/2.1.0git/scheduler\"
-DTRANSPORTDIR=\"/usr/local/lib/glusterfs/2.1.0git/transport\"
-DGF_LINUX_HOST_OS -DLIBDIR=\"/usr/local/lib/glusterfs/2.1.0git/auth\" -fPIC
-Wall -g -shared -nostartfiles -g -O2 -MT libglusterfs_la-gf-dirent.lo -MD
-MP -MF .deps/libglusterfs_la-gf-dirent.Tpo -c gf-dirent.c  -fPIC -DPIC -o
.libs/libglusterfs_la-gf-dirent.o
In file included from gf-dirent.c:33:
protocol.h: In function 'gf_flags_from_flags':
protocol.h:284: error: 'O_CLOEXEC' undeclared (first use in this function)
protocol.h:284: error: (Each undeclared identifier is reported only once
protocol.h:284: error: for each function it appears in.)
protocol.h: In function 'gf_flags_to_flags':
protocol.h:311: error: 'O_CLOEXEC' undeclared (first use in this function)
make[3]: *** [libglusterfs_la-gf-dirent.lo] Error 1
make[3]: Leaving directory `/usr/local/src/glusterfs/libglusterfs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/glusterfs/libglusterfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/glusterfs'
make: *** [all] Error 2


More information about the Gluster-users mailing list