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

SUMMARY: OpenLDAP 1.2 compile trouble under Solaris 2.6



Here's what I ended up doing to resolve my compile problems:

1. Installed Berkeley DB: version 2.7.5, available from
      http://www.sleepycat.com/

2. Set the following ENVs:
      LIBS=-lpthread -lposix4
      CPPFLAGS=-I/usr/local/BerkeleyDB/include
      LDFLAGS=-L/usr/local/BerkeleyDB/lib

3. Ran configure with these options:
      ./configure --with-ldbm-api=db2 --enable-shell --enable-passwd

Thanks to the following who's responses to my original post
were very helpful:

Wyman Eric Miles <wymanm@is.rice.edu>
Giovanni Faglioni <giova@comune.modena.it>
"Kurt D. Zeilenga" <Kurt@OpenLDAP.org>

Original Post:
> 
> Hello,
> 
> I am attempting to build OpenLDAP1.2 under Solaris 2.6.
> I have overcome some initial configure errors, by following
> some of the hints in the Install documentation, but now I am
> running into compile errors (see below) when I run make.
> The "make depend" runs fine.  The compiler I am using is
> gcc version 2.8.1.  Any help will be appreciated.
> 
> 
>   Entering subdirectory libldbm
> gcc -g -O2 -I../../include -I../../include   -I/usr/local/include -DHAVE_CONFIG_H  -I/usr/local/include -c  ldbm.c
> In file included from ../../include/ldbm.h:32,
>                  from ldbm.c:21:
> /usr/local/include/db.h:54: conflicting types for `int8_t'
> /usr/include/sys/int_types.h:62: previous declaration of `int8_t'
> /usr/local/include/db.h:56: warning: redefinition of `int16_t'
> /usr/include/sys/int_types.h:68: warning: `int16_t' previously declared here
> /usr/local/include/db.h:58: warning: redefinition of `int32_t'
> /usr/include/sys/int_types.h:69: warning: `int32_t' previously declared here
> *** Error code 1
> make: Fatal error: Command failed for target `ldbm.o'
> Current working directory /home/tpeterma/src/ldap/libraries/libldbm
> *** Error code 1
> make: Fatal error: Command failed for target `all-common'
> Current working directory /home/tpeterma/src/ldap/libraries
> *** Error code 1
> make: Fatal error: Command failed for target `all-common'

-- 
Tim Peterman - Unix & Web Server Administration
Lockheed Martin GES/EIS, Moorestown, NJ
mailto:timothy.p.peterman@lmco.com