Re: libibverbs and versions

Steve Wise
2010-06-02T17:40:04Z

Jason Gunthorpe wrote:
> On Wed, Jun 02, 2010 at 10:50:56AM -0500, Steve Wise wrote:
>
>
>> I have this library I'm writing that uses libibverbs. Somehow it seems
>> to be using the 1.0 version instead of the newer version (I'm guessing).
>> When I call ibv_create_cq() I get a seg fault and the stack looks like
>> this:
>>
>
> Make sure you link your library to libibverbs and do not rely on
> linking the app to libibverbs to resolve the symbols. Check with
> ldd foo.so
>
> Jason
>

This was the issue. My library wasn't explicitly linking via
-libverbs. When I added that, it worked.

But how did it manage to link to the old version I wonder?