Re: unixware and --with-ldap - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: unixware and --with-ldap
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380BDBB3DA@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to unixware and --with-ldap  (ohp@pyrenet.fr)
Responses Re: unixware and --with-ldap
Re: unixware and --with-ldap
Re: unixware and --with-ldap
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: coalesce and aggregate functions
Next
From: Josh Berkus
Date:
Subject: Ottawa PGCon needs a program committee