Hi, ive been working on this for a while now. Samba-2.2.2, samba-2.2.3a both do the same thing, fail with configure --with-ldapsam on solaris 8. Ive got openldap 2.0.18 compiled from source and installed in /usr/local on my solaris system. The libs were installed into /usr/local also. My exact configure is: ./configure --prefix=/usr/local/pkg/samba --with-acl-support --with-profile --with-ldapsam Ive eliminated all the other config options, so im sure this error is from the --with-ldapsam Ive seen refrence to this on a couple messages, but no resolution. Thanks in advance! -abraxxus -(abraxxus@sonic.net) Here is a tail of the config.log: configure:12442: checking whether to build winbind configure:12525: gcc -o conftest -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c -lldap -llber -lresolv -lsec -lgen -lsocket -lnsl -ldl 1>&5 configure: failed program was: #line 12521 "configure" #include "confdefs.h" #include "./tests/summary.c" ------------------------------------------------ Here is my full configure: /ldap/samba-2.2.2/source# ./configure --with-ldapsam loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc -O ) works... yes checking whether the C compiler (gcc -O ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD compatible install... ./install-sh -c checking for mawk... (cached) nawk checking whether gcc and cc understand -c and -o together... (cached) yes checking that the C compiler understands volatile... (cached) yes checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 checking build system type... sparc-sun-solaris2.8 checking config.cache system type... same enabling large file support checking for inline... (cached) inline checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... (cached) yes checking for opendir in -ldir... (cached) no checking whether time.h and sys/time.h may both be included... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for arpa/inet.h... (cached) yes checking for sys/fcntl.h... (cached) yes checking for sys/select.h... (cached) yes checking for fcntl.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/unistd.h... (cached) yes checking for unistd.h... (cached) yes checking for utime.h... (cached) yes checking for grp.h... (cached) yes checking for sys/id.h... (cached) no checking for limits.h... (cached) yes checking for memory.h... (cached) yes checking for net/if.h... (cached) yes checking for compat.h... (cached) no checking for rpc/rpc.h... (cached) yes checking for rpcsvc/nis.h... (cached) yes checking for rpcsvc/yp_prot.h... (cached) yes checking for rpcsvc/ypclnt.h... (cached) yes checking for sys/param.h... (cached) yes checking for ctype.h... (cached) yes checking for sys/wait.h... (cached) yes checking for sys/resource.h... (cached) yes checking for sys/ioctl.h... (cached) yes checking for sys/ipc.h... (cached) yes checking for sys/mode.h... (cached) yes checking for sys/mman.h... (cached) yes checking for sys/filio.h... (cached) yes checking for sys/priv.h... (cached) no checking for sys/shm.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for stdlib.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/mount.h... (cached) yes checking for sys/vfs.h... (cached) yes checking for sys/fs/s5param.h... (cached) no checking for sys/filsys.h... (cached) no checking for termios.h... (cached) yes checking for termio.h... (cached) yes checking for sys/termio.h... (cached) yes checking for sys/statfs.h... (cached) yes checking for sys/dustat.h... (cached) no checking for sys/statvfs.h... (cached) yes checking for stdarg.h... (cached) yes checking for sys/sockio.h... (cached) yes checking for security/pam_modules.h... (cached) yes checking for security/_pam_macros.h... (cached) no checking for shadow.h... (cached) yes checking for netinet/ip.h... (cached) yes checking for netinet/tcp.h... (cached) yes checking for netinet/in_systm.h... (cached) yes checking for netinet/in_ip.h... (cached) no checking for nss.h... (cached) no checking for nss_common.h... (cached) yes checking for sys/security.h... (cached) no checking for security/pam_appl.h... (cached) yes checking for security/pam_modules.h... (cached) yes checking for stropts.h... (cached) yes checking for poll.h... (cached) yes checking for sys/capability.h... (cached) no checking for syscall.h... (cached) no checking for sys/syscall.h... (cached) yes checking for sys/acl.h... (cached) yes checking for sys/cdefs.h... (cached) no checking for glob.h... (cached) yes checking for utmp.h... (cached) yes checking for utmpx.h... (cached) yes checking for lastlog.h... (cached) yes checking for sys/fs/vx_quota.h... (cached) no checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of short... (cached) 2 checking for working const... (cached) yes checking for inline... (cached) inline checking whether byte ordering is bigendian... (cached) yes checking whether char is unsigned... (cached) no checking return type of signal handlers... (cached) void checking for uid_t in sys/types.h... (cached) yes checking for mode_t... (cached) yes checking for off_t... (cached) yes checking for size_t... (cached) yes checking for pid_t... (cached) yes checking for st_rdev in struct stat... (cached) yes checking for d_off in dirent... (cached) yes checking for ino_t... (cached) yes checking for loff_t... (cached) no checking for offset_t... (cached) yes checking for ssize_t... (cached) yes checking for wchar_t... (cached) yes checking for httpConnect in -lcups... (cached) no checking for dlopen in -ldl... (cached) yes checking for unix domain sockets... (cached) yes checking for socklen_t type... (cached) yes checking for sig_atomic_t type... (cached) yes checking for errno declaration... (cached) yes checking for setresuid declaration... (cached) no checking for setresgid declaration... (cached) no checking for asprintf declaration... (cached) no checking for vasprintf declaration... (cached) no checking for vsnprintf declaration... (cached) yes checking for snprintf declaration... (cached) yes checking for real setresuid... (cached) no checking for real setresgid... (cached) no checking for 8-bit clean memcmp... (cached) yes checking whether to use readline... yes checking for readline.h... (cached) no checking for history.h... (cached) no checking for readline/readline.h... (cached) no checking for readline/history.h... (cached) no checking for readline.h... (cached) no checking for readline/readline.h... (cached) no checking for connect... (cached) no checking for printf in -lnsl_s... (cached) no checking for printf in -lnsl... (cached) yes checking for connect in -lsocket... (cached) yes checking for connect in -linet... (cached) no checking for yp_get_default_domain... (cached) yes checking for execl... (cached) yes checking for waitpid... (cached) yes checking for getcwd... (cached) yes checking for strdup... (cached) yes checking for strtoul... (cached) yes checking for strerror... (cached) yes checking for chown... (cached) yes checking for fchown... (cached) yes checking for chmod... (cached) yes checking for fchmod... (cached) yes checking for chroot... (cached) yes checking for fstat... (cached) yes checking for strchr... (cached) yes checking for utime... (cached) yes checking for utimes... (cached) yes checking for getrlimit... (cached) yes checking for fsync... (cached) yes checking for bzero... (cached) yes checking for memset... (cached) yes checking for memmove... (cached) yes checking for vsnprintf... (cached) yes checking for snprintf... (cached) yes checking for asprintf... (cached) no checking for vasprintf... (cached) no checking for setsid... (cached) yes checking for glob... (cached) yes checking for strpbrk... (cached) yes checking for pipe... (cached) yes checking for crypt16... (cached) no checking for getauthuid... (cached) no checking for strftime... (cached) yes checking for sigprocmask... (cached) yes checking for sigblock... (cached) no checking for sigaction... (cached) yes checking for sigset... (cached) yes checking for innetgr... (cached) yes checking for setnetgrent... (cached) yes checking for getnetgrent... (cached) yes checking for endnetgrent... (cached) yes checking for initgroups... (cached) yes checking for select... (cached) yes checking for poll... (cached) yes checking for rdchk... (cached) no checking for getgrnam... (cached) yes checking for getgrent... (cached) yes checking for pathconf... (cached) yes checking for setpriv... (cached) no checking for setgidx... (cached) no checking for setuidx... (cached) no checking for setgroups... (cached) yes checking for sysconf... (cached) yes checking for mktime... (cached) yes checking for rename... (cached) yes checking for ftruncate... (cached) yes checking for stat64... (cached) yes checking for fstat64... (cached) yes checking for lstat64... (cached) yes checking for fopen64... (cached) yes checking for atexit... (cached) yes checking for grantpt... (cached) yes checking for dup2... (cached) yes checking for lseek64... (cached) yes checking for ftruncate64... (cached) yes checking for readdir64... (cached) yes checking for fseek64... (cached) no checking for fseeko64... (cached) yes checking for ftell64... (cached) no checking for ftello64... (cached) yes checking for setluid... (cached) no checking for getpwanam... (cached) no checking for setlinebuf... (cached) yes checking for srandom... (cached) yes checking for random... (cached) yes checking for srand... (cached) yes checking for rand... (cached) yes checking for setenv... (cached) no checking for usleep... (cached) yes checking for strcasecmp... (cached) yes checking for fcvt... (cached) yes checking for fcvtl... (cached) no checking for symlink... (cached) yes checking for readlink... (cached) yes checking for syscall... (cached) yes checking for _dup... (cached) yes checking for _dup2... (cached) yes checking for _opendir... (cached) yes checking for _readdir... (cached) yes checking for _seekdir... (cached) yes checking for _telldir... (cached) yes checking for _closedir... (cached) yes checking for __dup... (cached) no checking for __dup2... (cached) no checking for __opendir... (cached) no checking for __readdir... (cached) no checking for __seekdir... (cached) no checking for __telldir... (cached) no checking for __closedir... (cached) no checking for __getcwd... (cached) no checking for _getcwd... (cached) yes checking for __xstat... (cached) no checking for __fxstat... (cached) no checking for __lxstat... (cached) no checking for _stat... (cached) yes checking for _lstat... (cached) yes checking for _fstat... (cached) yes checking for __stat... (cached) no checking for __lstat... (cached) no checking for __fstat... (cached) no checking for _acl... (cached) yes checking for __acl... (cached) no checking for _facl... (cached) yes checking for __facl... (cached) no checking for _open... (cached) yes checking for __open... (cached) no checking for _chdir... (cached) yes checking for __chdir... (cached) no checking for _close... (cached) yes checking for __close... (cached) no checking for _fchdir... (cached) yes checking for __fchdir... (cached) no checking for _fcntl... (cached) yes checking for __fcntl... (cached) no checking for getdents... (cached) yes checking for _getdents... (cached) yes checking for __getdents... (cached) no checking for _lseek... (cached) yes checking for __lseek... (cached) no checking for _read... (cached) yes checking for __read... (cached) no checking for _write... (cached) yes checking for __write... (cached) no checking for _fork... (cached) yes checking for __fork... (cached) no checking for _stat64... (cached) yes checking for __stat64... (cached) no checking for _fstat64... (cached) yes checking for __fstat64... (cached) no checking for _lstat64... (cached) yes checking for __lstat64... (cached) no checking for __sys_llseek... (cached) no checking for llseek... (cached) yes checking for _llseek... (cached) yes checking for __llseek... (cached) no checking for readdir64... (cached) yes checking for _readdir64... (cached) yes checking for __readdir64... (cached) no checking for pread... (cached) yes checking for _pread... (cached) yes checking for __pread... (cached) no checking for pread64... (cached) yes checking for _pread64... (cached) yes checking for __pread64... (cached) no checking for pwrite... (cached) yes checking for _pwrite... (cached) yes checking for __pwrite... (cached) no checking for pwrite64... (cached) yes checking for _pwrite64... (cached) yes checking for __pwrite64... (cached) no checking for open64... (cached) yes checking for _open64... (cached) yes checking for __open64... (cached) no checking for creat64... (cached) yes checking for putprpwnam in -lsecurity... (cached) no checking for putprpwnam... (cached) no checking for putprpwnam in -lsec... (cached) no checking for putprpwnam... (cached) no checking for set_auth_parameters in -lsecurity... (cached) no checking for set_auth_parameters... (cached) no checking for set_auth_parameters in -lsec... (cached) no checking for set_auth_parameters... (cached) no checking for getspnam in -lgen... (cached) yes checking for getspnam... (cached) yes checking for getspnam in -lsecurity... (cached) no checking for getspnam... (cached) yes checking for getspnam in -lsec... (cached) yes checking for getspnam... (cached) yes checking for bigcrypt in -lsecurity... (cached) no checking for bigcrypt... (cached) no checking for bigcrypt... (cached) no checking for getprpwnam in -lsecurity... (cached) no checking for getprpwnam... (cached) no checking for getprpwnam... (cached) no checking whether gcc accepts -fpic... (cached) yes checking for long long... (cached) yes checking for LL suffix on long long integers... (cached) yes checking for 64 bit off_t... (cached) yes checking for off64_t... (cached) no checking for 64 bit ino_t... (cached) yes checking for ino64_t... (cached) no checking for struct dirent64... (cached) yes checking for unsigned char... (cached) no checking for sin_len in sock... (cached) no checking whether seekdir returns void... (cached) yes checking for __FILE__ macro... (cached) yes checking for __FUNCTION__ macro... (cached) yes checking if gettimeofday takes tz argument... (cached) yes checking for C99 vsnprintf... (cached) no checking for broken readdir... (cached) no checking for utimbuf... (cached) yes checking for pututline... (cached) yes checking for pututxline... (cached) yes checking for updwtmp... (cached) yes checking for updwtmpx... (cached) yes checking for getutmpx... (cached) yes checking for ut_name in utmp... (cached) yes checking for ut_user in utmp... (cached) yes checking for ut_id in utmp... (cached) yes checking for ut_host in utmp... (cached) no checking for ut_time in utmp... (cached) yes checking for ut_tv in utmp... (cached) no checking for ut_type in utmp... (cached) yes checking for ut_pid in utmp... (cached) yes checking for ut_exit in utmp... (cached) yes checking for ut_addr in utmp... (cached) no checking whether pututline returns pointer... (cached) yes checking for ut_syslen in utmpx... (cached) yes checking for Linux kernel oplocks... (cached) no checking for kernel change notify support... (cached) no checking for kernel share modes... (cached) no checking for IRIX kernel oplock type definitions... (cached) no checking for irix specific capabilities... (cached) no checking for int16 typedef included by rpc/rpc.h... (cached) no checking for uint16 typedef included by rpc/rpc.h... (cached) no checking for int32 typedef included by rpc/rpc.h... (cached) no checking for uint32 typedef included by rpc/rpc.h... (cached) no checking for conflicting AUTH_ERROR define in rpc/rpc.h... (cached) no checking for test routines... yes checking for ftruncate extend... (cached) yes checking for broken getgroups... (cached) no checking whether getpass should be replaced... (cached) yes checking for broken inet_ntoa... (cached) no checking for secure mkstemp... (cached) yes checking for sysconf(_SC_NGROUPS_MAX)... (cached) yes checking for root... (cached) yes checking for iface AIX... (cached) no checking for iface ifconf... (cached) yes checking for setresuid... (cached) no checking for setreuid... (cached) yes checking for working mmap... (cached) yes checking for ftruncate needs root... (cached) no checking for fcntl locking... (cached) yes checking for broken (glibc2.1/x86) 64 bit fcntl locking... (cached) no checking for 64 bit fcntl locking... (cached) yes checking for broken nisplus include files... (cached) yes checking whether to use smbwrapper... no checking whether to use AFS... no checking whether to use DCE/DFS auth... no checking whether to use Kerberos IV... no checking whether to use Kerberos 5... no checking whether to use AUTOMOUNT... no checking whether to use SMBMOUNT... no checking whether to use PAM password database... no checking for pam_get_data in -lpam... (cached) yes checking whether to use pam_smbpass... no checking for crypt... (cached) yes checking for a crypt that needs truncated salt... (cached) no checking whether to use TDB SAM database... no checking whether to use LDAP SAM database... yes checking whether to use NISPLUS SAM database... no checking whether to use traditional smbpasswd file... no checking whether to use NISPLUS_HOME... no checking whether to use SSL... no checking whether to use syslog logging... no checking whether to use profiling... no checking whether to support disk-quotas... no checking whether to support utmp accounting... no checking whether to support Microsoft Dfs... no checking whether to support the experimantal Samba vfs... no checking whether to build the libsmbclient shared library... no checking how to get filesystem space usage checking statvfs64 function (SVR4)... (cached) yes checking checking if large file support can be enabled... yes checking whether to support ACLs... no checking whether to build winbind... yes checking configure summary configure: error: summary failure. Aborting config
On Tue, 2002-04-23 at 19:02, Caleb Clark wrote:> Hi, ive been working on this for a while now. > > Samba-2.2.2, samba-2.2.3a both do the same thing, fail with configure > --with-ldapsam on solaris 8. > > Ive got openldap 2.0.18 compiled from source and installed in /usr/localHi Caleb, I had exactly the same problem myself. What solved it for me was using openldap 2.0.23. It's now working beautifully on an production E420 server with several hundred Windoze workstations! If you need any more help feel free to ask - I'm just putting the finishing touches on a HOWTO detailing how to use LDAP as the authentication back-end for a mixed Solaris, Linux, FreeBSD & Windows environment. best regards, Mark -- Just another farmer working on source code at night...