Hsieh,
We have instructions for compiling from source here on our Wiki: https://wiki.whamcloud.com/display/PUB/Building+Lustre+from+Source Are you following those? If not, I'd suggest it - Your problem looks likely to be an error in the build process. We also have prebuilt 2.10.6 packages for many platforms: https://downloads.whamcloud.com/public/lustre/ - Patrick ________________________________ From: lustre-discuss <lustre-discuss-boun...@lists.lustre.org> on behalf of Tung-Han Hsieh <thhs...@twcp1.phys.ntu.edu.tw> Sent: Tuesday, March 12, 2019 9:22:57 AM To: lustre-discuss@lists.lustre.org Subject: [lustre-discuss] Compiling lustre-2.10.6 Dear All, I am trying to compile lustre-2.10.6 from source code. During compilation, there are undefined symbols: ========================================================================== CC [M] /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.o In file included from /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:72:0: /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h: In function 'ldiskfs_get_htree_eof': /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) return LDISKFS_HTREE_EOF_32BIT; ^ /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 /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) return LDISKFS_HTREE_EOF_64BIT; ^ /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c: In function 'osd_check_lmv': /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) filp->f_pos != LDISKFS_HTREE_EOF_64BIT); ^ In file included from /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_handler.c:72:0: /home/thhsieh/lustre/L-2.10.6/lustre-2.10.6/lustre/osd-ldiskfs/osd_internal.h: In function 'ldiskfs_get_htree_eof': /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] } ^ cc1: all warnings being treated as errors 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 ========================================================================== I searched the source code, only find the definition of LDISKFS_HTREE_EOF in ldiskfs/ldiskfs.h: #define LDISKFS_HTREE_EOF 0x7fffffff but cannot find the definition of LDISKFS_HTREE_EOF_32BIT and LDISKFS_HTREE_EOF_64BIT. Could anyone tell me how to fix this problem ? Thanks very much. T.H.Hsieh _______________________________________________ lustre-discuss mailing list lustre-discuss@lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
_______________________________________________ lustre-discuss mailing list lustre-discuss@lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org