<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
<FONT COLOR="#1a1a1a">Hi All</FONT><BR>
<FONT COLOR="#1a1a1a"> I want to compile the glusterfs on opensolaris. I do it following this</FONT><BR>
<FONT COLOR="#1a1a1a">link:</FONT><BR>
<FONT COLOR="#1a1a1a"><A HREF="http://www.gluster.org/docs/index.php/GlusterFS_on_Solaris">http://www.gluster.org/docs/index.php/GlusterFS_on_Solaris</A></FONT><BR>
<BR>
<FONT COLOR="#1a1a1a">but I got this error:</FONT><BR>
<BR>
<FONT COLOR="#0000ff"> if gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -fPIC</FONT><BR>
<FONT COLOR="#0000ff"> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_SOLARIS_HOST_OS</FONT><BR>
<FONT COLOR="#0000ff"> -I../../../../libglusterfs/src -shared -nostartfiles -g -O2 -MT</FONT><BR>
<FONT COLOR="#0000ff"> afr_self_heal.o -MD -MP -MF ".deps/afr_self_heal.Tpo" -c -o</FONT><BR>
<FONT COLOR="#0000ff"> afr_self_heal.o afr_self_heal.c; \</FONT><BR>
<FONT COLOR="#0000ff"> then mv -f ".deps/afr_self_heal.Tpo" ".deps/afr_self_heal.Po";</FONT><BR>
<FONT COLOR="#0000ff"> else rm -f ".deps/afr_self_heal.Tpo"; exit 1; fi</FONT><BR>
<FONT COLOR="#0000ff"> In file included</FONT><BR>
<FONT COLOR="#0000ff"> from ../../../../libglusterfs/src/glusterfs.h:38,</FONT><BR>
<FONT COLOR="#0000ff"> from afr_self_heal.c:27:</FONT><BR>
<FONT COLOR="#0000ff"> /usr/include/dirent.h:104: error: syntax error before '*' token</FONT><BR>
<FONT COLOR="#0000ff"> *** Error code 1</FONT><BR>
<FONT COLOR="#0000ff"> make: Fatal error: Command failed for target `afr_self_heal.o'</FONT><BR>
<FONT COLOR="#0000ff"> Current working</FONT><BR>
<FONT COLOR="#0000ff"> directory /root/glusterfs/glusterfs-1.3.12/xlators/cluster/afr/src</FONT><BR>
<FONT COLOR="#0000ff"> *** Error code 1</FONT><BR>
<BR>
<B>ENV:</B><BR>
OS: SunOS 5.11 snv_86 i86pc i386 i86pc<BR>
Glusterfs: glusterfs-1.3.12<BR>
gcc: gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)<BR>
<BR>
Thanks & Regards<BR>
liuyong
</BODY>
</HTML>