Olivier PRENANT wrote: 

> When I swithed to the newest version og pgbuildfarm, I noticed that
> --with-ldap (now by defaut) didn't work on UnixWare.
> 
> This is because, on Unixware, ldap needs lber and resolv.

Is libldap a static library on that system?

Or do shared libraries on Unixware generally 'not remember'
the libraries they were linked against (this would be strange).

Or was libldap not linked against liblber and libresolv?

Tom Lane suggested to change configure.in like this:

>       AC_CHECK_LIB(ldap_r, ldap_simple_bind, [$EXTRA_LDAP_LIBS],
>                  [AC_MSG_ERROR([library 'ldap_r' is required for
LDAP])],
>                  [$PTHREAD_LIBS])

Shouldn't that be

      AC_CHECK_LIB(ldap_r, ldap_simple_bind, [],
                   [AC_MSG_ERROR([library 'ldap_r' is required for
LDAP])],
                   [$PTHREAD_LIBS $EXTRA_LDAP_LIBS])

Yours,
Laurenz Albe

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to