Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 66EB3B5DBC1 for ; Fri, 1 Jul 2011 11:22:01 -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 54262-04 for ; Fri, 1 Jul 2011 14:21:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id 20D09B5D803 for ; Fri, 1 Jul 2011 11:21:53 -0300 (ADT) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p61ELqFm065426 for ; Fri, 1 Jul 2011 17:21:52 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p61ELqZO065425 for pgsql-admin@postgresql.org; Fri, 1 Jul 2011 17:21:52 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-admin@postgresql.org Subject: Re: Help compiling --with-ldap on Solaris 11 Express? Date: Fri, 1 Jul 2011 17:21:52 +0300 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107011721.52341.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201107/9 X-Sequence-Number: 37788 Looking in openldap-2.4.10/libraries/liblber/lber-int.h:94 i see : #define LBER_VALID(ber) ((ber)->ber_valid=3D=3DLBER_VALID_BERELEMENT) the assertion fails for some reason. Could you make a proper reinstallation of the openldap related packages (op= enldap-client and possibly -devel), remove the manual symbolic link, and try to ./configure again? You might change the --with-libs or --with-include part to match wherever y= our ldap client installation is located. 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. Unfortunately i do not have a Solaris system to test. =CE=A3=CF=84=CE=B9=CF=82 Friday 01 July 2011 10:23:53 =CE=BF/=CE=B7 Dave Po= oser =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > TL; DR version: I'm trying to compile 9.0.4 on Solaris 11 Express and > having problems with LDAP support; I finally got it to compile and install > but when I try to authenticate via LDAP I get "Assertion failed: > LBER_VALID( ber ), file sasl.c, line 103, function ldap_sasl_bind" and it > kills the process. >=20 > More detailed version: >=20 > I started with a clean install of Solaris Express 11 on a VMWare ESXi VM, > single processor/2GB RAM. > I installed from packages gcc-3, library/openldap and > system/library/math/header-math. > I downloaded the source tarball, uncompressed it and tried to configure: > ./configure \ > --enable-nls \ > --with-python \ > --with-openssl \ > --with-libxml \ > --enable-thread-safety \ > --enable-dtrace \ > --with-ldap \ > --with-libs=3D/usr/lib \ > --with-includes=3D/usr/include/openldap >=20 >=20 > Configure failed with an error > "checking for ldap_simple_bind in -lldap_r... no > configure: error: library 'ldap_r' is required for LDAP" >=20 > It looked to me that it wasn't finding /usr/lib/libldap_r-2.4.so I added a > symlink pointing libldap_r.so to libldap_r-2.4.so -- after that configure > worked but make failed: > Undefined first referenced > symbol in file > ldap_start_tls_s libpq/auth.o >=20 > So I tried setting LDFLAGS in the configure and make commands: >=20 > LDFLAGS=3D"-lldap_r" ./configure > LDFLAGS=3D"-lldap_r" gmake >=20 > That worked okay, as did "gmake install" -- I could initdb successfully > and connect locally with psql. But when I try to connect using LDAP auth > it pukes: > Assertion failed: LBER_VALID( ber ), file sasl.c, line 103, function > ldap_sasl_bind > LOG: server process (PID 26751) was terminated by signal 6 > LOG: terminating any other active server processes > WARNING: terminating connection because of crash of another server proce= ss > DETAIL: The postmaster has commanded this server process to roll back the > current transaction and exit, because another server process exited > abnormally and possibly corrupted shared memory. > HINT: In a moment you should be able to reconnect to the database and > repeat your command. > LOG: all server processes terminated; reinitializing > LOG: database system was interrupted; last known up at 2011-07-01 > 01:54:39 CDT > LOG: database system was not properly shut down; automatic recovery in > progress > LOG: consistent recovery state reached at 0/2501DBB4 > LOG: record with zero length at 0/2501DBB4 > LOG: redo is not required > LOG: autovacuum launcher started > LOG: database system is ready to accept connections >=20 > Any pointers would be appreciated; I'm far from an expert on either > Solaris or PostgreSQL, so it's very possible that I'm making one or more > elementary mistakes. >=20 > --=20 > 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 >=20 >=20 >=20 =2D-=20 Achilleas Mantzios