Full_Name: Brian Peters Version: 2.3.39 OS: SPARC Solaris 10 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (137.71.23.54)
I am attempting to compile Samba using active directory. This entails using LDAP and Kerberos during set up. The native versions on Solaris 10 are insufficient due to a lack of ldap_initialize in those header files. I am using the most recent versions of both Openldap (2.3.39) and Kerberos (krb5-1.6.3). The error manifests itself when compiling Kerberos. Before we proceed any further let's first lay down the foundation of the data.
Openldap was configured using the following:
./configure --prefix=/cadvault/gbocadsrv2/www/pkgs/3rdparty/openldap/openlda p-2.3.39 --without-bdb --disable-bdb --enable-null --disable-slapd --enable-shar ed --with-shared=yes
CFLAGS -D_AVL_H
Kerberos using:
./configure --prefix=/cadvault/gbocadsrv2/www/pkgs/3rdparty/kerberos/krb5-1.6.3 --with-ldap --enable-shared
All important environment variables have been set specifically for each configuration (CPPFLAGS,LDFLAGS,PATH,LD_LIBRARY_PATH,CFLAGS).
I have confirmed in the config.log files that each is pulling the correct files during the attempted compile. The issue appears when running gmake. Below is the important portion it returns.
... In file included from kdb_ldap.c:37: kdb_ldap.h:315: error: conflicting types for 'ldap_initialize' /cadvault/gbocadsrv2/www/pkgs/3rdparty/openldap/openldap-2.3.39/include/ldap.h:1346: error: previous declaration of 'ldap_initialize' was here kdb_ldap.h:315: error: conflicting types for 'ldap_initialize' /cadvault/gbocadsrv2/www/pkgs/3rdparty/openldap/openldap-2.3.39/include/ldap.h:1346: error: previous declaration of 'ldap_initialize' was here kdb_ldap.c:491: warning: missing braces around initializer kdb_ldap.c:491: warning: (near initialization for `kldap_init_fn__once.once.o.__pthread_once_pad') kdb_ldap.c:500: warning: no previous prototype for 'kldap_ensure_initialized' gmake[2]: *** [kdb_ldap.so] Error 1 gmake[2]: Leaving directory `/cadvault/gbocadsrv2/www/src/3rdparty/kerberos/krb5-1.6.3/src/plugins/kdb/ldap/libkdb_ldap' gmake[1]: *** [all-recurse] Error 1 gmake[1]: Leaving directory `/cadvault/gbocadsrv2/www/src/3rdparty/kerberos/krb5-1.6.3/src/plugins/kdb/ldap' gmake: *** [all-recurse] Error 1
At this point I am at a bit of a loss on how to proceed. Any advice on a fix or versions of each to roll back to would be greatly appreciated.