[LU-16150] Fix ZFS(2.1.99-1) build error on CentOS (3.10) Created: 13/Sep/22  Updated: 10/Oct/22  Resolved: 10/Oct/22

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

Type: Bug Priority: Minor
Reporter: Arshad Hussain Assignee: Arshad Hussain
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

 

$ uname -r
3.10.0-1160.15.2.el7.x86_64

 

$ zfs --version
zfs-2.1.99-1359_gede037c

The build fails with below error:

 

make[4]: Entering directory `/root/lustre01/lustre-release/lustre/utils'
gcc  -rdynamic -shared -export-dynamic -pthread \
         -L/root/zfs/zfs_git_lustre_build/zfs//lib/libzfs/.libs/ -L/root/zfs/zfs_git_lustre_build/zfs//lib/libnvpair/.libs/ -L/root/zfs/zfs_git_lustre_build/zfs//lib/libzpool/.libs/ -o mount_osd_zfs.so \
         `ar -t libmount_utils_zfs.a` \
         -ldl   -lzfs -lnvpair -lzpool
/usr/bin/ld: cannot find -lzfs
/usr/bin/ld: cannot find -lnvpair
/usr/bin/ld: cannot find -lzpool
collect2: error: ld returned 1 exit status

 



 Comments   
Comment by Gerrit Updater [ 13/Sep/22 ]

"Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/48536
Subject: LU-16150 zfs: Fix ZFS(2.1.99-1) build error on CentOS (3.10)
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 02ecc203ab0499cd944c9df86aa392c284c07f4a

Comment by Gerrit Updater [ 10/Oct/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48536/
Subject: LU-16150 zfs: Fix ZFS(2.1.99-1) build error on CentOS (3.10)
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 448963c9a33dbf0e0988ceeb407027f2488e7f42

Comment by Peter Jones [ 10/Oct/22 ]

Landed for 2.16

Generated at Sat Feb 10 03:24:26 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.