Details

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

    Description

      if selinux is enabled and detected by configure, utils built will have problems finding the symbols:

      root@ubuntu:~# mkfs.lustre --index=0 --reformat --fsname testfs --mgs --mdt /dev/vdaroot@ubuntu:~# mkfs.lustre --index=0 --reformat --fsname testfs --mgs --mdt /dev/vda
         Permanent disk data:Target:     testfs:MDT0000Index:      0Lustre FS:  testfsMount type: ldiskfsFlags:      0x65              (MDT MGS first_time update )Persistent mount opts: user_xattr,errors=remount-roParameters:
      device size = 10240MBformatting backing filesystem ldiskfs on /dev/vda target name   testfs:MDT0000 4k blocks     2621440 options        -J size=409 -I 1024 -i 2560 -q -O dirdata,uninit_bg,^extents,dir_nlink,quota,huge_file,flex_bg -E lazy_journal_init -Fmkfs_cmd = mke2fs -j -b 4096 -L testfs:MDT0000  -J size=409 -I 1024 -i 2560 -q -O dirdata,uninit_bg,^extents,dir_nlink,quota,huge_file,flex_bg -E lazy_journal_init -F /dev/vda 2621440mkfs.lustre: symbol lookup error: /usr/lib/lustre/mount_osd_ldiskfs.so: undefined symbol: is_selinux_enabled
      

      the so is not linked properly:

      root@ubuntu:~# ldd /usr/lib/lustre/mount_osd_ldiskfs.soroot@ubuntu:~# ldd /usr/lib/lustre/mount_osd_ldiskfs.so linux-vdso.so.1 (0x00007fffa9e92000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f94f6cd1000) /lib64/ld-linux-x86-64.so.2 (0x00007f94f72cb000)
      

      the same happens to mount_osd_zfs.so

      Attachments

        Issue Links

          Activity

            [LU-11368] utils linking issue on ubuntu18.04
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33146/
            Subject: LU-11368 build: link the shared libraries properly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 2ef6910ff42c9bc2a52236ac045c1be5b2e13ea2

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33146/ Subject: LU-11368 build: link the shared libraries properly Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2ef6910ff42c9bc2a52236ac045c1be5b2e13ea2

            Li Dongyang (dongyangli@ddn.com) uploaded a new patch: https://review.whamcloud.com/33146
            Subject: LU-11368 build: link the shared libraries properly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: c366697504dc0fe1f7d1d3ebb701b8553a594249

            gerrit Gerrit Updater added a comment - Li Dongyang (dongyangli@ddn.com) uploaded a new patch: https://review.whamcloud.com/33146 Subject: LU-11368 build: link the shared libraries properly Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: c366697504dc0fe1f7d1d3ebb701b8553a594249

            People

              dongyang Dongyang Li
              dongyang Dongyang Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: