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

Trying to compile ldap 1.1.1 on Solaris 2.6. (ITS#45)



Hello,
I am new to LDAP and trying to compile ldap 1.1.1 on Sun Solaris 2.6 on
Ultra1 hardware. I have to make this machine and LDAP server. I am using
gcc 2.8.1 and also compiled
and installed BerkeleyDB ( available at www.sleepycat.com).
I am using :
"./configure --without-threads --prefix=/usr/local/etc/ldap"
This command runs fine and when I do "make depend", the command runs for

a while and gives me the following error message. Can someone guide me
as to what I should do to compile successfully. I appreciate your help.


  Entering subdirectory slapd
make[2]: Entering directory `/tmp/ldap/servers/slapd'
make[3]: Entering directory `/tmp/ldap/servers/slapd'
make -w backendslib
make[4]: Entering directory `/tmp/ldap/servers/slapd'

  cd back-ldbm; make -w all
make[5]: Entering directory `/tmp/ldap/servers/slapd/back-ldbm'
make[6]: Entering directory `/tmp/ldap/servers/slapd/back-ldbm'
make -w libback-ldbm.a
make[7]: Entering directory `/tmp/ldap/servers/slapd/back-ldbm'
gcc -g -O2 -I../../../include        -I../../../include -I.. -I./..
-DHAVE_CONFIG_H     -c idl.c -o idl.o
In file included from ../slap.h:22,
                 from idl.c:11:
../../../include/lthread.h:203: conflicting types for `pthread_attr_t'
/usr/include/sys/types.h:293: previous declaration of `pthread_attr_t'
../../../include/lthread.h:204: conflicting types for `pthread_t'
/usr/include/sys/types.h:263: previous declaration of `pthread_t'
../../../include/lthread.h:218: conflicting types for
`pthread_mutexattr_t'
/usr/include/sys/types.h:301: previous declaration of
`pthread_mutexattr_t'
../../../include/lthread.h:219: conflicting types for `pthread_mutex_t'
/usr/include/sys/types.h:278: previous declaration of `pthread_mutex_t'
../../../include/lthread.h:226: conflicting types for
`pthread_condattr_t'
/usr/include/sys/types.h:309: previous declaration of
`pthread_condattr_t'
../../../include/lthread.h:227: conflicting types for `pthread_cond_t'
/usr/include/sys/types.h:286: previous declaration of `pthread_cond_t'
make[7]: *** [idl.o] Error 1
make[7]: Leaving directory `/tmp/ldap/servers/slapd/back-ldbm'
make[6]: *** [all-local-srv] Error 2
make[6]: Leaving directory `/tmp/ldap/servers/slapd/back-ldbm'
make[5]: *** [all-common] Error 2
make[5]: Leaving directory `/tmp/ldap/servers/slapd/back-ldbm'

  cd back-passwd; make -w all
make[5]: Entering directory `/tmp/ldap/servers/slapd/back-passwd'
run configure with --enable-passwd to build libback-passwd.a
make[5]: Leaving directory `/tmp/ldap/servers/slapd/back-passwd'

  cd back-shell; make -w all
make[5]: Entering directory `/tmp/ldap/servers/slapd/back-shell'
run configure with --enable-shell to build libback-shell.a
make[5]: Leaving directory `/tmp/ldap/servers/slapd/back-shell'

make[5]: Entering directory `/tmp/ldap/servers/slapd'
make[5]: *** No rule to make target `.backend', needed by
`libbackends.a'.  Stop.
make[5]: Leaving directory `/tmp/ldap/servers/slapd'
make[4]: *** [backendslib] Error 2
make[4]: Leaving directory `/tmp/ldap/servers/slapd'
make[3]: *** [all-local-srv] Error 2
make[3]: Leaving directory `/tmp/ldap/servers/slapd'
make[2]: *** [all-common] Error 2
make[2]: Leaving directory `/tmp/ldap/servers/slapd'

  Entering subdirectory slurpd
make[2]: Entering directory `/tmp/ldap/servers/slurpd'
run configure with --enable-slurpd to build slurpd
gcc -g -O2 -I../../include        -I../../include   -DHAVE_CONFIG_H
-c admin.c -o admin.o
In file included from slurp.h:30,
                 from admin.c:24:
../../include/lthread.h:203: conflicting types for `pthread_attr_t'
/usr/include/sys/types.h:293: previous declaration of `pthread_attr_t'
../../include/lthread.h:204: conflicting types for `pthread_t'
/usr/include/sys/types.h:263: previous declaration of `pthread_t'
../../include/lthread.h:218: conflicting types for `pthread_mutexattr_t'

/usr/include/sys/types.h:301: previous declaration of
`pthread_mutexattr_t'
../../include/lthread.h:219: conflicting types for `pthread_mutex_t'
/usr/include/sys/types.h:278: previous declaration of `pthread_mutex_t'
../../include/lthread.h:226: conflicting types for `pthread_condattr_t'
/usr/include/sys/types.h:309: previous declaration of
`pthread_condattr_t'
../../include/lthread.h:227: conflicting types for `pthread_cond_t'
/usr/include/sys/types.h:286: previous declaration of `pthread_cond_t'
make[2]: *** [admin.o] Error 1
make[2]: Leaving directory `/tmp/ldap/servers/slurpd'

make[1]: Leaving directory `/tmp/ldap/servers'

ultra1:/tmp/ldap #