pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Pooser <dave-pg@pooserville.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help compiling --with-ldap on Solaris 11 Express?
Date: Sat, 02 Jul 2011 21:50:49 -0400
Message-ID: <25175.1309657849@sss.pgh.pa.us> (raw)
In-Reply-To: <CA352657.46A54%dave-pg@pooserville.com>
References: <CA352657.46A54%dave-pg@pooserville.com>

Dave Pooser <dave-pg@pooserville.com> writes:
> It seems there's some magic incantation to REALLY bind that I'm just not
> seeing here. Any help gratefully accepted.

Well, I don't know anything about Solaris either, but this bit looks
suspicious:

> root@testdb:/home/locadmin/postgresql-9.0.4# ldd
> /usr/local/pgsql/bin/postgres
> ...
>         libldap_r-2.4.so.2 =>    /usr/lib/libldap_r-2.4.so.2
>         libldap.so.5 =>  /usr/lib/libldap.so.5
> ...

I gather from a bit of googling that the internal data structures are
different between libldap and libldap_r, which means you really really
don't want both versions getting bound into one executable.

Most likely what is happening is that one of the other libraries called
by the postmaster is pulling in libldap_r --- a bit of research with ldd
should confirm or deny that.  If so, you could probably fix things by
hacking LDAP_LIBS_BE in the configured src/Makefile.global to pull
in libldap_r not libldap.  If you've got different libraries calling both
versions, then some library recompilation is going to be needed :-(

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <25175.1309657849@sss.pgh.pa.us>
Permalink:  ../25175.1309657849@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25175.1309657849@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, dave-pg@pooserville.com
  Subject: Re: Help compiling --with-ldap on Solaris 11 Express?
  In-Reply-To: <25175.1309657849@sss.pgh.pa.us>

* 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