Issue 45 - Trying to compile ldap 1.1.1 on Solaris 2.6.
Summary: Trying to compile ldap 1.1.1 on Solaris 2.6.
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-01-18 22:04 UTC by KNaga
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description KNaga 1999-01-18 22:04:26 UTC
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 #



Comment 1 William L Anderson 1999-01-18 22:44:26 UTC
I had the same problem and Kurt Zeilenga gave me this advice that
worked like a charm.

Remember to use Sleepycat version db-2.3.16 (available from Walnut
Creek; I don't have the URL handy).

Bill Anderson

-----

Try this:
	rm config.cache
	setenv CPPFLAGS "-I/usr/local/include"
	setenv LIBS "-L/usr/local/lib -lpthread -lposix4"
	(replace use of setenv with the appropriate environment
	setting mechanism for your shell)
	./configure --with-threads

Replace "/usr/local" with the appropriate prefix necessary to
find DB2.
Comment 2 Kurt Zeilenga 1999-01-18 23:05:33 UTC
At 10:51 PM 1/18/99 GMT, band@eng.mc.xerox.com wrote:
>I had the same problem and Kurt Zeilenga gave me this advice that
>worked like a charm.
>
>Remember to use Sleepycat version db-2.3.16 (available from Walnut
>Creek; I don't have the URL handy).
>
>Bill Anderson
>
>-----
>
>Try this:
>	rm config.cache
>	setenv CPPFLAGS "-I/usr/local/include"
>	setenv LIBS "-L/usr/local/lib -lpthread -lposix4"
>	(replace use of setenv with the appropriate environment
>	setting mechanism for your shell)
>	./configure --with-threads
>
>Replace "/usr/local" with the appropriate prefix necessary to
>find DB2.

I now recommend putting linker flags in LDFLAGS.  This is because
LIBS will be moved to near the end of the argument list in 1.2 (due
to pthread linking requirements on some platforms).  So:

	rm.config.cache
	setenv CPPFLAGS "-I/usr/local/include"
	setenv LDFLAGS "-L/usr/local/lib"
	setenv LIBS "-lpthread -lposix4"
	./configure --with-threads

For additional information on Solaris, please read:
	http://www.openldap.org/faq/index.cgi?file=11
For additional information on DB2, please read:
	http://www.openldap.org/faq/data/cache/44.html
Comment 3 Kurt Zeilenga 1999-01-19 07:32:34 UTC
changed notes
changed state Open to Closed
Comment 4 OpenLDAP project 2014-08-01 21:06:05 UTC
FAQ items sent, should be closed.