From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Steve Wise" Subject: RE: [PATCH 02/28] Include pthreads in the provider libraries Date: Wed, 7 Sep 2016 09:41:11 -0500 Message-ID: <027401d20915$e0d3b620$a27b2260$@opengridcomputing.com> References: <1473109698-31408-1-git-send-email-jgunthorpe@obsidianresearch.com> <1473109698-31408-3-git-send-email-jgunthorpe@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1473109698-31408-3-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> Content-Language: en-us Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: 'Jason Gunthorpe' , 'Doug Ledford' , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: 'Devesh Sharma' , 'Hal Rosenstock' , 'Mike Marciniszyn' , 'Moni Shoua' , 'Sean Hefty' , 'Tatyana Nikolova' , 'Vladimir Sokolovsky' , 'Yishai Hadas' List-Id: linux-rdma@vger.kernel.org > It is a mistake to not explicitly link to the libraries required. > Not linking causes the symbols to drop the symbol version which could > cause runtime problems down the road if pthreads ever goes through > another symbol version change. > > Signed-off-by: Jason Gunthorpe > --- > libcxgb3/configure.in | 2 ++ > libcxgb4/configure.in | 2 ++ > libhfi1verbs/configure.in | 2 ++ > libi40iw/configure.ac | 2 ++ > libipathverbs/configure.in | 2 ++ > libmlx4/configure.ac | 2 ++ > libmlx5/configure.ac | 3 +++ > libmthca/configure.in | 2 ++ > libnes/configure.in | 2 ++ > libocrdma/configure.in | 2 ++ > librxe/configure.in | 2 ++ > 11 files changed, 23 insertions(+) > > diff --git a/libcxgb3/configure.in b/libcxgb3/configure.in > index 9efc82d34f33..db9177230cae 100644 > --- a/libcxgb3/configure.in > +++ b/libcxgb3/configure.in > @@ -24,6 +24,8 @@ then > AC_CHECK_LIB(ibverbs, ibv_get_device_list, [], > AC_MSG_ERROR([ibv_get_device_list() not found. libcxgb3 requires > libibverbs.])) > fi > +AC_CHECK_LIB(pthread, pthread_mutex_init, [], > + AC_MSG_ERROR([pthread_mutex_init() not found. libibverbs requires > libpthread.])) > Nit: This should be "libcxgb3 requires..." Similar change needed for all of this patch. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html