Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 13993B5DC14 for ; Sat, 2 Jul 2011 21:59:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 75862-01 for ; Sun, 3 Jul 2011 00:58:55 +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 525D3B5DC0F for ; Sat, 2 Jul 2011 21:58:55 -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 p630wIE2024216; Sat, 2 Jul 2011 20:58:18 -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 "Sat, 02 Jul 2011 19:46:25 -0500" Date: Sat, 02 Jul 2011 20:58:18 -0400 Message-ID: <24215.1309654698@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/15 X-Sequence-Number: 37794 Dave Pooser writes: > On 7/2/11 7:16 PM, "Tom Lane" wrote: >> 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 That's not a cheat; that's exactly the way everybody else does it. That's how you get from a non-versioned library "-l" switch in a makefile to a version-numbered reference in the resulting executable. (The linker is supposed to dereference the symlink at link time.) > But there's no such libldap_r.so symlink created by default. Then you've got a broken package. Make the symlink by hand, and file a bug report with Oracle. >> If all else fails you could --disable-thread-safety. > Is that safe to do on a server with a few dozen concurrent users? The server doesn't care about this. It's only an issue for putting libpq into multithreaded application programs. regards, tom lane