[Gluster-devel] compilation failure: rpcsvc.c:1003:9: error: implicit declaration of function 'xdr_sizeof' [-Werror=implicit-function-declaration]
Yaniv Kaul
ykaul at redhat.com
Fri Jun 29 18:57:29 UTC 2018
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 errors
make[4]: *** [rpcsvc.lo] Error 1
I'm on commit b3c2116d99a5c049e4ee0f88f35440258b49496e , but I don't think
it's related.
The following did get me RPMs:
./configure --enable-fusemount --disable-tiering
make dist
cd extras/LinuxRPM/
make glusterrpms
Thanks,
Y.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20180629/9435e8ac/attachment-0001.html>
More information about the Gluster-devel
mailing list