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

SLAPI does not work properly on AIX (ITS#3272)



Full_Name: Luke Howard
Version: 2.2.15
OS: AIX 5.2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.13.32.92)


Slapd linking against libslapi.a causes it to behave unpredictably on AIX. It
needs to link against the dynamic library (the same one that plugins link
against).

Really, slapd should respect --enable-dynamic if slapd was so built. It just so
happens that this appears to be necessary on AIX (note that I'm building
everything -brtl, which means that the runtime linker is used rather than
compile time linking against shared libraries).

I needed a patch like:

@@ -2351,8 +2354,8 @@
        fi
        AC_CHECK_LIB(ltdl, lt_dlinit, [
                SLAPI_LIBS=-lltdl
-               LIBSLAPI=libslapi.a
-               LIBSLAPITOOLS=../libslapi.a
+               LIBSLAPI=slapi/libslapi.la
+               LIBSLAPITOOLS=../slapi/libslapi.la
                AC_DEFINE(HAVE_LIBLTDL,1,[define if you have libtool -ltdl])
        ],[AC_MSG_ERROR([could not locate libtool -lltdl])])

The copying of libslapi.a in servers/slapd/Makefile can probably be ditched.