OpenLDAP编译和使用
- 下载源码:http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=summary点击snapshot
- 解压缩
- 执行configure
./configure --host=mipsel-linux --build=x86_64-redhat-linux --with-yielding_select=no --with-tls=auto
- make depend
- make
- 出现错误:/libraries/libldap_r/result.c:960: undefined reference to `lutil_memcmp'
- 解决方法:修改./include/ac/string.h
/*#ifdef NEED_MEMCMP_REPLACEMENT int (lutil_memcmp)(const void *b1, const void *b2, size_t len); #define memcmp lutil_memcmp #endif*/
- 解决方法:修改./include/ac/string.h
- 重复执行5~7