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

RE: OpenLDAP 2.1.23 build fails

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of

> Hi,
> I'm trying to build OpenLDAP 2.1.23 on a NetBSD 1.6.1 i386 machine.
> I'd like OpenLDAP to use GSSAPI to authenticate. Kerberos (heimdal
> 0.4e) and Cyrus SASL (2.1.15, built with GSSAPI support) libraries
> are installed. But OpenLDAP doesn't build:
> $ ./configure --with-cyrus-sasl --with-spasswd [...]
> [...]
> $ make depend
> [...]
> $ make
> [...]
> cc -O2 -I/usr/pkg/include -Wl,-R/usr/pkg/lib -o apitest
> apitest.o  -L/usr/pkg/lib ./.libs/libldap.a
> /home/js/temp/openldap-2.1.23/libraries/liblber/.libs/liblber.
> a ../../libraries/liblber/.libs/liblber.a
> ../../libraries/liblutil/liblutil.a /usr/pkg/lib/libsasl2.a
> -lresolv -lssl -lcrypto
> /usr/pkg/lib/libsasl2.a(dlopen.o)(.data+0x8): undefined
> reference to `gssapiv2_server_plug_init'
> /usr/pkg/lib/libsasl2.a(dlopen.o)(.data+0x14): undefined
> reference to `gssapiv2_client_plug_init'
> *** Error code 1

The OpenLDAP Makefiles link everything statically by default. You can use the
dynamic libraries instead with "--enable-dynamic" when running configure.

Ordinarily the libtool script is supposed to take care of static
dependencies, assuming you installed the libsasl2.la file when you installed
your SASL libraries. Either your libsasl2.la file is missing, or it doesn't
contain a correct "dependency_libs" line. This is a SASL build/install
problem, not an OpenLDAP software problem.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support