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

Re: OpenLDAP1.2 compile trouble under Solaris 2.6



At 01:33 PM 4/27/99 -0400, Timothy P. Peterman wrote:
>  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'

The bit types were apparently not detected when Berkeley DB
was installed.  Hence it built a db.h file that, by default,
defines thems.  However, as the bit types are now apparently
available, a conflict arises.

If you define __BIT_TYPES_DEFINED__, db.h will not define
the bit types.
	env CPPFLAGS=-D__BIT_TYPES_DEFINED__ ./configure

Kurt