Greetings, I have successfully build glusterfs-2.0.6 on: Solaris 10 10/09 s10x_u8wos_08a X86 but i can't compile glusterfs-2.0.7/8 because 7 and 8 version of gluster contain linux specifix code (some different syntax of "fileno" function) i.e. when make ************************************************************************** glusterfsd.c:901: error: `LOCK_UN' undeclared (first use in this function) glusterfsd.c:901: error: (Each undeclared identifier is reported only once glusterfsd.c:901: error: for each function it appears in.) .... glusterfsd.c:1231: error: `LOCK_EX' undeclared (first use in this function) glusterfsd.c:1231: error: `LOCK_NB' undeclared (first use in this function) glusterfsd.c:1251: error: `LOCK_UN' undeclared (first use in this function) ************************************************************************** anybody can fix this ? a can provide solaris shell or just test by hand... ---------------- -bash-3.00# gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) ----------------- -bash-3.00# flex --version flex version 2.5.4 -bash-3.00# which flex /opt/csw/bin/flex ----------------- -bash-3.00# which bison /opt/csw/bin/bison -bash-3.00# bison -V bison (GNU Bison) 2.4.1 ----------------- CONFIGURE: LDFLAGS="-L/opt/csw/lib" ./configure --disable-fuse-client --disable-ibverbs --prefix=/opt/glusterfs GlusterFS configure summary =========================== FUSE client : no Infiniband verbs : no epoll IO multiplex : no Berkeley-DB : no libglusterfsclient : yes argp-standalone : yes MAKE: gmake CFLAGS="-g -O0" LDFLAGS="-L/opt/csw/lib" I have this errors: ......... Making all in src gmake[3]: Entering directory `/root/glusterfs-2.0.8/glusterfsd/src' if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -fPIC -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_SOLARIS_HOST_OS -I../../libglusterfs/src -DDATADIR=\"/opt/glusterfs/var\" -DCONFDIR=\"/opt/glusterfs/etc/glusterfs\" -I../../argp-standalone -D_REENTRANT -g -O0 -MT glusterfsd.o -MD -MP -MF ".deps/glusterfsd.Tpo" -c -o glusterfsd.o glusterfsd.c; \ then mv -f ".deps/glusterfsd.Tpo" ".deps/glusterfsd.Po"; else rm -f ".deps/glusterfsd.Tpo"; exit 1; fi glusterfsd.c: In function `gf_daemon': glusterfsd.c:198: warning: implicit declaration of function `daemon' glusterfsd.c: In function `_gf_dump_details': glusterfsd.c:239: warning: int format, pid_t arg (arg 3) glusterfsd.c: In function `cleanup_and_exit': glusterfsd.c:901: warning: implicit declaration of function `flock' glusterfsd.c:901: error: `LOCK_UN' undeclared (first use in this function) glusterfsd.c:901: error: (Each undeclared identifier is reported only once glusterfsd.c:901: error: for each function it appears in.) glusterfsd.c: In function `zr_build_process_uuid': glusterfsd.c:954: warning: int format, pid_t arg (arg 5) glusterfsd.c: In function `main': glusterfsd.c:1112: warning: int format, pid_t arg (arg 5) glusterfsd.c:1231: error: `LOCK_EX' undeclared (first use in this function) glusterfsd.c:1231: error: `LOCK_NB' undeclared (first use in this function) glusterfsd.c:1251: error: `LOCK_UN' undeclared (first use in this function) glusterfsd.c:1263: warning: int format, pid_t arg (arg 3) glusterfsd.c:1278: warning: int format, pid_t arg (arg 2) gmake[3]: *** [glusterfsd.o] Error 1 gmake[3]: Leaving directory `/root/glusterfs-2.0.8/glusterfsd/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/root/glusterfs-2.0.8/glusterfsd' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/root/glusterfs-2.0.8' gmake: *** [all] Error 2 -bash-3.00#