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]

 



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.


_______________________________________________
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