Commit 389dcfad authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Print dynamic library error message if applicable

parent 4eb5c516
......@@ -89,7 +89,8 @@ static void *getsym (const char *name)
void *sym = dlsym (RTLD_NEXT, name);
if (sym == NULL)
{
fprintf (stderr, "Cannot resolve symbol %s!\n", name);
fprintf (stderr, "Cannot resolve symbol %s: %s\n", name,
dlerror ());
abort ();
}
return sym;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment