youngjohn04
2011-Jul-06 12:33 UTC
[Samba] Could not build Samba with ADS support on Solaris 10
I tried to build Samba with ADS support, I got error, messages are: . checking for ldap_initialize... no checking whether LDAP support is used... yes checking for Active Directory and krb5 support... yes checking for ldap_initialize... (cached) no configure: error: Active Directory support requires ldap_initialize I installed Openldap(downloaded from sunfreeware), tried the following commands, all resulted the same. $ ./configure --with-ads $ ./configure --with-ads CPPFLAGS="-I/usr/local/include" $ export CPPFLAGS="-I/usr/local/include"; ./configure --with-ads Samba Version: 3.4.13 or 3.5.9, Solaris 10 Sparc or x86_64. C compiler: /usr/sfw/bin/gcc I also tried on Redhat Linux 5.5, succeeded, without error. Anyone have any idea?
Gaiseric Vandal
2011-Jul-06 13:34 UTC
[Samba] Could not build Samba with ADS support on Solaris 10
Samba on Solaris can be a real challenge. Your build is probably picking up the Sun native(non-openldap) ldap libraries which is why you have ldap support but not AD support. AD support always requires kerberos but the Solaris kerberos libraries Did you set LD_LIBRARY_PATH? You may also need to set LDLFAGS LDFLAGS=" -L/usr/local/lib -R/usr/local/lib -L/usr/lib -R/usr/lib" LDFLAGS="-L/usr/local/samba-3.5.2/lib -R/usr/local/samba-3.5.2/lib $LDFLAGS" If the compiler uses /usr/ccs/bin/ld , you will usually have have compiler failures. If /usr/sfw/bin/gcc uses a gnu ld you may have better luck. Probably the most reliable may to compile for Solaris is to use Sun Studio compilers and dmake. Sun-bundled Samba 3.0.x was compiled with sun ldap, but with some extra netscape (?) libraries. If you have an Oracle support contract you can download a Sun-provided Samba 3.5.x - and forget compiling it at all. I do not know if they used openldap or native ldap libraries. I don't know if the samba patches are included in the latest patch cluster. (I suspect so.) It would be nice to have a wiki page on samba.org for building Samba under Solaris. On 07/06/2011 08:33 AM, youngjohn04 wrote:> I tried to build Samba with ADS support, I got error, messages are: > > . > > checking for ldap_initialize... no > > checking whether LDAP support is used... yes > > checking for Active Directory and krb5 support... yes > > checking for ldap_initialize... (cached) no > > configure: error: Active Directory support requires ldap_initialize > > > > I installed Openldap(downloaded from sunfreeware), tried the following > commands, all resulted the same. > > $ ./configure --with-ads > > $ ./configure --with-ads CPPFLAGS="-I/usr/local/include" > > $ export CPPFLAGS="-I/usr/local/include"; ./configure --with-ads > > > > Samba Version: 3.4.13 or 3.5.9, Solaris 10 Sparc or x86_64. > > C compiler: /usr/sfw/bin/gcc > > > > I also tried on Redhat Linux 5.5, succeeded, without error. > > > > Anyone have any idea? >
Apparently Analagous Threads
- Dtrace - Segmentation Fault
- Install R-patched_2006-07-13 on i386-pc-solaris2.10 with Sun Studio 11
- Unable to compile Samba 3.5.6 on Solaris 9 - more winbind issues
- Samba complie problem
- samba-3.2.4 Solaris 9: configure gets error: Active Directory support requires ldap_initialize