(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) Trash : (Answer) make test fails with Error 1
I have been trying to install and configure OpenLDAP 2.0.23 on a HP box running HP-UX 11.11, I have Berkley DB installed on the box and everything seems to go without a problem until I come to run the tests, using make test, the following error is produced
bash-2.04$ make test
        cd tests; make test
ln: .//data exists *** Error exit code 1 (ignored) ln: .//schema exists *** Error exit code 1 (ignored) Initiating LDAP tests for LDBM... >>>>> Executing all LDAP tests... >>>>> Test Directory: . >>>>> Backend: ldbm >>>>> Starting test000-rootdse ... running defines.sh . ldbm Datadir is ./data Cleaning up in ./test-db... Starting slapd on TCP/IP port 9050... Using ldapsearch to retrieve all the entries... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ldap_bind: Can't contact LDAP server >>>>> Test failed >>>>> ./scripts/test000-rootdse failed (exit 1) *** Error exit code 1
Stop. *** Error exit code 1
I have already solved one problem which was the port being used in the original test script was already in use, so I have changed this to 9050, but there seems to be no other sign of error, the master.log has the following contents
(#) $OpenLDAP: slapd 2.0.23-Release (Tue Apr 9 11:00:32 BST 2002) $
        griffith@aphelion:/home/griffith/LdapServer/openldap-2.0.23/servers/slap
d daemon_init: ldap://localhost:9050/ daemon_init: listen on ldap://localhost:9050/ daemon_init: 1 listeners to open... ldap_url_parse_ext(ldap://localhost:9050/) daemon: initialized ldap://localhost:9050/ daemon_init: 1 listeners opened slapd init: initiated server. slapd startup: initiated. slapd starting slap_sig_shutdown: signal 1 daemon: shutdown requested and initiated. slapd shutdown: waiting for 0 threads to terminate slapd shutdown: initiated ldbm backend syncing ldbm backend done syncing ====> cache_release_all slapd shutdown: freeing system resources. slapd stopped. ~ ~ "master.log" 20 lines, 727 characters
This to me looks like the slapd process starts, which it does as I test with ps, and it shutdown when the script has tried 5 times.
So I am now unsure where the problem lies, if anyone can shine a light on this I would be very grateful.
Cheers,
Matt
griffithsm@logica.com
My resolution was to add "-lbind" as the last option for ./configure. I recompiled the code. Ran "make test" which went through it's paces without any problems!
                                                                Claude

imci@mindspring.com
[Append to This Answer]
This document is: http://www.openldap.org/faq/index.cgi?file=686
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org