Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CEC2AB5DBC1 for ; Sun, 3 Jul 2011 12:34:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 90763-02 for ; Sun, 3 Jul 2011 15:34:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6496AB5D80A for ; Sun, 3 Jul 2011 12:34:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p63FXu4d028240; Sun, 3 Jul 2011 11:33:56 -0400 (EDT) To: Dave Pooser cc: pgsql-admin@postgresql.org Subject: Re: Help compiling --with-ldap on Solaris 11 Express? In-reply-to: References: Comments: In-reply-to Dave Pooser message dated "Sun, 03 Jul 2011 04:23:34 -0500" Date: Sun, 03 Jul 2011 11:33:56 -0400 Message-ID: <28239.1309707236@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/19 X-Sequence-Number: 37798 Dave Pooser writes: > On 7/2/11 8:50 PM, "Tom Lane" wrote: >> 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. > That worked perfectly-- thanks so much for your help! > Do you think this is a Solaris bug, or a Postgres bug, or is this a "works > as designed but sysadmin is an idiot" situation? If it's the first, I > might as well file a bug with Oracle, not that I expect them to be in any > hurry to improve compatibility with a rival DB. Hard to tell. If we'd seen more cases like this, I'd be wondering how to teach configure to look to see which version of libldap was in use by other libraries the postmaster needs. But this is the first such report that I can recall, so I'm inclined to think it might be a misconfigured library. (On my Linux box, for example, a fully-featured postmaster links only to libldap not libldap_r, which is the behavior we were expecting.) Did you identify what it was that was linked to libldap_r? regards, tom lane