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

compile Error & unix streams instead of tcp (ITS#1347)

Full_Name: Raghu
Version: openldap-2.0.11 stable
OS: Red Hat 6.2 linux (kernel  2.2.14-5.0)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

I got 2 errors and am not sure if they are related to each other.
Thats the reason I am including both here.

Followed all the instructions from Admin book.
Downloaded & Installed all the required sofware
- OpenSSL(openssl-0.9.6b),
- SASL(cyrus-sasl-1.5.24), 
- BerkeleyDB(db-3.3.11).

I made sure that all the configures for the 
above installations pick the latest paths/versions.

LDAP Configure went fine without any errors

configure ...snip <<
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB thread support... yes
>> snip

Here is the compilation error during make

make ...snip <<
ldbm.c: In function `ldbm_open':
ldbm.c:249: structure has no member named `set_malloc'
make[2]: *** [ldbm.o] Error 1
make[2]: Leaving directory
make[1]: *** [all-common] Error 1
>> snip

This error can be regenerated if BerkeleyDB(db-3.3.11) is seen during
So I commented that line, when everything went fine.

When ./slapd is started as user, it opens unix stream 389 and not tcp port 389
But when started as root, it opens tcp port 389.

My questions are
1. Why should slapd ever open unix stream. How to avoid this?
2. Is my commenting in the code causing this ?

Could you please let me know what went wrong here.