[ofa-general] [PATCH v3 1/3] Create a new library libibnetdisc

Ira Weiny weiny2 at llnl.gov
Thu Apr 23 13:40:55 PDT 2009


Sorry I missed this thread.

There is also an ibdebug defined in libibmad.

extern int ibdebug;

This is the one it is using...  :-/  I think there should be a wrapper function.  Perhaps madrpc_show_errors?

Ira

On Thu, 23 Apr 2009 11:49:36 -0700
"Sean Hefty" <sean.hefty at intel.com> wrote:

> >> Where does the definition for ibdebug come from?
> >
> >It is in ibdiag_common.c. Every infiniband-ibdiag tool is linked with
> >it. And yes, using this in this library can be problematic since
> >introduces a "hidden" dependency.
> 
> How does that work?  The library doesn't link ibdiag_common.c, so I'm not sure
> what definition it picks up.  Maybe it defaults to undefined, assumed int...
> 
> To get things to build and run on Windows, I defined it as a static in the
> library.
> 


-- 
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
weiny2 at llnl.gov



More information about the general mailing list