Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-3412

compile failure on older kernel because bool is undefined

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • None
    • 3
    • 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.

      Attachments

        Activity

          [LU-3412] compile failure on older kernel because bool is undefined
          pjones Peter Jones added a comment -

          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.

          pjones Peter Jones added a comment - 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.

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

          lixi Li Xi (Inactive) added a comment - The patch fixing the problem has been pushed to: http://review.whamcloud.com/6481

          People

            pjones Peter Jones
            lixi Li Xi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: