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

release 1.1.1 build failure



I'm trying to build release 1.1.1 on Solaris 2.6. I'm getting compile
errors trying to follow the Solaris thread hints. Any suggestions?

I'm also using db-2.3.16.

Bill Anderson
----

Using LWP threads I get the following result from the make:

(I get a very similar result to this if I disable threads; i.e.,
include failures, but in the slapd subdirectory trying to build idl.c)

  Entering subdirectory liblthread
/usr/local/bin/gcc -g -O2 -I../../include -I../../include   -I/usr1/local/include -DHAVE_CONFIG_H   -c  rdwr.c
In file included from rdwr.c:24:
../../include/lthread.h:132: conflicting types for `pthread_attr_t'
/usr/include/sys/types.h:293: previous declaration of `pthread_attr_t'
../../include/lthread.h:133: warning: redefinition of `pthread_t'
/usr/include/sys/types.h:263: warning: `pthread_t' previously declared here
../../include/lthread.h:136: conflicting types for `pthread_mutexattr_t'
/usr/include/sys/types.h:301: previous declaration of `pthread_mutexattr_t'
../../include/lthread.h:137: conflicting types for `pthread_mutex_t'
/usr/include/sys/types.h:278: previous declaration of `pthread_mutex_t'
../../include/lthread.h:140: conflicting types for `pthread_condattr_t'
/usr/include/sys/types.h:309: previous declaration of `pthread_condattr_t'
../../include/lthread.h:141: 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 `rdwr.o'
Current working directory /usr1/local/src/ldap/libraries/liblthread
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /usr1/local/src/ldap/libraries
*** Error code 1
make: Fatal error: Command failed for target `all-common'
-----------

when I use the LIBS="-lpthread -lposix4" hint I get:

/usr/local/bin/gcc -g -O2 -I../../include -I../../include -I/usr1/local/include -DHAVE_CONFIG_H -o slapd main.o daemon.o connection.o search.o filter.o add.o charray.o attr.o entry.o config.o backend.o result.o operation.o dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o value.o ava.o bind.o unbind.o abandon.o filterentry.o phonetic.o acl.o str2filter.o aclparse.o init.o repl.o lock.o suffixalias.o schema.o schemaparse.o monitor.o configinfo.o version.o -L/usr1/local/src/ldap/libraries -lldif /usr1/local/src/ldap/libraries/libldap/.libs/libldap.a /usr1/local/src/ldap/libraries/liblber/.libs/liblber.a libbackends.a -lavl -lldbm -ldb -llthread -llutil -lresolv -lgen -lnsl -lsocket -lpthread -lposix4
ld: fatal: library -ldb: not found
ld: fatal: File processing errors. No output written to slapd
*** Error code 1
make: Fatal error: Command failed for target `slapd'
Current working directory /usr1/local/src/ldap/servers/slapd
*** Error code 1
make: Fatal error: Command failed for target `all-local-srv'
Current working directory /usr1/local/src/ldap/servers/slapd
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /usr1/local/src/ldap/servers/slapd
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /usr1/local/src/ldap/servers
*** Error code 1
make: Fatal error: Command failed for target `all-common'