pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Pooser <dave-pg@pooserville.com>
To: pgsql-admin@postgresql.org
Subject: Re: Help compiling --with-ldap on Solaris 11 Express?
Date: Sat, 02 Jul 2011 18:54:00 -0500
Message-ID: <CA3516AB.469F3%dave-sa@pooserville.com> (raw)
In-Reply-To: <201107011721.52341.achill@matrix.gatewaynet.com>

On 7/1/11 9:21 AM, "Achilleas Mantzios" <achill@matrix.gatewaynet.com>
wrote:

>Looking in openldap-2.4.10/libraries/liblber/lber-int.h:94 i see :
>#define LBER_VALID(ber) ((ber)->ber_valid==LBER_VALID_BERELEMENT)
>the assertion fails for some reason.
>
>Could you make a proper reinstallation of the openldap related packages
>(openldap-client and possibly -devel),
>remove the manual symbolic link, and try to ./configure again?

OK, this is Solaris so there isn't an openldap-client or openldap-devel;
there's only SUNWopenldap, which I installed.

>You might change the --with-libs or --with-include part to match wherever
>your ldap client installation is located.

OK.

>Also, for the moment, drop the rest of --with- arguments, until you have
>a working postgresql with ldap,
>and you'll go gradually from there.

Well, dropping the rest of --with- arguments leaves me with:

./configure \
--with-ldap \
--with-libs=/usr/lib/amd64 \
--with-libs=/usr/sfw/lib/amd64 \
--with-includes=/usr/include/openldap


Which just gives a config error:
checking for ldap_simple_bind in -lldap_r... no
configure: error: library 'ldap_r' is required for LDAP


>Unfortunately i do not have a Solaris system to test.

I'm pretty sure this is a Solaris-specific set of problems, starting with
the fact that instead of libldap_r.so it's got libldap_r-2.4.so and the
configure script can't sort that out even though nm shows that
ldap_r-2.4.so does in fact have the function it's griping about
(ldap_simple_bind) in both the 32-bit and 64-bit versions.
--
Dave Pooser
Cat-Herder-in-Chief, Pooserville.com
"...Life is not a journey to the grave with the intention of arriving
safely in one pretty and well-preserved piece, but to slide across the
finish line broadside, thoroughly used up, worn out, leaking oil, and
shouting GERONIMO!!!" -- Bill McKenna







view thread (12+ messages)  latest in thread

Message-ID: <CA3516AB.469F3%dave-sa@pooserville.com>
Permalink:  ../CA3516AB.469F3%25dave-sa@pooserville.com/
Also on:    postgresql.org/message-id/CA3516AB.469F3%dave-sa@pooserville.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: dave-pg@pooserville.com
  Subject: Re: Help compiling --with-ldap on Solaris 11 Express?
  In-Reply-To: <CA3516AB.469F3%dave-sa@pooserville.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox