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

Re: Writing a slapi plugin

>	I'm writing a simple slapi plugin, but i'm having trouble at the first 
>hurdle. I have a simple module which currently only has an init function. I 
>couldn't find an indication of how this should be built. I find that the 
>module won't load when linked against libslapi, but loads ok when not. Surely 
>I'll need to link against libslapi when I add some meat to the bones.

You should be able to link against libslapi as long as you allow symbols
to remain undefined.

What about

gcc -shared -o libtestplug.so.1.0 testplug.o -lslapi -lldap_r -llber -lsasl2 -lsasl -lcrypto

-- Luke