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

Re: OpenLDAP1.2 compile trouble under Solaris 2.6



On Tue, 27 Apr 1999, Timothy P. Peterman wrote:

> 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'

	Hmmm...
	Seems to me that you have a wrong version of db.h,
	maybe you can try to install the newest Berkeley DB
	package from www.sleepycat.com,
	and remove the old libraries and includes.

	If you have already done this, maybe it's a matter
	of order of inclusion for the .h files. (-I option to gcc)

	maybe ./configure finds a version, but the 
	db.h is from another. 

	just some quick ideas, I'm not really shure this can help.

	--Gio'