[LU-11368] utils linking issue on ubuntu18.04 Created: 12/Sep/18  Updated: 06/Oct/18  Resolved: 06/Oct/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.12.0

Type: Bug Priority: Minor
Reporter: Dongyang Li Assignee: Dongyang Li
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11071 Support for Lustre Servers on Ubuntu ... Resolved
Severity: 3
Rank (Obsolete): 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



 Comments   
Comment by Gerrit Updater [ 12/Sep/18 ]

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

Comment by Gerrit Updater [ 05/Oct/18 ]

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

Comment by Peter Jones [ 06/Oct/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:43:16 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.