From: RĂ©mi Denis-Courmont Date: Mon, 12 Apr 2010 16:22:30 +0000 (+0300) Subject: Print dynamic library error message if applicable X-Git-Tag: 1.1.0-pre1~13 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=389dcfadc1a417abe9f5d9a07ac7c7ad524562ea Print dynamic library error message if applicable --- diff --git a/bin/override.c b/bin/override.c index 2e8919925b..964bc21d87 100644 --- a/bin/override.c +++ b/bin/override.c @@ -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;