ASUS PEM-FDR 用户手册
Rev 2.0-3.0.0
Mellanox Technologies
226
Appendix E: Lustre Compilation over MLNX_OFED
To compile Lustre version 2.3.65 and higher:
To compile older Lustre versions:
For Lustre 2.1.3, due to a duplicate definition of INVALID_UID macro, the following patch must be
applied:
applied:
$ ./configure --with-o2ib=/usr/src/ofa_kernel/default/
$ make rpms
$ EXTRA_LNET_INCLUDE="-I/usr/src/ofa_kernel/default/include/ -include /usr/src/
ofa_kernel/default/include/linux/compat-2.6.h" ./configure --with-o2ib=/usr/src/
ofa_kernel/default/
$ EXTRA_LNET_INCLUDE="-I/usr/src/ofa_kernel/default/include/ -include /usr/src/
ofa_kernel/default/include/linux/compat-2.6.h" make rpms
--- lustre-2.1.3/lustre/include/lustre_cfg.h 2012-09-17 14:26:46.000000000 +0200
+++ lustre-2.1.3/lustre/include/lustre_cfg.h.new 2013-09-07 10:45:07.121772824 +0200
@@ -288,7 +288,9 @@
#include <lustre/lustre_user.h>
+#ifndef INVALID_UID
#define INVALID_UID (-1)
+#endif