Thanks for all this help reborg! I did what you suggested but I am still getting the same error... I'm posting a bit more info of my rig
# pkginfo -i | grep ldap
application SMColdap openldap
system SUNWlldap LDAP Libraries
# pkginfo -l SMColdap
PKGINST: SMColdap
NAME: openldap
CATEGORY: application
ARCH: x86
VERSION: 2.4.16
BASEDIR: /usr/local
VENDOR: The OpenLDAP Group
PSTAMP: Steve Christensen
INSTDATE: Jul 25 2009 18:29
EMAIL:
sunfreeware@gmail.com
STATUS: completely installed
FILES: 1516 installed pathnames
12 shared pathnames
84 directories
91 executables
50869 blocks used (approx)
# pkginfo -l SUNWlldap
PKGINST: SUNWlldap
NAME: LDAP Libraries
CATEGORY: system
ARCH: i386
VERSION: 11.10.0,REV=2005.01.21.16.34
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Ldap libraries in for software development of dynamically linked executables
PSTAMP: on10ptchfeatx20080814051140
INSTDATE: Mar 09 2009 00:35
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 7 installed pathnames
2 shared pathnames
1 linked files
2 directories
4 executables
315 blocks used (approx)
Intalled ldap with openldap-2.4.16-sol10-sparc-local (sunfreeware)
I've been trying to install samba with samba-3.0.24 (which is from samba.org)
I can post the config.log but I did not know what portions would be useful. I posted the output variables.
# LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib -L/usr/lib -R/usr/local/lib:/usr/sfw/lib:/usr/lib"
# export LDFLAGS
# CPPFLAGS="-I/usr/local/include -I/usr/sfw/include -I/usr/include"
# export CPPFLAGS
then I ran the same command
# ./configure --prefix=/usr/sfw --with-configdir=/etc/sfw --with-pam --with-pam_smbpass --with-winbind --with-ads --with-ldap
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_scanf in -llber... yes
checking for ldap_init in -lldap... no
checking for ldap_set_rebind_proc... no
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_dn2ad_canonical... no
configure: error: libldap is needed for LDAP support
This is from the config.log
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACL_LIBS=''
AR='ar'
AUTH_LIBS=''
AUTH_MODULES=''
AUTH_STATIC=''
AWK='nawk'
BROKEN_CC='#'
BUILD_INIPARSER=''
BUILD_POPT=''
CC='gcc'
CFLAGS='-O -D_SAMBA_BUILD_'
CHARSET_MODULES=''
CHARSET_STATIC=''
CIFSMOUNT_PROGS=''
CONFIG_LIBS=''
CPP='gcc -E'
CPPFLAGS='-I/usr/local/include -I/usr/sfw/include -I/usr/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64'
CUPS_CONFIG=''
DEFS=''
DYNEXP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/sfw/bin/ggrep -E'
EXEEXT=''
EXTRA_ALL_TARGETS=''
EXTRA_BIN_PROGS=''
EXTRA_SBIN_PROGS=''
FLAGS1=''
GREP='/usr/sfw/bin/ggrep'
HOST_OS='solaris2.10'
IDMAP_LIBS=''
IDMAP_MODULES=''
IDMAP_STATIC=''
INIPARSERLIBS=''
INSTALLLIBCMD_A=''
INSTALLLIBCMD_SH=''
INSTALL_CIFSMOUNT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_LIBMSRPC=''
INSTALL_LIBSMBCLIENT=''
INSTALL_LIBSMBSHAREMODES=''
INSTALL_PAM_MODULES=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KRB5CONFIG=''
KRB5_LIBS=''
LDAP_LIBS='-llber '
LDFLAGS='-L/usr/local/lib -L/usr/sfw/lib -L/usr/lib -R/usr/local/lib:/usr/sfw/lib:/usr/lib -lthread'
LDSHFLAGS='-G'
LIBMSRPC=''
LIBMSRPC_SHARED=''
LIBOBJS=''
LIBS='-lresolv -lnsl -lsocket -liconv -llber '
LIBSMBCLIENT=''
LIBSMBCLIENT_SHARED=''
LIBSMBSHAREMODES=''
LIBSMBSHAREMODES_SHARED=''
LIBUNWIND_PTRACE=''
LTLIBOBJS=''
NSCD_LIBS=''
NSSSONAMEVERSIONSUFFIX=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PAM_MODULES=''
PASSDB_LIBS=''
PATH_SEPARATOR=':'
PDB_MODULES=''
PDB_STATIC=''
PERL='/usr/bin/perl'
PICFLAGS='-fPIC'
PICSUFFIX='po'
PIE_CFLAGS=''
PIE_LDFLAGS=''
POPTLIBS=''
PRINT_LIBS=''
PYTHON=''
ROFF=''
RPC_MODULES=''
RPC_STATIC=''
SHELL='/bin/bash'
SHLD='${CC} ${CFLAGS}'
SHLIBEXT='so'
SHLIB_PROGS=''
SMBD_LIBS=''
SMBLDAP=''
SMBLDAPUTIL=''
SMBWRAPPER=''
SMBWRAP_INC=''
SMBWRAP_OBJS=''
SOCKWRAP=''
SONAMEFLAG='-Wl,-soname='
TERMLDFLAGS=''
TERMLIBS=''
UNINSTALLLIBCMD_A=''
UNINSTALLLIBCMD_SH=''
UNINSTALL_CIFSMOUNT=''
UNINSTALL_LIBMSRPC=''
UNINSTALL_LIBSMBCLIENT=''
UNINSTALL_PAM_MODULES=''
VFS_MODULES=''
VFS_STATIC=''
WINBIND_NSS=''
WINBIND_NSS_EXTRA_LIBS=''
WINBIND_NSS_EXTRA_OBJS=''
WINBIND_NSS_LDSHFLAGS=''
WINBIND_WINS_NSS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i386-pc-solaris2.10'
build_alias=''
build_cpu='i386'
build_os='solaris2.10'
build_vendor='pc'
builddir=''
configdir='/etc/sfw'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-pc-solaris2.10'
host_alias=''
host_cpu='i386'
host_os='solaris2.10'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libc_cv_fpie='no'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lockdir='${VARDIR}/locks'
logfilebase='${VARDIR}'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pammodulesdir='${LIBDIR}/security'
pdfdir='${docdir}'
piddir='${VARDIR}/locks'
prefix='/usr/sfw'
privatedir='${prefix}/private'
program_transform_name='s,x,x,'
psdir='${docdir}'
rootsbindir='${SBINDIR}'
sbindir='${exec_prefix}/sbin'
selftest_prefix='./'
sharedstatedir='${prefix}/com'
smbtorture4_path=''
swatdir='${prefix}/swat'
sysconfdir='${prefix}/etc'
target='i386-pc-solaris2.10'
target_alias=''
target_cpu='i386'
target_os='solaris2.10'
target_vendor='pc'
configure: exit 1
Any ideas?
and if I may ask... what does the -R do for the configure? I could not any -R variables within the configure file
I'm going to keep fiddling with this... I'm starting to get a headache lol... thanks for everything!
---------- Post updated at 09:54 PM ---------- Previous update was at 09:42 PM ----------
I thought adding this
# LD_LIBRARY_PATH=/usr/local/lib:/usr/sfw/lib:/usr/lib
# export LD_LIBRARY_PATH
would help but no good, same error ><
---------- Post updated at 10:34 PM ---------- Previous update was at 09:54 PM ----------
So I changed my LDFLAGS and added -lsasl
# LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib -L/usr/lib -R/usr/local/lib:/usr/sfw/lib:/usr/lib -lsasl"
# export LDFLAGS
I get past the LDAP error
checking for LDAP support... yes
but when I run configure again
checking for magic in krb5_address... yes
configure: error: libkrb5 is needed for Active Directory support
BUT, I have libkrb5 in /usr/lib
# ./configure --prefix=/usr/sfw --with-configdir=/etc/sfw --with-pam --with-pam_smbpass --with-winbind --with-ads --with-ldap --with-krb5=/usr/lib
so I added the --with-krb5=/usr/lib (as the default is /usr)
but I get the same error...
Any ideas?