[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] Unable to load auth plugin in Ubuntu
|
Hi Sunny,
It sounds like a symbol isn't being resolved somewhere. Could you make
the modification below (which prints the dlerror error message) and
try again?
Cheers,
Roger
diff -r 54599ddfb603 src/security.c
--- a/src/security.c Wed Sep 10 16:10:53 2014 +0100
+++ b/src/security.c Mon Sep 15 12:28:48 2014 +0100
@@ -56,7 +56,7 @@
lib = LIB_LOAD(db->config->auth_plugin);
if(!lib){
_mosquitto_log_printf(NULL, MOSQ_LOG_ERR,
- "Error: Unable to load auth
plugin \"%s\".", db->config->auth_plugin);
+ "Error: Unable to load auth
plugin \"%s\" (%s).", db->config->auth_plugin, dlerror());
return 1;
}
On Mon, Sep 15, 2014 at 9:59 AM, Sunny Leung <sunny.leung@xxxxxxxxxxxxx> wrote:
> Hi,
>
> I have written a test auth plugin which uses the libcurl library to access
> remote server via https. The plugin (shared library) run fine on my Mac but
> having problem when running in a Ubuntu 14 (x64) box.
>
> Mosquitto keeps saying, Unable to load auth plugin.
>
> When I comment out the use of libcurl API, Mosquitto can load the auth
> plugin with no problem. I know it is not purely a Mosquitto related problem,
> but will I be able to get Mosquitto to output more information as to why it
> unable to the auth plugin when it uses libcurl in Ubuntu?
>
> I have compile the auth plugin as shared library (as instructed) with
> '-lcurl' and copy the library to '/usr/lib/x86_64-linux-gnu'
>
> Also executed 'sudo ldconfig' to update the shared library cache.
>
>
> Thanks.
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev