<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 29, 2018 at 10:32 PM, Vijay Bellur <span dir="ltr"><<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><span class="gmail-"><div dir="ltr">On Fri, Jun 29, 2018 at 11:59 AM Yaniv Kaul <<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>First time trying to compile from source.</div><div><br></div>The compilation part of 'make install' fails with:<div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'u_int32_t' [-Wformat=]</div><div> gf_log (GF_RPCSVC, GF_LOG_ERROR, "auth failed on request. "</div><div> ^</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'rpcvers_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'rpcprog_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'rpcvers_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'rpcproc_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'u_int32_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'rpcvers_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'rpcprog_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'rpcvers_t' [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'rpcproc_t' [-Wformat=]</div><div>rpcsvc.c: In function 'rpcsvc_callback_build_record'<wbr>:</div><div>rpcsvc.c:1003:9: error: implicit declaration of function 'xdr_sizeof' [-Werror=implicit-function-<wbr>declaration]</div><div> xdr_size = xdr_sizeof ((xdrproc_t)xdr_callmsg, &request);</div><div> ^</div><div>cc1: some warnings being treated as errors</div><div>make[4]: *** [rpcsvc.lo] Error 1</div></div><div><br></div></div></blockquote><div><br></div></span><div>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.</div></div></div></blockquote><div><br></div><div>That's on CentOS 7.5. I'll try, but I'm flying blind here, as <a href="https://docs.gluster.org/en/latest/Developer-guide/Compiling-RPMS/">https://docs.gluster.org/en/latest/Developer-guide/Compiling-RPMS/</a> is somewhere outdated (showing ancient releases)</div><div>and <a href="https://docs.gluster.org/en/latest/Developer-guide/Building-GlusterFS/">https://docs.gluster.org/en/latest/Developer-guide/Building-GlusterFS/</a> was followed (and failed).</div><div>I'll try the above.</div><div>TIA,</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>Thanks,</div><div>Vijay</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><div dir="ltr"><div></div><div><br></div><div><br></div><div>I'm on commit b3c2116d99a5c049e4ee0f88f35440<wbr>258b49496e , but I don't think it's related.</div><div><br></div><div>The following did get me RPMs:</div><div><div>./configure --enable-fusemount --disable-tiering</div><div>make dist</div><div>cd extras/LinuxRPM/</div><div>make glusterrpms</div><div><br></div><div>Thanks,</div><div>Y.</div><div><br></div><div><br></div></div></div></span>
______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a></blockquote></div></div>
</blockquote></div><br></div></div>