[Gluster-devel] compilation failure: rpcsvc.c:1003:9: error: implicit declaration of function 'xdr_sizeof' [-Werror=implicit-function-declaration]

Vijay Bellur vbellur at redhat.com
Fri Jun 29 19:32:29 UTC 2018


On Fri, Jun 29, 2018 at 11:59 AM Yaniv Kaul <ykaul at redhat.com> 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 errors
> make[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-tiering
> make dist
> cd extras/LinuxRPM/
> make glusterrpms
>
> Thanks,
> Y.
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20180629/f173208a/attachment.html>


More information about the Gluster-devel mailing list