Hi Wayne,

I had the same problem.  I fixed one line in configure:

if test "x$debug" = "xyes" ; then
        CFLAGS="${CFLAGS} -g"
else
        CFLAGS="-O"
fi

The second if statement was clearing my CFLAGS setting, replacing it with just "-O". I changed the line from CFLAGS="-O" to CFLAGS="${CFLAGS} -O". This kept my settings. I don't know if this is the correct fix, but it worked for me.

HTH

        -John


Wayne Rasmussen wrote:
Unable to compile samba-3.2.4 on Solaris 9 for sparc.



#building openldap
CC=gcc
#echo $CC
#exit
CPPFLAGS="-I/usr/local/include -I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include/sasl"
LDFLAGS="-L/usr/local/lib -L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib"
export CC CPPFLAGS LDFLAGS
#
CFLAGS='-D_AVL_H'
export CFLAGS
#


./configure --enable-bdb

make depend
make install
#end building openldap

#build samba
make clean
./configure --with-ldap --with-acl-support --with-ads --with-pam
--with-winbind --with-krb5=/usr/local

#####make
#####make install
#end build samba

The samba script, configure, seems to be failing with the following:




checking for LDAP support... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ber_tag_t... yes
checking for ber_scanf in -llber... yes
checking for ber_sockbuf_add_io... yes
checking for LDAP_OPT_SOCKBUF... yes
checking for LBER_OPT_LOG_PRINT_FN... yes
checking for ldap_init in -lldap... yes
checking for ldap_set_rebind_proc... yes
checking whether ldap_set_rebind_proc takes 3 arguments... 3
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




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to