Bug 766 - xfsprogs-2.9.3 needs libphtread in more places
: xfsprogs-2.9.3 needs libphtread in more places
Status: RESOLVED FIXED
: XFS
xfsprogs
: unspecified
: Other Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-08-31 21:11 CST by
Modified: 2008-12-25 04:36 CST (History)


Attachments
libpthread for xfsprogs Makefiles (2.96 KB, patch)
2007-09-06 22:07 CST, Barry Naujok
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-08-31 21:11:08 CST
not sure if this is an error in the source or in the build, but in the new 2.9.3
release, pretty much all the binaries need the pthread functions by way of
common lib files

cache.c in libxfs uses pthread_mutex_trylock and cache.o gets pulled in for most
binaries like xfs_db but -lpthread is not utilized on the link line
------- Comment #1 From 2007-09-02 19:21:18 CST -------
Thinking more about this... libxfs should #ifdef the use of pthread
stuff. Only xfs_repair needs pthread calls. All other users of
libxfs don't need it.
------- Comment #2 From 2007-09-02 19:25:27 CST -------
that'd lead to some pretty fugly code ... maybe a local header that macro's away
all the pthread stuff ...
------- Comment #3 From 2007-09-06 22:07:19 CST -------
Created an attachment (id=232) [details]
libpthread for xfsprogs Makefiles

Can you try the attached patch to see if it fixes your problems?
------- Comment #4 From 2007-09-06 22:19:13 CST -------
you want libpthread after librt, but otherwise that is pretty much what i've
been using in Gentoo ... i just figured you guys would want to fix it a
different way
------- Comment #5 From 2008-12-25 04:36:43 CST -------
Barry's patch is in now, including Mike's suggested fixes.