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

building with --disable-shared fails when ZFS is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.11.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Building with --disable-shared fails when ZFS is enabled due to a missing dependency:

      # git clean -fxd && mcs && sh autogen.sh && ./configure --disable-shared && make
      ...
      mv -f .deps/mount_lustre-mount_utils.Tpo .deps/mount_lustre-mount_utils.Po
      /bin/sh ../../libtool  --tag=CC   --mode=link gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_B\
      ITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -lzfs   -o mount.lustre mount_lustre-mount_lustre.o mount_lustre-\
      mount_utils.o  ../../libcfs/libcfs/libcfs.la   libmount_utils_zfs.a libmount_utils_ldiskfs.a
      libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 \
      -Wall -Werror -o mount.lustre mount_lustre-mount_lustre.o mount_lustre-mount_utils.o  -lzfs ../../libcfs/libcf\
      s/.libs/libcfs.a libmount_utils_zfs.a libmount_utils_ldiskfs.a
      /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libzfs.so: undefined reference to symbol\
       'nvpair_name'
      /usr/lib64/libnvpair.so.1: error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
      make[4]: *** [mount.lustre] Error 1
      make[4]: Leaving directory `/root/lustre-release/lustre/utils'
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory `/root/lustre-release/lustre/utils'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/root/lustre-release/lustre'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/root/lustre-release'
      make: *** [all] Error 2
      

      Attachments

        Activity

          People

            simmonsja James A Simmons
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: