Hi list,
I wish to use the openldap client tools in an embedded environment where I cross compile openldap package against uclibc. These are tools such as ldapsearch, ldapdelete.
Because I don't need any of the server software i'm using a configure line like this:
./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --prefix=/ \ --with-tls \ --disable-slapd \ --disable-slurpd \ --without-yielding-select \ --without-rewrite \ --without-overlays \ --with-gnu-ld
make depend make CC=$(TARGET_CC) -C $(OPENLDAP_DIR)
Assume that the GNU_ type variables have reasonable values. The complilation proceeds normally, util the linking phase.
At this point libtool fails with:
/bin/sh ../..//libtool --mode=link /home/imageuser/buildroot/buildroot/trunk/build_i686/staging_dir/bin/i686-linux-uclibc-gcc -static -Os -pipe -o rewrite rewrite.o parse.o librewrite.a ../../libraries/liblutil/liblutil.a ../../libraries/libldap_r/libldap_r.la ../../libraries/liblber/liblber.la -lssl -lcrypto -pthread /home/imageuser/buildroot/buildroot/trunk/build_i686/staging_dir/bin/i686-linux-uclibc-gcc -Os -pipe -o rewrite rewrite.o parse.o -pthread librewrite.a ../../libraries/liblutil/liblutil.a ../../libraries/libldap_r/.libs/libldap_r.a /home/imageuser/buildroot/buildroot/trunk/build_i686/openldap-2.3.28/libraries/liblber/.libs/liblber.a ../../libraries/liblber/.libs/liblber.a -lssl -lcrypto -pthread ../../libraries/libldap_r/.libs/libldap_r.a(tls.o): In function `ldap_pvt_tls_check_hostname': tls.c:(.text+0x9ca): undefined reference to `lutil_memcmp' collect2: ld returned 1 exit status
Can anyone throw any light on this problem?
Rob
openldap-software@openldap.org