Compiling Samba 3.6.1 on Solaris 10 using OpenCSW

Leslie Smith les.smith at uq.edu.au
Thu Nov 10 21:24:52 MST 2011


Hi,

I recently switched from using blastwave packages to OpenCSW packages and
found Samba would not compile.

I needed to install CSWkrb5libdev to get krb5.h

	> checking for krb5.h... no
	> configure: error: Active Directory cannot be supported without krb5.h

Also, some of the library symlinks are missing (no idea how they
disappeared).


I kept getting the following error, even though the library is installed

	> 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 added the following symlinks in /opt/csw/lib/ and it works now.

libiconv.so -> libiconv.so.2.5.1
libldap.so -> libldap-2.4.so.2.5.6
libintl.so -> libintl.so.8.1.1


Hope this helps others,

Les
 



--- build ---

cd samba-3.6.1/source3

export PATH=$PATH:/usr/ccs/bin
export LDFLAGS="-R/opt/csw/lib -L/opt/csw/lib -lsasl -lcom_err -lintl"

./configure --prefix=/usr/local/samba-3.6.1 --with-quotas --disable-cups
--disable-fam --with-ads --with-included-popt --with-included-iniparser
--with-libiconv=/opt/csw --mandir=/usr/local/man --enable-static


crle -u -l /lib:/usr/lib:/opt/csw/lib:/usr/local/samba-3.6.1/lib



More information about the samba-technical mailing list