Displaying 2 results from an estimated 2 matches for "lt_dlmutex_seterror_func".
2007 Jul 20
0
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
...the code above is necessarily wrong. If you get
an address back, there's no error (dlerror only reports and error when
dlsym returns 0). The DLERROR macro just calls dlerror. The
LT_DLMUTEX_SETERROR looks like this:
#define LT_DLMUTEX_SETERROR(errormsg) LT_STMT_START { \
if (lt_dlmutex_seterror_func) \
(*lt_dlmutex_seterror_func) (errormsg); \
else lt_dllast_error = (errormsg); } LT_STMT_END
So, its basically calling a function to report the error or saving the
error. Presumably the user was supposed to set up the
lt_dlmutext_set...
2007 Jul 20
2
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
Hi Reid,
> > if ((err = dlerror())) {
> > error("earlier undetected dlerror: %s\n", err);
> > }
> > p = dlsym(handle, sym);
> > if ((err = dlerror())) {
> > error("dlsym failed: %s\n", err);
> > }
>
> No, you're not missing anything. The correct way to check for errors
> is with