<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hsieh,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">We have instructions for compiling from source here on our Wiki:<br>
</p>
<p style="margin-top:0;margin-bottom:0"><a href="https://wiki.whamcloud.com/display/PUB/Building+Lustre+from+Source" class="OWAAutoLink" id="LPlnk871318" previewremoved="true">https://wiki.whamcloud.com/display/PUB/Building+Lustre+from+Source</a></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Are you following those?  If not, I'd suggest it - Your problem looks likely to be an error in the build process.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">We also have prebuilt 2.10.6 packages for many platforms:<br>
<a href="https://downloads.whamcloud.com/public/lustre/" class="OWAAutoLink" id="LPlnk688700" previewremoved="true">https://downloads.whamcloud.com/public/lustre/</a></p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">- Patrick<br>
<br>
<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of Tung-Han Hsieh <thhsieh@twcp1.phys.ntu.edu.tw><br>
<b>Sent:</b> Tuesday, March 12, 2019 9:22:57 AM<br>
<b>To:</b> lustre-discuss@lists.lustre.org<br>
<b>Subject:</b> [lustre-discuss] Compiling lustre-2.10.6</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Dear All,<br>
<br>
I am trying to compile lustre-2.10.6 from source code. During<br>
compilation, there are undefined symbols:<br>
<br>
==========================================================================<br>
  CC [M]  /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.o<br>
In file included from /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:72:0:<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h: In function 'ldiskfs_get_htree_eof':<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1254:10: error: 'LDISKFS_HTREE_EOF_32BIT' undeclared (first use in this function)<br>
   return LDISKFS_HTREE_EOF_32BIT;<br>
          ^<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1254:10: note: each undeclared identifier is reported only once for each function it appears in<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1256:10: error: 'LDISKFS_HTREE_EOF_64BIT' undeclared (first use in this function)<br>
   return LDISKFS_HTREE_EOF_64BIT;<br>
          ^<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c: In function 'osd_check_lmv':<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:968:19: error: 'LDISKFS_HTREE_EOF_64BIT' undeclared (first use in this function)<br>
    filp->f_pos != LDISKFS_HTREE_EOF_64BIT);<br>
                   ^<br>
In file included from /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:72:0:<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h: In function 'ldiskfs_get_htree_eof':<br>
/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h:1257:1: error: control reaches end of non-void function [-Werror=return-type]<br>
 }<br>
 ^<br>
cc1: all warnings being treated as errors<br>
scripts/Makefile.build:321: recipe for target '/home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.o' failed<br>
==========================================================================<br>
<br>
I searched the source code, only find the definition of LDISKFS_HTREE_EOF<br>
in ldiskfs/ldiskfs.h:<br>
<br>
#define LDISKFS_HTREE_EOF       0x7fffffff<br>
<br>
but cannot find the definition of LDISKFS_HTREE_EOF_32BIT and<br>
LDISKFS_HTREE_EOF_64BIT. Could anyone tell me how to fix this problem ?<br>
<br>
Thanks very much.<br>
<br>
T.H.Hsieh<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
lustre-discuss@lists.lustre.org<br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</div>
</span></font></div>
</body>
</html>