From 53ad7ffbff13f35718c15957cc1425ab6553adb9 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 28 Jul 2005 08:35:28 +0000 Subject: [PATCH] Add some debugging for failed plugin loads --- servers/slapd/slapi/plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/slapi/plugin.c b/servers/slapd/slapi/plugin.c index 93809179d5..b0306abd94 100644 --- a/servers/slapd/slapi/plugin.c +++ b/servers/slapd/slapi/plugin.c @@ -552,11 +552,15 @@ slapi_int_load_plugin( /* load in the module */ *pLdHandle = lt_dlopen( path ); if ( *pLdHandle == NULL ) { + fprintf( stderr, "failed to load plugin %s: %s\n", + path, lt_dlerror() ); return LDAP_LOCAL_ERROR; } fpInitFunc = (SLAPI_FUNC)lt_dlsym( *pLdHandle, initfunc ); if ( fpInitFunc == NULL ) { + fprintf( stderr, "failed to find symbol %s in plugin %s: %s\n", + initfunc, path, lt_dlerror() ); lt_dlclose( *pLdHandle ); return LDAP_LOCAL_ERROR; } -- 2.39.5