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

Re: problem testing LDAP



Ok, I redownloaded the tarball and reinstalled it. The data directory shows up and looks like it should, but the first test is still failing. This is the test output:

[root@mac1 tests]# make
ln: ./data: cannot overwrite directory
make: [all-local] Error 1 (ignored)
Initiating LDAP tests...
 Executing all LDAP tests...
 Test Directory: .
 Backend: ldbm
 Starting test001-ldif2ldbm ...
running defines.sh . ldbm
Datadir is ./data
Cleaning up in ./test-db...
Running ldif2ldbm to build slapd database...
ldif2ldbm failed!
./scripts/test001-ldif2ldbm failed (exit 1)
make: *** [all-local] Error 1

Now looking at the ./scripts/test001-ldif2ldbm script leads me to believe that this is where it's failing (see below), but not being much of a programmer, I'm not sure why or what it means when this line fails.

echo "Running ldif2ldbm to build slapd database..."
$LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RC=$?
if test $RC != 0 ; then
        echo "ldif2ldbm failed!"
        exit $RC
fi


Thanks!

Andrew


The data directory should contain something like:

-rw-r--r--   1 kunkee   system      9263 Aug 20  1998 acl.out.master
-rw-r--r--   1 kunkee   system     12555 Jan 19  1999 modify.out.master
-rw-r--r--   1 kunkee   system     13589 May 18  1999 modrdn.out.master
-rw-r--r--   1 kunkee   system       880 May 25  1999 modrdn.out.master-0
-rw-r--r--   1 kunkee   system       863 May 25  1999 modrdn.out.master-1
-rw-r--r--   1 kunkee   system       856 May 25  1999 modrdn.out.master-2
-rw-r--r--   1 kunkee   system     13151 Jan 19  1999 search.out.master
-rw-r--r--   1 kunkee   system      1214 Nov  1  1999 slapd-acl.conf
-rw-r--r--   1 kunkee   system       575 Jan 23  1999 slapd-master.conf
-rw-r--r--   1 kunkee   system       739 Jan 23  1999 slapd-repl-master.conf
-rw-r--r--   1 kunkee   system       654 Jan 23  1999 slapd-repl-slave.conf
-rw-r--r--   1 kunkee   system       688 Aug  8  1998 slapd.at.conf
-rw-r--r--   1 kunkee   system     13226 Dec 28  1998 slapd.oc.conf
-rw-r--r--   1 kunkee   system     13904 Jan 19  1999 test-ordered.ldif
-rw-r--r--   1 kunkee   system     13904 Jan 19  1999 test.ldif

Your timestamps will be different.  If you are using cvs, remove
the directory and do a "cvs update -d" within the tests directory.
If you got a tarball, re-extract tests/data from it.  If the tarball
is broken, (test with 'tar tzf file.tar.gz | grep tests/data'),
refetch it.

Randy

 Hello,

 I'm in the process of setting up OpenLDAP on a PowerPC machine
 running yellowdog linux, and have run into a problem.

 First installed version 2.7.7 of Sleepycat Software's Berkeley DB.
 Then I went through ./configure, make depend and make.  All seems to
 be going ok, but when I cd into the tests directory and run make, I
 get the following error:


[root@mac1 tests]# make Initiating LDAP tests... >>>>> Executing all LDAP tests... >>>>> Test Directory: . >>>>> Backend: ldbm >>>>> Starting test001-ldif2ldbm ... running defines.sh . ldbm Datadir is ./data Cleaning up in ./test-db... Running ldif2ldbm to build slapd database... ./data/test.ldif: Too many levels of symbolic links ldif2ldbm failed! >>>>> ./scripts/test001-ldif2ldbm failed (exit 1) make: *** [all-local] Error 1


Looking at the data directory within the tests directory shows that it's nothing more than a link back to itself (?)


Any ideas?


Andrew -- Andrew Miles | Systems Administrator

 IN2 | 205 Hudson Street 7th Floor NYC 10013
 Phone 646.613.2027 | Fax 646.613.0648 | Pager 800.776.0376




-- Andrew Miles | Systems Administrator

IN2 | 205 Hudson Street 7th Floor NYC 10013
Phone 646.613.2027 | Fax 646.613.0648 | Pager 800.776.0376