[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problems with starting openldap



Hi,

On Friday 15 November 2002 22:01, Werner Schalk wrote:
> [...] when I try to
> start slapd I get the following error:
>
> server:/home/werner/ldap/openldap-2.1.8#
> /usr/local/openldap-2.18/libexec/slapd -4 -n ldap://127.0.0.1 -d -1 -f
> /usr/local/openldap-2.18/etc/openldap/slapd.conf
> @(#) $OpenLDAP: slapd 2.1.8 (Fre Nov 15 21:07:02 CET 2002) $
>         root@server:/home/werner/ldap/openldap-2.1.8/servers/slapd
> daemon_init: <null>
> daemon_init: listen on ldap:///
> daemon_init: 1 listeners to open...
> ldap_url_parse_ext(ldap:///)
> slap_get_listener_addresses: getaddrinfo ai_addr is NULL?
> slapd stopped.
> connections_destroy: nothing to destroy.

I had similar problems. With my system (Linux 2.4.x with glibc 2.2.2),
the reason were different implementations of the getaddrinfo() function
in 2 librararies (IIRC: libc and libbind).

I help myself by not letting configure search for getaddrinfo:
  ac_cv_lib_bind_res_query=no \
  ac_cv_lib_bind___res_query=no \
  ./configure  [ ....your paramters here ... ]

With that trick the problem has disappeared in all OpenLDAP versions
I used (ranging from 2.0.23 to 2.1.8).

Yours
Peter

-- 
Peter Marschall     |   eMail: peter.marschall@mayn.de
Scheffelstraße 15   |          peter.marschall@is-energy.de
97072 Würzburg      |   Tel:   0931/14721
PGP:  D7 FF 20 FE E6 6B 31 74  D1 10 88 E0 3C FE 28 35