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

Solaris 2.6 horrors



Hello,

    I've been struggling for the last few days to bring up my LDAP server on
Solaris 2.6. I followed the FAQ very closely in the configure & build
process, but keeps getting the same error: slapd getting a Segmentation
fault on a simple ldapadd;

This is my setup:
A)
* Solaris 2.6 Sparc 10, with the latest cluster patches applied from
Sunsolve;
* gcc 2.95.1
* OpenLDAP-stable
* Berkeley DB2 2.7.7

B)
I built the Berkeley DB by
db-2.7.7> cd build_unix
db-2.7.7> env CC=gcc ../dist/configure
db-2.7.7> make
db-2.7.7> make install

C)
Now I set up my env as:
CC=gcc
CPPFLAGS=-I/usr/local/BerkeleyDB/include
LDFLAGS=-L/usr/local/BerkeleyDB/lib
LIBS=-ldb
ac_cv_func_pthread_create=no
ol_cv_kthread_flag=no
ol_cv_pthread_flag=no
ol_cv_pthreads_flag=no
ol_cv_thread_flag=no

D)
Now I built openLDAP by:

ldap> configure --with-ldbm-api=db2
ldap> make depend
ldap> make
ldap> make install

All the tests in the test suite passed.

E)
Now I set up my data and conf files as:
myconf.cof
------------
database ldbm
suffix "dc=boxhill, dc=com"
rootdn "cn=Manager, dc=boxhill, dc=com"
rootpw secret

data.ldif
---------
dn: dc=boxhill, dc=com
dc: boxhill
o: My Company
objectclass: organization
objectclass: dcObject

dn: cn=Manager, dc=boxhill, dc=com
cn: Manager
sn: Manager
objectclass: person
F)
As root, I started slpad by;
/usr/local/libexec/slapd -d 200 -f myconf.cof

As user sabu (non-root), I started a ldapadd by:
ldapadd -D "cn=Manager, dc=boxhill, dc=com" -W <data.ldif
Enter the password: secret

In a short while, slapd dies with seg. fault, at next_id_read routine.

I have tried rebuilding ldap with --without-threads, but still the same
issue. Tried gnu regex; Same old fate.Only thing I have'nt tried is rebuild
gcc with --gas and --gld.

I've run out of ideas. Please help.

Thanks
Joe Sabu