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

lustre-client dkms build error with redefinition of ‘init_sk_module’

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.16.0, Lustre 2.15.1
    • Lustre 2.15.0
    • None
    • CentOS 7.9
    • 3
    • 9223372036854775807

    Description

      Hello!
      We wanted to try to deploy a few Lustre 2.15.0 clients on a CentOS 7.9 cluster. While we were able to build the standard lustre/kmod RPMs without issue, we hit the following problem when installing the DKMS RPM.

      Overview of the dkms rpm build process (from the Compiling Lustre Wiki page)

      make distclean
      sh ./autogen.sh
       ./configure --enable-dist --disable-server --enable-client
      make dist
      rpmbuild -bs --without servers lustre-dkms.spec
      rpmbuild --rebuild --without servers /path/to/lustre-client-dkms(...).el7.src.rpm
      

      The installation of the lustre-client-dkms RPM fails on CentOS 7.9 with the following errors:

      /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_sk_mech.c:946:12: error: redefinition of ‘init_sk_module’
       int __init init_sk_module(void)
                  ^
      In file included from /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_crypto.h:6:0,
                       from /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_sk_mech.c:44:
      /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_internal.h:544:19: note: previous definition of ‘init_sk_module’ was here
       static inline int init_sk_module(void) { return 0; }
                         ^
      /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_sk_mech.c:957:6: error: redefinition of ‘cleanup_sk_module’
       void cleanup_sk_module(void)
            ^
      In file included from /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_crypto.h:6:0,
                       from /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_sk_mech.c:44:
      /var/lib/dkms/lustre-client/2.15.0_1_g0a101e6/build/lustre/ptlrpc/gss/gss_internal.h:545:20: note: previous definition of ‘cleanup_sk_module’ was here
       static inline void cleanup_sk_module(void) { return; }
                          ^
      

       
      Attaching dkms' build/ make.log where you can find the full log of the build error and build/ config.log (from /var/lib/dkms/lustre-client on the target client where the build fails).

      GCC version: gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 

      Attachments

        1. config.log
          1.06 MB
        2. make.log
          26 kB

        Activity

          People

            sebastien Sebastien Buisson
            sthiell Stephane Thiell
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: