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

Re: Error when configure the build system (ITS#231)



Dear support Engineer,

Further to my previous email (ITS#231), I would like to thank
for the hints from the auto-reply service. I could manage to 
resolve the problem as stated in (1) below.  

However, I would like to ask some questions refer to the error 
stated in (4)- configure fails to find suitable LDBM backen :
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

i. If I only want to install a LDAP client, should I need "LDBM"
   at all?

ii. If "LDBM" is not necessary, how can I ignore those "options"
    from configure file? 

Thanks advance for your advise.

H K Hung
HKUST  

On Tue, 20 Jul 1999 openldap-its@OpenLDAP.org wrote:

> ----------------------------------------
> 1) Building OpenLDAP under Solaris
> 
> Some versions of Solaris 2.x contains pthread functions which are
> not compatible with <pthread.h> and are not useable.  The autoconf
> system will detect this incompatibility but does not attempts to
> resolve it. configure will exit using out-of-the-box settings with
> the error: 
> 
>   checking if pthread_create() works... no
>   configure: error: pthread.h and pthread_create are not compatible
> 
> To resolve this problem, the installer must specify the proper Pthreads libraries: 
> 
>   LIBS="-lpthread -lposix4"; export LIBS
>   ./configure --with-threads
> 
> Note: the configure option '--without-threads' cannot be used on
> some versions of Solaris.
> 
> See also:
>   http://www.openldap.org/faq/index.cgi?file=11
>   http://www.openldap.org/software/release/install.html
> 
>
-----------------------------

> 4) configure fails to find suitable LDBM backend
> 
> Building of the standalone LDAP server (slapd), in general, requires
> a suitable "LDBM" backend database package such as Berkeley DB or GDBM.
> If configure cannot detect the presense of these packages you will get
> the following:
> 
>   configure: warning: skipping automatic checking for NDBM, must be manually enabled.
>   configure: warning: could not find suitable LDBM backend
>   configure: error: select appropriate LDBM options or disable
> 
> To use LDBM, you must have Berkeley DB or GDBM installed.
> 
> If Berkeley DB or GDBM are installed you may just have to
> specify alternative CPPFLAGS and LDFLAGS in your environment.
> 
> See Also:
>   http://www.openldap.org/software/release/install.html
>   http://www.openldap.org/faq/index.cgi?file=8
> 
> ----------------------------------------
> 5) configure fails to recognize Pthreads on Linux
> 
> The <pthread.h> on some Linux systems uses a preprocessor macro
> definition to select the type of threads to use. The default
> is not compatible with OpenLDAP. Use: 
> 
>   make veryclean
>   CPPFLAGS=-D_MIT_POSIX_THREADS
>   ./configure 
> 
> to select a compatible POSIX thread implementation.
> 
> Environmental variable details are provided in the release INSTALL
> document.
> 
> See also:
>   http://www.openldap.org/faq/index.cgi?file=19
>   http://www.openldap.org/software/release/install.html
> 
> ----------------------------------------
> 
> Copyright 1999 The OpenLDAP Foundation All Rights Reserved.
> 
> 
>