Bugzilla – Bug 766
xfsprogs-2.9.3 needs libphtread in more places
Last modified: 2008-12-25 04:36:43 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
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.
that'd lead to some pretty fugly code ... maybe a local header that macro's away all the pthread stuff ...
Created attachment 232 [details] libpthread for xfsprogs Makefiles Can you try the attached patch to see if it fixes your problems?
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
Barry's patch is in now, including Mike's suggested fixes.