[LU-10909] libmount_utils_ldiskfs doesn't with with --disable-shared Created: 12/Apr/18  Updated: 02/May/18  Resolved: 02/May/18

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

Type: Bug Priority: Trivial
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-10920 building with --disable-shared fails ... Closed
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

some recent commit introduced this problem..



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

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

Comment by James A Simmons [ 12/Apr/18 ]

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?

Comment by Alex Zhuravlev [ 12/Apr/18 ]

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

Comment by James A Simmons [ 12/Apr/18 ]

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.

Comment by Alex Zhuravlev [ 12/Apr/18 ]

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

 

Comment by James A Simmons [ 12/Apr/18 ]

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

Comment by Gerrit Updater [ 02/May/18 ]

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

Comment by Peter Jones [ 02/May/18 ]

Landed for 2.12

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