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

Re: openldap-stable fails tests on Solaris, segfaults.



No luck so far :-(

If I remove thread support with:

env CPPFLAGS="-I/usr/local/BerkeleyDB/include" \
LDFLAGS="-L/usr/local/BerkeleyDB/lib" ./configure --without-threads \
--with-ldbm-api=db2

as suggested by Kurt, the tests fail at exactly the same point.
Doesn this suggest that something other than thread problems is
the cause, or am I way off base?

If I try the -lthread option below, configure fails with:

configure: error: pthread.h and pthread_create are not compatible

Do I need an extra configure flags here to prevent this?

Trevor Porter wrote:
> 
> Hi Paul,
> 
> Try the following:
> 
> env CPPFLAGS="-I/usr/local/BerkeleyDB/include -D_REENTRANT" \
> env LDFLAGS="-L/usr/local/BerkeleyDB/lib" \
> env LIBS="-lthread"
> ./configure \
> --with-ldbm-api=db2
> 
> Using this config is the only way I've been able to get a stable server
> running under Solaris 2.6. I ran into stability problems when building with
> the Posix thread lib (the default), but using the Solaris thread lib has
> worked well so far. I'm also using db 2.7.5 instead of 2.7.7 since its the
> latest version supported by OpenLDAP. I doubt 2.7.7 is causing you problems
> however.
> 
> ...Trevor
> 
> > I am having some difficulty in building a working LDAP package on
> > Solaris 2.6. I hope someone can help.
> >
> > I am using GCC 2.95.1 on Solaris 2.6. The machine is a Sparc 10MP.
> > Berkeley db 2.7.7 is installed.
> >
> > OpenLDAP package is 1.2.7
> >

-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~ Paul Barnfather ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
|  plb@clanger9.demon.co.uk  paul.barnfather@northern-electric.co.uk |
|      __           http://www.clanger9.demon.co.uk    .             |
     o--o-... 75TS                                    o'~o... 750SS