[LU-3412] compile failure on older kernel because bool is undefined Created: 29/May/13  Updated: 21/Mar/18  Resolved: 21/Mar/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Li Xi (Inactive) Assignee: Peter Jones
Resolution: Won't Fix Votes: 0
Labels: build, patch

Severity: 3
Rank (Obsolete): 8432

 Description   

Lustre-1.8.8 can be built with RHEL5.1, but can't with 1.8.9. Here is error messages when it's compiled.

make[3]: Entering directory `/usr/src/kernels/2.6.18-53.1.19.el5-x86_64'
CC [M] /root/lustre-release/lnet/klnds/socklnd/socklnd.o
CC [M] /root/lustre-release/lnet/klnds/socklnd/socklnd_cb.o
CC [M] /root/lustre-release/lnet/klnds/socklnd/socklnd_proto.o
CC [M] /root/lustre-release/lnet/klnds/socklnd/socklnd_modparams.o
CC [M] /root/lustre-release/lnet/klnds/socklnd/socklnd_lib-linux.o
LD [M] /root/lustre-release/lnet/klnds/socklnd/ksocklnd.o
CC [M] /root/lustre-release/lustre/llite/lloop.o
In file included from /root/lustre-release/lustre/llite/lloop.c:112:
/root/lustre-release/lustre/llite/llite_internal.h:591: error: expected specifier-qualifier-list before 'bool'
make[6]: *** [/root/lustre-release/lustre/llite/lloop.o] Error 1
make[5]: *** [/root/lustre-release/lustre/llite] Error 2
make[4]: *** [/root/lustre-release/lustre] Error 2
make[3]: *** [_module_/root/lustre-release] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.18-53.1.19.el5-x86_64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/root/lustre-release'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/lustre-release'
make: *** [all] Error 2

Commit 01811d424cf29f57a4ef455e1851b5c0c0b168a3 (LU-359 llite: no close error if application has known...) is the change that affects this issue.



 Comments   
Comment by Li Xi (Inactive) [ 29/May/13 ]

The patch fixing the problem has been pushed to:
http://review.whamcloud.com/6481

Comment by Peter Jones [ 29/May/13 ]

Thanks Li Xi. Those wanting to use older RHEL5 releases with 1.8.x may well be interested in this change though our usual convention is to build and validate against the latest point release of the distro available at the time of the release, so RHEL5.9 at the present time, say.

Generated at Sat Feb 10 01:33:41 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.