Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 98712B5DBC6 for ; Sat, 2 Jul 2011 20:54:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 03396-02 for ; Sat, 2 Jul 2011 23:54:06 +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 628DEB5D80A for ; Sat, 2 Jul 2011 20:54:06 -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 LNQD24-0013KP-F4 for pgsql-admin@postgresql.org; Sat, 02 Jul 2011 18:54:04 -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 965542 for pgsql-admin@postgresql.org; Sat, 02 Jul 2011 18:54:04 -0500 User-Agent: Microsoft-MacOutlook/14.12.0.110505 Date: Sat, 02 Jul 2011 18:54:00 -0500 Subject: Re: Help compiling --with-ldap on Solaris 11 Express? From: Dave Pooser To: Message-ID: Thread-Topic: [ADMIN] Help compiling --with-ldap on Solaris 11 Express? In-Reply-To: <201107011721.52341.achill@matrix.gatewaynet.com> 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/12 X-Sequence-Number: 37791 On 7/1/11 9:21 AM, "Achilleas Mantzios" 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