[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldapsearch problem on HP-UX 11.0 with db2
Good morning!
I've been able to run all tests on AIX 4.2.1 running openldap 1.2.4 with
Berkeley DB 2.7.5.
To achieve this, you'll either have to apply small changes to thr_posix.c
(I've posted them here before) and use cc_r to build slapd or you'll have
to disable multi-threading.
Here are the configuration options I use:
export CC=/usr/bin/cc_r
export LD=/usr/bin/ld
export CPPFLAGS=-I/<some_directory>/BerkeleyDB/include
export LDFLAGS=-L/<some_directory>/BerkeleyDB/lib
./configure \
--prefix=<my_destination> \
--with-subdir=no \
--with-ldbm-api=db2 \
--with-threads=yes \
--enable-debug=yes
make prefix=<my_destination>
If you want to use multi-threads, be sure you compile Berkeley DB2 with
cc_r also (this forces "-D_THREAD_SAFE" amongst others).
Regards,
Frederic Poels.
At 20:25 16/07/99 GMT, you wrote:
>Kurt,
>>Are using Berkeley DB 2.7.5 with OpenLDAP 1.2.3 or better. If not,
>>upgrade and try again.
>
>i downloaded OpenLdap 1.2.4 this morning and tried again with Berkeley Db
>2.7.5, same result. AIX has the exact same problem. All test failed except
>for test 2 and 7!
>
>Taken from the test-db/master.log of test 1:
>
>slapd starting
>do_bind
>do_bind: version 2 dn () method 128
>send_ldap_result 0::
>do_search
>SRCH "O=UNIVERSITY OF MICHIGAN,C=US" 2 0 0 0 0
> filter: (objectclass=*)
> attrs:
>=> ldbm_back_search
>using base "O=UNIVERSITY OF MICHIGAN,C=US"
>subtree_candidates: base: "O=UNIVERSITY OF MICHIGAN,C=US" lookupbase
>dn2entry_r: dn: "O=UNIVERSITY OF MICHIGAN,C=US"
>=> dn2id( "O=UNIVERSITY OF MICHIGAN,C=US" )
>=> ldbm_cache_open( "./test-db/dn2id.dbb", 7, 600 )
><= ldbm_cache_open NULL "./test-db/dn2id.dbb" errno 9 reason "Bad file
>number")
><= dn2id could not open dn2id.dbb
>send_ldap_result 32::
>
>
>
>>
>>You might also can the list archives HP-UX specific questions and answers.
>>
>
>similar problems posted but no answers. I'm about to throw in the towels
>and give up on HP and AIX. I have no such problem on Solaris and IRIX. Has
>any one else succesfully get all the tests to pass on HP and AIX?
>
>Thank you for any input/suggestion.
>-ML
>
>
>_______________________________________________________________
>Get Free Email and Do More On The Web. Visit http://www.msn.com
>
>