<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">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;</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 &lt;<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>&gt; 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 &#39;make install&#39; fails with:<div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 2 has type &#39;u_int32_t&#39; [-Wformat=]</div><div>                 gf_log (GF_RPCSVC, GF_LOG_ERROR, &quot;auth failed on request. &quot;</div><div>                 ^</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 3 has type &#39;rpcvers_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 4 has type &#39;rpcprog_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 5 has type &#39;rpcvers_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 6 has type &#39;rpcproc_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 7 has type &#39;u_int32_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 8 has type &#39;rpcvers_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 9 has type &#39;rpcprog_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 10 has type &#39;rpcvers_t&#39; [-Wformat=]</div><div>rpcsvc.c:528:17: warning: format &#39;%lu&#39; expects argument of type &#39;long unsigned int&#39;, but argument 11 has type &#39;rpcproc_t&#39; [-Wformat=]</div><div>rpcsvc.c: In function &#39;rpcsvc_callback_build_record&#39;<wbr>:</div><div>rpcsvc.c:1003:9: error: implicit declaration of function &#39;xdr_sizeof&#39; [-Werror=implicit-function-<wbr>declaration]</div><div>         xdr_size = xdr_sizeof ((xdrproc_t)xdr_callmsg, &amp;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&#39;s on CentOS 7.5. I&#39;ll try, but I&#39;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&#39;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&#39;m on commit b3c2116d99a5c049e4ee0f88f35440<wbr>258b49496e , but I don&#39;t think it&#39;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>