From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: Help compiling --with-ldap on Solaris 11 Express?
Date: Fri, 1 Jul 2011 17:21:52 +0300
Message-ID: <201107011721.52341.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <CA2A11F1.4B5C4%dave@pooserville.com>
References: <CA2A11F1.4B5C4%dave@pooserville.com>
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?
You might change the --with-libs or --with-include part to match wherever your 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.
Στις Friday 01 July 2011 10:23:53 ο/η Dave Pooser έγραψε:
> 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.
>
> More detailed version:
>
> 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=/usr/lib \
> --with-includes=/usr/include/openldap
>
>
> Configure failed with an error
> "checking for ldap_simple_bind in -lldap_r... no
> configure: error: library 'ldap_r' is required for LDAP"
>
> 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
>
> So I tried setting LDFLAGS in the configure and make commands:
>
> LDFLAGS="-lldap_r" ./configure
> LDFLAGS="-lldap_r" gmake
>
> 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 process
> 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
>
> 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.
>
> --
> 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
>
>
>
--
Achilleas Mantzios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: Help compiling --with-ldap on Solaris 11 Express?
In-Reply-To: <201107011721.52341.achill@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox