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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Fri, Jun 29, 2018 at 10:32 PM, Vijay Bellur <vbellur@xxxxxxxxxx> wrote:


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 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.

That's on CentOS 7.5. I'll try, but I'm flying blind here, as https://docs.gluster.org/en/latest/Developer-guide/Compiling-RPMS/ is somewhere outdated (showing ancient releases)
and https://docs.gluster.org/en/latest/Developer-guide/Building-GlusterFS/ was followed (and failed).
I'll try the above.
TIA,
Y.
 

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@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux