[sheepdog-users] cannot compile latest origin branch
Liu Yuan
namei.unix at gmail.com
Thu Feb 13 12:10:43 CET 2014
On Wed, Feb 12, 2014 at 10:14:28PM +0700, icez network wrote:
> Hello,
>
> I'm trying to compile sheepdog from origin and devel branch in CentOS 6.5
> but the compile failed as below.
>
> [root at mizar sheepdog]# ./autogen.sh
> Building configuration system...
> Now run ./configure and make
> [root at mizar sheepdog]# ./configure --prefix=/opt/sheep-20140212
> --enable-zookeeper --disable-corosync
> .
> .
> configure process goes here
> .
> .
>
> sheepdog configuration:
> Version = 0.8.0_56_g55edf5b
> Prefix = /opt/sheep-20140212
> Executables = ${exec_prefix}/sbin
> Man pages = ${datarootdir}/man
> Doc dir = ${datarootdir}/doc/${PACKAGE_TARNAME}
> Libraries = ${exec_prefix}/lib
> Header files = ${prefix}/include
> Arch-independent files = ${datarootdir}
> State information = ${prefix}/var
> System configuration = ${prefix}/etc
> System init.d directory = ${prefix}/etc/init.d
> sheepdog config dir = ${prefix}/etc/sheepdog
> Features = zookeeper sheepfs
>
> sheepdog build info:
> Library SONAME =
>
> Default optimization = -DNDEBUG
> Default debug options =
> Extra compiler warnings =
> Env. defined CFLAG = -g -O2
> Env. defined CPPFLAGS =
> Env. defined LDFLAGS =
> OS defined CFLAGS =
> OS defined CPPFLAGS =
> OS defined LDFLAGS =
> OS defined LDL = -ldl
> OS defined DYFLAGS =
> ANSI defined CPPFLAGS =
> Coverage CFLAGS =
> Coverage LDFLAGS =
> Fatal War. CFLAGS =
> Trace CFLAGS =
> 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
> Final CPPFLAGS =
> Final LDFLAGS =
> [root at mizar sheepdog]# make
> Making all in lib
> make[1]: Entering directory `/usr/local/src/sheepdog/lib'
> CC event.o
> CC logger.o
> logger.c: In function ‘gdb_cmd’:
> logger.c:746: error: ‘ARG_MAX’ undeclared (first use in this function)
> logger.c:746: error: (Each undeclared identifier is reported only once
> logger.c:746: error: for each function it appears in.)
> logger.c:746: warning: unused variable ‘cmd_str’
> logger.c: In function ‘sd_backtrace’:
> logger.c:797: error: ‘ARG_MAX’ undeclared (first use in this function)
> logger.c:797: warning: unused variable ‘cmd’
> make[1]: *** [logger.o] Error 1
> make[1]: Leaving directory `/usr/local/src/sheepdog/lib'
> make: *** [all-recursive] Error 1
> --
> sheepdog-users mailing lists
> sheepdog-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog-users
I think you can compile lastest master and devel branch now.
Thanks
Yuan
More information about the sheepdog-users
mailing list