[LU-11160] build: implicit dependency on libuuid-devel Created: 19/Jul/18  Updated: 05/Aug/20  Resolved: 06/Aug/18

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

Type: Bug Priority: Minor
Reporter: CEA Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11097 undefined reference to `uuid_unparse@... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

On centos7.4, Lustre now requires libuuid-devel to be installed, the configure script should check for it.

libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -o llverdev llverdev.o  -luuid
/usr/bin/ld: cannot find -luuid


 Comments   
Comment by Peter Jones [ 19/Jul/18 ]

Nathaniel

Can you please assist with this?

Thanks

Peter

Comment by James A Simmons [ 19/Jul/18 ]

So I was right. We do need to add the dependency to lustre.spec.in and debain/control{.main}

Comment by Nathaniel Clark [ 19/Jul/18 ]

With regards to libuuid, I think it's actually a dependency of libblkid

So the following patch:

https://review.whamcloud.com/32726

may not be 100% correct.

Comment by Nathaniel Clark [ 19/Jul/18 ]

For el7.4 (and el7.5):

libblkid requires libuuid

libblkid-devel requires pkgconfig(uuid) which is provided by libuuid-devel

So "-luuid" should only be present if "-lblkid" is present.  I will submit a patch.

llverdev doesn't require libblkid when being built, it's an optional build dependency.

Comment by Gerrit Updater [ 19/Jul/18 ]

Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32842
Subject: LU-11160 build: Fix uuid / blkid dependency
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f140f0a235f5c9dfcb60f3e70ad2c1a12755651c

Comment by Gerrit Updater [ 06/Aug/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32842/
Subject: LU-11160 build: Fix uuid / blkid dependency
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b6c2ffa661f5aceb50fe03fbc8cfd7cdf7966ae2

Comment by Peter Jones [ 06/Aug/18 ]

Landed for 2.12

Comment by Gerrit Updater [ 12/Sep/18 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33147
Subject: LU-11160 build: Fix uuid / blkid dependency
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: de6ee3d9ab77f485b72bb01b9dc0baff24fa4964

Comment by Gerrit Updater [ 04/Oct/18 ]

John L. Hammond (jhammond@whamcloud.com) merged in patch https://review.whamcloud.com/33147/
Subject: LU-11160 build: Fix uuid / blkid dependency
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: c4116b86130a4bffacb145f4eedbd2ed6a567495

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