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

Re: Install Make Test Issue



Right.

If I don't clear out the data dir and the schema file I do get the proper system error as noted by Kurt.

But the data dir appears to be a loop...

lrwxrwxrwx   1 root     other          6 Aug 19 10:23 data -> ./data

... back to itself which is seems to be what it is barking at. As seen here:

Running slapadd to build slapd database...
./data/test.ldif: Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
slapadd failed (1)!


I can't even cd into the /openldap-2.0.23/tests/data directory without getting the MAXSYMLINKS issue.

I have compiled and tested openldap-2.0.21 on this same system without an issue.

What am I missing?

Lauri-

At 10:19 AM 8/19/2002 -0700, you wrote:
At 07:31 AM 2002-08-19, Lauri Bettencourt wrote:
>Hello:
>
>I have /usr/bin/ln & /usr/xpg4/bin/ln which are part of the Solaris 8 install. I modified the Makefile in /openldap-2.0.23/tests to call /usr/xpg4/bin/ln and I got the same results during the make test.
>
>It appears to me that there is a loop created by the Makefile in /openldap-2.0.23/tests which causes the issue.
>
>from Makefile in /openldap-2.0.23/tests:
>
>srcdir = .
>
>@-$(LN_S) $(srcdir)/data .


Since there is a data directory in ".", this ln(1) command
should fail.  For example, on my system:
   ln: ./data: File exists
   *** Error code 1 (ignored)


>It looks to me like this is causing a loop which ends in the MAXSYMLINKS error from the OS. If the source directory is the current directory and we create the link to be in the current directory....
>
>Maybe I am missing something???
>
>Thanks,
>
>Lauri-
>
>
>At 12:22 PM 8/17/2002 -0700, Kurt D. Zeilenga wrote:
>>You likely have an odd version of ln(1) in your path...
>>
>>At 11:31 AM 2002-08-16, Lauri Bettencourt wrote:
>>>Hello:
>>>
>>>I have a Solaris 8 system I am trying to install openldap-2.0.23. There have been a few bumps in the road here but I can't seem to get past one specific point in the testing portion of the install as noted below. I have reviewed the defines.sh script located in /openldap-2.0.23/tests/scripts and it points to the /openldap-2.0.23/tests/data file for information. Base on an ls of that directory the data file appears to be a continual loop as noted below. If this isn't the case any information you can provide will be greatly appreciated.
>>>
>>>
>>>
>>>cd tests; make test
>>>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 389...
>>>Using ldapsearch to retrieve all the entries...
>>>./scripts/test000-rootdse: kill: no such process
>>>>>>>> Test succeeded
>>>>>>>> ./scripts/test000-rootdse completed OK.
>>>>>>>> waiting 10 seconds for things to exit
>>>
>>>>>>>> Starting test001-slapadd ...
>>>running defines.sh . ldbm
>>>Datadir is ./data
>>>Cleaning up in ./test-db...
>>>Running slapadd to build slapd database...
>>>./data/test.ldif: Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
>>>slapadd failed (1)!
>>>>>>>> ./scripts/test001-slapadd failed (exit 1)
>>>*** Error code 1
>>>make: Fatal error: Command failed for target `test-ldbm'
>>>Current working directory /usr/local/src/openldap-2.0.23/tests
>>>*** Error code 1
>>>make: Fatal error: Command failed for target `test'
>>>
>>>pooh:/usr/local/src/openldap-2.0.23/tests# ls -al
>>>total 38
>>>drwxr-xr-x 6 2000 2000 512 Aug 16 14:29 .
>>>drwxr-xr-x 10 2000 2000 1024 Aug 16 14:18 ..
>>>-rw-r--r-- 1 root other 7809 Aug 16 14:18 Makefile
>>>-rw-r--r-- 1 2000 2000 1342 Jan 4 2002 Makefile.in
>>>-rw-r--r-- 1 2000 2000 410 Jun 8 2001 README
>>>lrwxrwxrwx 1 root other 6 Aug 16 14:29 data -> ./data
>>>drwxr-xr-x 3 2000 2000 512 Aug 16 14:28 progs
>>>lrwxrwxrwx 1 root other 23 Aug 16 14:29 schema -> ../servers/slapd/schema
>>>drwxr-xr-x 2 2000 2000 512 Feb 11 2002 scripts
>>>drwxr-xr-x 2 root other 512 Aug 16 14:29 test-db
>>>drwxr-xr-x 2 root other 512 Aug 2 14:42 test-repl
>>>
>>>Thanks,
>>>
>>>Lauri-
>>>
>>>~~~~~~~~~~~~~~~
>>>Lauri Bettencourt
>>>WorldNET
>>>Unix System Admin
>>>lbetten@wn.net
>>>~~~~~~~~~~~~~~~
>
>~~~~~~~~~~~~~~~
>Lauri Bettencourt
>WorldNET
>Unix System Admin
>lbetten@wn.net
>~~~~~~~~~~~~~~~
>

~~~~~~~~~~~~~~~ Lauri Bettencourt WorldNET Unix System Admin lbetten@wn.net ~~~~~~~~~~~~~~~