diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-28 23:54:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-28 23:54:47 +0000 |
commit | 950edb942ccbb12393196ec73afebb37841825f3 (patch) | |
tree | 0a4360b221643a2136091373d5b6dd9ab07dbc68 | |
parent | 378e17d1a37e7e4379b809a6ed7b7b3c76f3d5d3 (diff) | |
download | tdelibs-950edb942ccbb12393196ec73afebb37841825f3.tar.gz tdelibs-950edb942ccbb12393196ec73afebb37841825f3.zip |
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
-rw-r--r-- | libltdl/ltdl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 4342bf967..d105ce5b0 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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)); } |