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

Build error for l_getsepol.c due to missing openssl/evp.h

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.13.0, Lustre 2.12.2
    • Lustre 2.13.0
    • RHEL7.5 without openssl-devel
    • 9223372036854775807

    Description

      I got a build failure due to a missing header for the newly-added l_getsepol command:

      l_getsepol.c:50:25: fatal error: openssl/evp.h: No such file or directory
      #include <openssl/evp.h>
      

      This requires the openssl-devel package to be installed in order to build, but that is not in the BuildRequires of lustre.spec file. Also, for sites that don't need this utility, the configure check should disable building l_getsepol if the header is not available.

      Finally, there is no l_getsepol.8 man page in lustre/doc for this command.

      Attachments

        Issue Links

          Activity

            [LU-11914] Build error for l_getsepol.c due to missing openssl/evp.h
            pjones Peter Jones added a comment -

            I think that we set now

            pjones Peter Jones added a comment - I think that we set now

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34832/
            Subject: LU-11914 build: add a configure check for l_getsepol
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 68fc8296a7f6889bdb3401b476ef2af555c90a99

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34832/ Subject: LU-11914 build: add a configure check for l_getsepol Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 68fc8296a7f6889bdb3401b476ef2af555c90a99

            Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34832
            Subject: LU-11914 build: add a configure check for l_getsepol
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 00bac8c71132c579e881031fd6e66c68967b11af

            gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34832 Subject: LU-11914 build: add a configure check for l_getsepol Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 00bac8c71132c579e881031fd6e66c68967b11af
            ofaaland Olaf Faaland added a comment - - edited

            The man page addition also did not get backported to 2.12.1, I believe.

            ofaaland Olaf Faaland added a comment - - edited The man page addition also did not get backported to 2.12.1, I believe.

            Some of the SELinux related patches, such as

            LU-8955 sec: create new function sptlrpc_get_sepol()

            were backported to b2_12 for Lustre 2.12.1, but this patch was not, and so 2.12.1 has this build issue.

            ofaaland Olaf Faaland added a comment - Some of the SELinux related patches, such as LU-8955 sec: create new function sptlrpc_get_sepol() were backported to b2_12 for Lustre 2.12.1, but this patch was not, and so 2.12.1 has this build issue.
            pjones Peter Jones added a comment -

            Landed for 2.13

            pjones Peter Jones added a comment - Landed for 2.13

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34183/
            Subject: LU-11914 build: add a configure check for l_getsepol
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: be6de3db9cace327b3d34870417c96c2ac705313

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34183/ Subject: LU-11914 build: add a configure check for l_getsepol Project: fs/lustre-release Branch: master Current Patch Set: Commit: be6de3db9cace327b3d34870417c96c2ac705313

            The man page for l_getsepol has been submitted under LU-930:
            https://review.whamcloud.com/34184

            sebastien Sebastien Buisson added a comment - The man page for l_getsepol has been submitted under LU-930 : https://review.whamcloud.com/34184

            Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/34183
            Subject: LU-11914 build: add a configure check for l_getsepol
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e896ef5214f9f1fd22096c259822df81531a3a4f

            gerrit Gerrit Updater added a comment - Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/34183 Subject: LU-11914 build: add a configure check for l_getsepol Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e896ef5214f9f1fd22096c259822df81531a3a4f

            I will add a configure check that disables building l_getsepol in case openssl-devel is not available.

            But in this case, I do not see the point of adding a BuildRequires directive into the spec file: thanks to the configure check, there will be no hard dependency.

            sebastien Sebastien Buisson added a comment - I will add a configure check that disables building l_getsepol in case openssl-devel is not available. But in this case, I do not see the point of adding a BuildRequires directive into the spec file: thanks to the configure check, there will be no hard dependency.

            People

              sebastien Sebastien Buisson
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: