<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm trying to compile sheepdog from origin and devel branch in CentOS 6.5 but the compile failed as below.</div><div><br></div><div>[root@mizar sheepdog]# ./autogen.sh</div>
<div><div>Building configuration system...</div><div>Now run ./configure and make</div></div><div><div>[root@mizar sheepdog]# ./configure --prefix=/opt/sheep-20140212 --enable-zookeeper --disable-corosync</div></div><div>
.</div><div>.</div><div>configure process goes here</div><div>.</div><div>.</div><div><br></div><div><div>sheepdog configuration:</div><div> Version = 0.8.0_56_g55edf5b</div><div> Prefix = /opt/sheep-20140212</div>
<div> Executables = ${exec_prefix}/sbin</div><div> Man pages = ${datarootdir}/man</div><div> Doc dir = ${datarootdir}/doc/${PACKAGE_TARNAME}</div><div> Libraries = ${exec_prefix}/lib</div>
<div> Header files = ${prefix}/include</div><div> Arch-independent files = ${datarootdir}</div><div> State information = ${prefix}/var</div><div> System configuration = ${prefix}/etc</div><div>
System init.d directory = ${prefix}/etc/init.d</div><div> sheepdog config dir = ${prefix}/etc/sheepdog</div><div> Features = zookeeper sheepfs</div><div><br></div><div>sheepdog build info:</div>
<div>
Library SONAME =</div><div><br></div><div> Default optimization = -DNDEBUG</div><div> Default debug options =</div><div> Extra compiler warnings =</div><div> Env. defined CFLAG = -g -O2</div>
<div> Env. defined CPPFLAGS =</div><div> Env. defined LDFLAGS =</div><div> OS defined CFLAGS =</div><div> OS defined CPPFLAGS =</div><div> OS defined LDFLAGS =</div><div> OS defined LDL = -ldl</div>
<div> OS defined DYFLAGS =</div><div> ANSI defined CPPFLAGS =</div><div> Coverage CFLAGS =</div><div> Coverage LDFLAGS =</div><div> Fatal War. CFLAGS =</div><div> Trace CFLAGS =</div>
<div> Final CFLAGS = -g -O2 -DNDEBUG -ggdb3 -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wcast-align -D_GNU_SOURCE -D_LGPL_SOURCE -std=gnu99</div>
<div> Final CPPFLAGS =</div><div> Final LDFLAGS =</div></div><div>[root@mizar sheepdog]# make</div><div>Making all in lib</div><div>make[1]: Entering directory `/usr/local/src/sheepdog/lib'</div>
<div> CC event.o</div><div> CC logger.o</div><div>logger.c: In function ‘gdb_cmd’:</div><div>logger.c:746: error: ‘ARG_MAX’ undeclared (first use in this function)</div><div>logger.c:746: error: (Each undeclared identifier is reported only once</div>
<div>logger.c:746: error: for each function it appears in.)</div><div>logger.c:746: warning: unused variable ‘cmd_str’</div><div>logger.c: In function ‘sd_backtrace’:</div><div>logger.c:797: error: ‘ARG_MAX’ undeclared (first use in this function)</div>
<div>logger.c:797: warning: unused variable ‘cmd’</div><div>make[1]: *** [logger.o] Error 1</div><div>make[1]: Leaving directory `/usr/local/src/sheepdog/lib'</div><div>make: *** [all-recursive] Error 1</div><div></div>
</div>