From: Luke Howard Date: Thu, 28 Jul 2005 08:35:28 +0000 (+0000) Subject: Add some debugging for failed plugin loads X-Git-Tag: OPENLDAP_AC_BP~171 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53ad7ffbff13f35718c15957cc1425ab6553adb9;p=openldap Add some debugging for failed plugin loads --- 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; }