[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: can't build ldapdb auxprop plugin in cyrus-sasl 2.1.20 source tree



it's me again. freebsd 5.3-release, cyrus-sasl-2.1.20, ldapdb.c from openldap-2.2.23 source tree

i still can't make it work. i fixed makefiles, putting everywhere "-lldap -llber", make a build and then i got another error (i've tried it with sample server and client programs in sample/ dir of cyrus-sasl):

Mar 29 22:28:53 lan lt-server: unable to dlopen /usr/local/lib/sasl2/libldapdb.so: /usr/local/lib/sasl2/libldapdb.so: Undefined symbol "ldapdb_auxprop_plug_init"
Mar 29 22:28:53 lan kernel: Mar 29 22:28:53 lan lt-server: unable to dlopen /usr/local/lib/sasl2/libldapdb.so: /usr/local/lib/sasl2/libldapdb.so: Undefined symbol "ldapdb_auxprop_plug_init"
Mar 29 22:28:55 lan lt-client: unable to dlopen /usr/local/lib/sasl2/libldapdb.so: /usr/local/lib/sasl2/libldapdb.so: Undefined symbol "ldapdb_auxprop_plug_init"
Mar 29 22:28:55 lan kernel: Mar 29 22:28:55 lan lt-client: unable to dlopen /usr/local/lib/sasl2/lib
ldapdb.so: /usr/local/lib/sasl2/libldapdb.so: Undefined symbol "ldapdb_auxprop_plug_init"


then i browsed cvs repository on openldap.org and found that ldapdb.c will be removed because it should be in sasl source tree! that was very good news for me. i cvsup'ed cyrus-sasl, and today i've build cvs version of cyrus-sasl with ldapdb plugin. i think that now i'm crossing a line after which this message it not openldap-software@ issue anymore, but i'll proceed. building of cvs version is passed without an error - what a surprise. after installing libs i tried and now i have yet another error:

Mar 29 21:52:42 lan kernel: Mar 29 21:52:42 lan lt-server: auxpropfunc error invalid parameter supplied

Mar 29 21:52:42 lan lt-server: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb

all difference between these situations is that newer ldapdb plugin have "int ldapdb_auxprop_plug_init", while older plugin "static int ldapdb_auxprop_plug_init". if i put "int ldapdb_auxprop_plug_init" then i get

_sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb

and if i put "static int", i get

Undefined symbol "ldapdb_auxprop_plug_init"

am i cursed person?

--
your sweet isn't ready yet