summaryrefslogtreecommitdiffstats
path: root/ltdl.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-28 23:54:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-28 23:54:47 +0000
commit6d6796c294ca6e9b7f83c295217817c4bf486031 (patch)
treef27184a6a2005dad1788bc0ab29f09ca7613a5f8 /ltdl.c
parentd298ac04a36042fd1b1ae3ae635cd5afcd5935b2 (diff)
downloadlibltdl-6d6796c294ca6e9b7f83c295217817c4bf486031.tar.gz
libltdl-6d6796c294ca6e9b7f83c295217817c4bf486031.zip
Add debugging message upon libltdl dlopen() failurev3.5.13.1v3.5.13
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
Diffstat (limited to 'ltdl.c')
-rw-r--r--ltdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltdl.c b/ltdl.c
index 4342bf9..d105ce5 100644
--- a/ltdl.c
+++ b/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));
}