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

libmount_utils_ldiskfs doesn't with with --disable-shared

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • Lustre 2.12.0
    • Upstream
    • None
    • 3
    • 9223372036854775807

    Description

      some recent commit introduced this problem..

      Attachments

        Issue Links

          Activity

            [LU-10909] libmount_utils_ldiskfs doesn't with with --disable-shared
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31970/
            Subject: LU-10909 utils: enable non-shared libmount_utils_ldiskfs.a
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 9ac477c314c01464e3a4259e6c50881230a2f96e

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31970/ Subject: LU-10909 utils: enable non-shared libmount_utils_ldiskfs.a Project: fs/lustre-release Branch: master Current Patch Set: Commit: 9ac477c314c01464e3a4259e6c50881230a2f96e

            I wonder if this is the source of the ATM-709 failures we see.

            simmonsja James A Simmons added a comment - I wonder if this is the source of the ATM-709 failures we see.

            gcc version 7.3.1 20180130 (Red Hat 7.3.1-2) (GCC)

             

            bzzz Alex Zhuravlev added a comment - gcc version 7.3.1 20180130 (Red Hat 7.3.1-2) (GCC)  
            simmonsja James A Simmons added a comment - - edited

            Let me guess Fedora which has a newer gcc version. During the 2.12 cycle I'm hoping to make LNet tools independent of libcfs.a so we can integrate it into liblustreapi.so.

            simmonsja James A Simmons added a comment - - edited Let me guess Fedora which has a newer gcc version. During the 2.12 cycle I'm hoping to make LNet tools independent of libcfs.a so we can integrate it into liblustreapi.so.

            libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -Wl,-rpath -Wl,/lib222 -Wl,-dynamic-linker -Wl,/lib222/ld-linux-x86-64.so.2 -o l_tunedisk l_tunedisk-l_tunedisk.o l_tunedisk-mount_utils.o -L/home/alexey/zfs/lib/libnvpair/.libs /home/alexey/zfs/lib/libzfs/.libs//libzfs.so /home/alexey/zfs/lib/libzfs_core/.libs/libzfs_core.so /home/alexey/zfs/lib/libuutil/.libs/libuutil.so -lrt -lm -lblkid -lssl -lcrypto /home/alexey/zfs/lib/libnvpair/.libs/libnvpair.so -ludev -luuid -lz -L/home/alexey/zfs/lib/libzfs/.libs/ ../../libcfs/libcfs/.libs/libcfs.a -lselinux libmount_utils_zfs.a libmount_utils_ldiskfs.a -pthread -Wl,-rpath -Wl,/home/alexey/zfs/lib/libzfs/.libs/ -Wl,-rpath -Wl,/home/alexey/zfs/lib/libzfs_core/.libs -Wl,-rpath -Wl,/home/alexey/zfs/lib/libnvpair/.libs -Wl,-rpath -Wl,/home/alexey/zfs/lib/libuutil/.libs
            libmount_utils_ldiskfs.a(libmount_utils_ldiskfs_a-libmount_utils_ldiskfs.o): In function `is_block':
            /home/alexey/head3/lustre/utils/libmount_utils_ldiskfs.c:133: undefined reference to `cfs_abs_path'
            collect2: error: ld returned 1 exit status

            bzzz Alex Zhuravlev added a comment - libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -Wl,-rpath -Wl,/lib222 -Wl,-dynamic-linker -Wl,/lib222/ld-linux-x86-64.so.2 -o l_tunedisk l_tunedisk-l_tunedisk.o l_tunedisk-mount_utils.o -L/home/alexey/zfs/lib/libnvpair/.libs /home/alexey/zfs/lib/libzfs/.libs//libzfs.so /home/alexey/zfs/lib/libzfs_core/.libs/libzfs_core.so /home/alexey/zfs/lib/libuutil/.libs/libuutil.so -lrt -lm -lblkid -lssl -lcrypto /home/alexey/zfs/lib/libnvpair/.libs/libnvpair.so -ludev -luuid -lz -L/home/alexey/zfs/lib/libzfs/.libs/ ../../libcfs/libcfs/.libs/libcfs.a -lselinux libmount_utils_zfs.a libmount_utils_ldiskfs.a -pthread -Wl,-rpath -Wl,/home/alexey/zfs/lib/libzfs/.libs/ -Wl,-rpath -Wl,/home/alexey/zfs/lib/libzfs_core/.libs -Wl,-rpath -Wl,/home/alexey/zfs/lib/libnvpair/.libs -Wl,-rpath -Wl,/home/alexey/zfs/lib/libuutil/.libs libmount_utils_ldiskfs.a(libmount_utils_ldiskfs_a-libmount_utils_ldiskfs.o): In function `is_block': /home/alexey/head3/lustre/utils/libmount_utils_ldiskfs.c:133: undefined reference to `cfs_abs_path' collect2: error: ld returned 1 exit status
            simmonsja James A Simmons added a comment - - edited

            What exactly are you seeing? I have had success with this. So

            mount_lustre_LDADD = .. $(top_builddir)/libcfs/libcfs/libcfs.la ... 

            doesn't work for you?

            simmonsja James A Simmons added a comment - - edited What exactly are you seeing? I have had success with this. So mount_lustre_LDADD = .. $(top_builddir)/libcfs/libcfs/libcfs.la ...  doesn't work for you?

            Alex Zhuravlev (alexey.zhuravlev@intel.com) uploaded a new patch: https://review.whamcloud.com/31970
            Subject: LU-10909 utils: enable non-shared libmount_utils_ldiskfs.a
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 4f9ce12aa3df7aea77a5ee49df64ea22a485bea6

            gerrit Gerrit Updater added a comment - Alex Zhuravlev (alexey.zhuravlev@intel.com) uploaded a new patch: https://review.whamcloud.com/31970 Subject: LU-10909 utils: enable non-shared libmount_utils_ldiskfs.a Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4f9ce12aa3df7aea77a5ee49df64ea22a485bea6

            People

              bzzz Alex Zhuravlev
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: