Hi Weikuan-- On 1/8/2005 23:48, Weikuan Yu wrote:> > I have been trying to compile lustre with liblustre enabled. However, I > keep getting the following error:We have found that, in practice, liblustre is very difficult to support generically for everyone. Especially because relatively few people need it, given the excellent kernel file system driver available. And because only our 1.4.x customers were using it, it stopped being maintained in 1.2.x. For example, glibc does not always make its system calls in consistent, easy-to-intercept ways. This means that we have to make difficult, one-off changes for almost every version of glibc. At least for the near future, this means that probably only our customers will be able to run liblustre, just because of the effort and expertise involved. Thanks-- -Phil
Hi, I have been trying to compile lustre with liblustre enabled. However, I keep getting the following error: +++++++++++++++++++++++++++++++++++++++++++++++++ make[1]: Entering directory `/data/weikuan/fs/lustre/lustre-devel-1.2.7/ptlrpc'' if gcc -DHAVE_CONFIG_H -I. -I. -I../include -include ../include/config.h -I../include -I../portals/include -g -Wall -fPIC -g -O2 -MT libptlrpc_a-client.o -MD -MP -MF ".deps/libptlrpc_a-client.Tpo" \ -c -o libptlrpc_a-client.o `test -f ''client.c'' || echo ''./''`client.c; \ then mv -f ".deps/libptlrpc_a-client.Tpo" ".deps/libptlrpc_a-client.Po"; \ else rm -f ".deps/libptlrpc_a-client.Tpo"; exit 1; \ fi In file included from ../include/linux/lustre_idl.h:70, from ../include/liblustre.h:743, from client.c:27: ../include/lustre/lustre_user.h:93: field `lmd_st'' has incomplete type ../include/lustre/lustre_user.h:95: confused by earlier errors, bailing out make[1]: *** [libptlrpc_a-client.o] Error 1 make[1]: Leaving directory `/data/weikuan/fs/lustre/lustre-devel-1.2.7/ptlrpc'' make: *** [all-recursive] Error 1 +++++++++++++++++++++++++++++++++++++++++++++++++ Could anybody inform me what is wrong with that? struct stat64 seems to be already defined before lustre_user.h:93. I guess some fields of struct stat64 is incorrectly included. There is no problem if I do not enable liblustre support. I have the latest libsysio from sourceforge. By the way, I am using the following versions of glibc and gcc. gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) [yuw@p3 lustre-devel-1.2.7]$ rpm -qa | grep glibc glibc-kernheaders-2.4-8.10 glibc-2.3.2-27.9.7 glibc-common-2.3.2-27.9.7 glibc-devel-2.3.2-27.9.7 glibc-utils-2.3.2-27.9.7 Thanks, Weikuan