Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 00262B5DBC8 for ; Sat, 2 Jul 2011 21:46:34 -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 60840-01 for ; Sun, 3 Jul 2011 00:46:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.pooserville.com (mail.pooserville.com [69.26.223.253]) by mail.postgresql.org (Postfix) with ESMTP id 53321B5D80A for ; Sat, 2 Jul 2011 21:46:28 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=mail.pooserville.com) by smtp.pooserville.com with esmtp (Exim 4.72) (envelope-from ) id LNQFHG-00160H-FJ; Sat, 02 Jul 2011 19:46:28 -0500 Received: from [69.26.223.2] (account dave-sa@pooserville.com HELO [192.168.67.90]) by mail.pooserville.com (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 965553; Sat, 02 Jul 2011 19:46:27 -0500 User-Agent: Microsoft-MacOutlook/14.12.0.110505 Date: Sat, 02 Jul 2011 19:46:25 -0500 Subject: Re: Help compiling --with-ldap on Solaris 11 Express? From: Dave Pooser To: Tom Lane , Message-ID: Thread-Topic: [ADMIN] Help compiling --with-ldap on Solaris 11 Express? In-Reply-To: <23461.1309652192@sss.pgh.pa.us> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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/14 X-Sequence-Number: 37793 On 7/2/11 7:16 PM, "Tom Lane" wrote: >> 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. > >The Oracle documentation avers that "-lldap" ought to be sufficient; >see for example ldap_simple_bind page in >http://download.oracle.com/docs/cd/E19963-01/pdf/821-1466.pdf >and even without that evidence it's hard to believe that they'd expect >calling applications to hardwire a library version number into their >build scripts. They don't; they cheat and symlink: root@testdb:/home/locadmin/postgresql-9.0.4# ls -l /usr/lib/libldap.so lrwxrwxrwx 1 root root 12 Jul 2 14:48 /usr/lib/libldap.so -> libldap.so.5 But there's no such libldap_r.so symlink created by default. >So I'm pretty sure that there *should* be a libldap_r.so someplace. >You could possibly try symlinking that to the version-numbered library. Yep, and I did that to get past the configure problems, which allows me to encounter a whole new problem in make :^) >If all else fails you could --disable-thread-safety. Is that safe to do on a server with a few dozen concurrent users? -- 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