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

utils linking issue on ubuntu18.04

    XMLWordPrintable

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: