[lustre-discuss] Compiling lustre-2.10.6

Tung-Han Hsieh thhsieh at twcp1.phys.ntu.edu.tw
Tue Mar 12 07:22:57 PDT 2019


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


More information about the lustre-discuss mailing list