On Fri, Jun 29, 2018 at 11:59 AM Yaniv Kaul <ykaul@xxxxxxxxxx> wrote:
Hello,First time trying to compile from source.The compilation part of 'make install' fails with:rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'u_int32_t' [-Wformat=]gf_log (GF_RPCSVC, GF_LOG_ERROR, "auth failed on request. "^rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'rpcvers_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'rpcprog_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'rpcvers_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'rpcproc_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'u_int32_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'rpcvers_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'rpcprog_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'rpcvers_t' [-Wformat=]rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'rpcproc_t' [-Wformat=]rpcsvc.c: In function 'rpcsvc_callback_build_record':rpcsvc.c:1003:9: error: implicit declaration of function 'xdr_sizeof' [-Werror=implicit-function-declaration]xdr_size = xdr_sizeof ((xdrproc_t)xdr_callmsg, &request);^cc1: some warnings being treated as errorsmake[4]: *** [rpcsvc.lo] Error 1
Is this on RHEL/CentOS 7? IIRC, libtirpc on RHEL7 does not have xdr_sizeof. Using --without-libtirpc with configure might help overcome this problem as it falls back on glibc for xdr functions.
Thanks,
Vijay
_______________________________________________I'm on commit b3c2116d99a5c049e4ee0f88f35440258b49496e , but I don't think it's related.The following did get me RPMs:./configure --enable-fusemount --disable-tieringmake distcd extras/LinuxRPM/make glusterrpmsThanks,Y.
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://lists.gluster.org/mailman/listinfo/gluster-devel