Browse Source

Add debugging message upon libltdl dlopen() failure

This greatly simplifies debugging TDE dynamically loaded plugins!


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1261212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
tags/v3.5.13^0
tpearson 8 years ago
parent
commit
6d6796c294
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      ltdl.c

+ 4
- 0
ltdl.c View File

@@ -616,6 +616,10 @@ sys_dl_open (loader_data, filename)

if (!module)
{
char *error;
if ((error = dlerror()) != NULL) {
printf ("The Trinity ltdl loader was unable to dlopen() the shared library '%s' : '%s'\n\r", filename, error);
}
MUTEX_SETERROR (DLERROR (CANNOT_OPEN));
}



Loading…
Cancel
Save