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

LDAP compilation problems . please help ! (ITS#1626)



Hi ,

 I am getting the following errors. 
 I am using Berkley DB 4.0.14
 I am trying to install LDAP 3.3
 
 These are the contents of Makfile-common.

 ##SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL
#
# If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
# to specify which low-level database package to use.  There are
# four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
#
# berkeley db btree package
LDBMBACKEND=-DLDBM_USE_DBBTREE
LDBMINCLUDE=-I/usr/local/BerkleyDB.4.0/include
LDBMLIB=-ldb
# berkeley db hash package
#LDBMBACKEND=-DLDBM_USE_DBHASH
#LDBMINCLUDE=-I/usr/local/db/include
#LDBMLIB=-ldb
# gnu dbm (gdbm)
#LDBMBACKEND=-DLDBM_USE_GDBM
#LDBMINCLUDE=-I/usr/local/gdbm/include

These are the errors i am getting ...

 S       -DLDAP_LDBM -DLDAP_SHELL -DLDBM_USE_NDBM
-I/usr/local/BerkleyDB.4.0/incl
ude  -DTHREAD_SUNOS5_LWP   -I/usr/local/BerkeleyDB.4.0/include -c  thread.c
In file included from thread.c:3:
../../include/lthread.h:70: conflicting types for `pthread_attr_t'
/usr/include/sys/types.h:293: previous declaration of `pthread_attr_t'
../../include/lthread.h:71: warning: redefinition of `pthread_t'
/usr/include/sys/types.h:263: warning: `pthread_t' previously declared here
../../include/lthread.h:85: conflicting types for `pthread_mutexattr_t'
/usr/include/sys/types.h:301: previous declaration of `pthread_mutexattr_t'
../../include/lthread.h:86: conflicting types for `pthread_mutex_t'
/usr/include/sys/types.h:278: previous declaration of `pthread_mutex_t'
../../include/lthread.h:93: conflicting types for `pthread_condattr_t'
/usr/include/sys/types.h:309: previous declaration of `pthread_condattr_t'
../../include/lthread.h:94: conflicting types for `pthread_cond_t'
/usr/include/sys/types.h:286: previous declaration of `pthread_cond_t'
*** Error code 1
make: Fatal error: Command failed for target `thread.o'
Current working directory /opt/ldap-3.3/libraries/liblthread
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /opt/ldap-3.3/libraries
*** Error code 1
make: Fatal error: Command failed for target `all'


Thnx ........

Atul Dongre
Unix Support
NASDAQ EUROPE
Email : atul.dongre@nasdaqeurope.com

Phone : +44 20 7979 7483