[Samba] Samba Comple Problem on Solaris 2.8

Derek Yarnell derek at umiacs.umd.edu
Wed May 18 20:47:06 GMT 2005


So I am compling the newest release of samba 3.0.14a on Solaris 2.8.

I can get it to compile but I don't get all the built in modules that I 
should and smbd when fired up bombs out with something like,
-------
derek at supernova:/opt/UMsmb/sbin# ./smbd -c /etc/samba/smb.conf -i
smbd version 3.0.14a started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
No builtin nor plugin backend for smbpasswd found
Loading smbpasswd failed!
-------
derek at supernova:/opt/UMsmb/sbin# cat /etc/samba/smb.conf
[global]
        server string = SuperNova
        workgroup = PC
        security = ADS
        netbios name = SUPERNOVA
        realm = PC.UMIACS.UMD.EDU
        password server = neo.pc.umiacs.umd.edu trinity.pc.umiacs.umd.edu
        log file = /var/adm/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
#       wins server = 128.8.130.146
[tmp]
        path = /tmp
        browseable = yes
        writeable = yes
------
derek at supernova:/opt/UMsmb/sbin# ./smbd -c /etc/samba/smb.conf -i -b | tail
   sizeof(int):     4
   sizeof(long):    4
   sizeof(uint8):   1
   sizeof(uint16):  2
   sizeof(uint32):  4
   sizeof(short):   2
   sizeof(void*):   4

Builtin modules:
    pdb_guest rpc_srv rpc_spoolss idmap_tdb
-------
And if you look at a good RHEL3 box,

[derek at xanadu /]$ cat /etc/redhat-release
Red Hat Enterprise Linux WS release 3 (Taroon Update 4)
[derek at xanadu /]$ rpm -q samba
samba-3.0.9-1.3E.2
[derek at xanadu /]$ /usr/sbin/smbd -b | tail
   sizeof(int):     4
   sizeof(long):    4
   sizeof(uint8):   1
   sizeof(uint16):  2
   sizeof(uint32):  4
   sizeof(short):   2
   sizeof(void*):   4

Builtin modules:
    pdb_ldap pdb_smbpasswd pdb_tdbsam pdb_guest rpc_lsa rpc_reg 
rpc_lsa_ds rpc_wks rpc_net rpc_dfs rpc_srv rpc_spoolss rpc_samr 
idmap_ldap idmap_tdb auth_rhosts auth_sam auth_unix auth_winbind 
auth_server auth_domain auth_builtin
-------

Attached are the full build args for the Solaris 2.8 compile.  Is there 
something I am missing? Also when the Makefile is generated I must put 
the following into the RPC_SERVER_OBJ line,

$(RPC_LSA_OBJ) $(RPC_LSA_DS_OBJ) $(RPC_REG_OBJ) $(RPC_DFS_OBJ) 
$(RPC_WKS_OBJ) $(RPC_NETLOG_OBJ) $(RPC_SAMR_OBJ)

Otherwise it will bomb out when linking in samba saying undefined symbols.

Thanks,
derek

-- 
---
Derek T. Yarnell
University of Maryland
Institute for Advanced Computer Studies
derek at umiacs.umd.edu

-------------- next part --------------
Build environment:
   Built by:    derek at spork.umiacs.umd.edu
   Built on:    Wed May 18 15:57:53 EDT 2005
   Built using: gcc
   Build host:  SunOS spork.umiacs.umd.edu 5.8 Generic_117350-11 sun4u sparc
   SRCDIR:      /export/work/Builds/UMsmb/samba-3.0.14a/source
   BUILDDIR:    /export/work/Builds/UMsmb/samba-3.0.14a/source

Paths:
   SBINDIR: /opt/UMsmb/sbin
   BINDIR: /opt/UMsmb/bin
   SWATDIR: /opt/UMsmb/swat
   CONFIGFILE: /etc/samba/smb.conf
   LOGFILEBASE: /opt/UMsmb/var
   LMHOSTSFILE: /etc/samba/lmhosts
   LIBDIR: /opt/UMsmb/lib
   SHLIBEXT: so
   LOCKDIR: /var/spool/locks
   PIDDIR: /var/run
   SMB_PASSWD_FILE: /etc/samba/private/smbpasswd
   PRIVATE_DIR: /etc/samba/private

 System Headers:
   HAVE_SYS_ACL_H
   HAVE_SYS_FCNTL_H
   HAVE_SYS_FILIO_H
   HAVE_SYS_IOCTL_H
   HAVE_SYS_IPC_H
   HAVE_SYS_MMAN_H
   HAVE_SYS_MODE_H
   HAVE_SYS_MOUNT_H
   HAVE_SYS_PARAM_H
   HAVE_SYS_RESOURCE_H
   HAVE_SYS_SELECT_H
   HAVE_SYS_SHM_H
   HAVE_SYS_SOCKET_H
   HAVE_SYS_SOCKIO_H
   HAVE_SYS_STATFS_H
   HAVE_SYS_STATVFS_H
   HAVE_SYS_STAT_H
   HAVE_SYS_SYSCALL_H
   HAVE_SYS_SYSLOG_H
   HAVE_SYS_SYSMACROS_H
   HAVE_SYS_TERMIO_H
   HAVE_SYS_TIME_H
   HAVE_SYS_TYPES_H
   HAVE_SYS_UNISTD_H
   HAVE_SYS_VFS_H
   HAVE_SYS_WAIT_H

 Headers:
   HAVE_ARPA_INET_H
   HAVE_COM_ERR_H
   HAVE_CTYPE_H
   HAVE_DIRENT_H
   HAVE_DLFCN_H
   HAVE_FCNTL_H
   HAVE_GLOB_H
   HAVE_GRP_H
   HAVE_GSSAPI_H
   HAVE_INTTYPES_H
   HAVE_KRB5_H
   HAVE_LANGINFO_H
   HAVE_LASTLOG_H
   HAVE_LBER_H
   HAVE_LDAP_H
   HAVE_LIMITS_H
   HAVE_LOCALE_H
   HAVE_MEMORY_H
   HAVE_NETINET_IN_SYSTM_H
   HAVE_NETINET_IP_H
   HAVE_NETINET_TCP_H
   HAVE_NET_IF_H
   HAVE_NSSWITCH_H
   HAVE_NSS_COMMON_H
   HAVE_POLL_H
   HAVE_READLINE_HISTORY_H
   HAVE_READLINE_READLINE_H
   HAVE_RPCSVC_YPCLNT_H
   HAVE_RPC_NETTYPE_H
   HAVE_SECURITY_PAM_APPL_H
   HAVE_SECURITY_PAM_MODULES_H
   HAVE_SHADOW_H
   HAVE_STDARG_H
   HAVE_STDLIB_H
   HAVE_STRINGS_H
   HAVE_STRING_H
   HAVE_STROPTS_H
   HAVE_SYSLOG_H
   HAVE_TERMIOS_H
   HAVE_TERMIO_H
   HAVE_UNISTD_H
   HAVE_UTIME_H

 UTMP Options:
   HAVE_GETUTMPX
   HAVE_UTMPX_H
   HAVE_UTMP_H
   HAVE_UT_UT_EXIT
   HAVE_UT_UT_ID
   HAVE_UT_UT_NAME
   HAVE_UT_UT_PID
   HAVE_UT_UT_TIME
   HAVE_UT_UT_TYPE
   HAVE_UT_UT_USER
   PUTUTLINE_RETURNS_UTMP
   WITH_UTMP

 HAVE_* Defines:
   HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
   HAVE_AP_OPTS_USE_SUBKEY
   HAVE_ATEXIT
   HAVE_BER_SCANF
   HAVE_CHMOD
   HAVE_CHOWN
   HAVE_CHROOT
   HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
   HAVE_CONNECT
   HAVE_COPY_AUTHENTICATOR
   HAVE_CREAT64
   HAVE_CRYPT
   HAVE_DIRENT_D_OFF
   HAVE_DLCLOSE
   HAVE_DLERROR
   HAVE_DLOPEN
   HAVE_DLSYM
   HAVE_DUP2
   HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
   HAVE_ENDNETGRENT
   HAVE_ERRNO_DECL
   HAVE_EXECL
   HAVE_EXPLICIT_LARGEFILE_SUPPORT
   HAVE_FCHMOD
   HAVE_FCHOWN
   HAVE_FCNTL_LOCK
   HAVE_FCVT
   HAVE_FOPEN64
   HAVE_FSEEKO64
   HAVE_FSTAT
   HAVE_FSTAT64
   HAVE_FSYNC
   HAVE_FTELLO64
   HAVE_FTRUNCATE
   HAVE_FTRUNCATE64
   HAVE_FTRUNCATE_EXTEND
   HAVE_FUNCTION_MACRO
   HAVE_GETCWD
   HAVE_GETDENTS
   HAVE_GETGRENT
   HAVE_GETGRNAM
   HAVE_GETMNTENT
   HAVE_GETNETGRENT
   HAVE_GETRLIMIT
   HAVE_GETSPNAM
   HAVE_GETTIMEOFDAY_TZ
   HAVE_GLOB
   HAVE_GRANTPT
   HAVE_GSSAPI
   HAVE_GSS_DISPLAY_STATUS
   HAVE_ICONV
   HAVE_IFACE_IFCONF
   HAVE_IMMEDIATE_STRUCTURES
   HAVE_INITGROUPS
   HAVE_INNETGR
   HAVE_KRB5
   HAVE_KRB5_AUTH_CON_SETKEY
   HAVE_KRB5_C_ENCTYPE_COMPARE
   HAVE_KRB5_ENCRYPT_DATA
   HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS
   HAVE_KRB5_FREE_DATA_CONTENTS
   HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES
   HAVE_KRB5_GET_PW_SALT
   HAVE_KRB5_KEYBLOCK_KEYVALUE
   HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK
   HAVE_KRB5_KRBHST_GET_ADDRINFO
   HAVE_KRB5_KT_COMPARE
   HAVE_KRB5_KT_FREE_ENTRY
   HAVE_KRB5_MK_REQ_EXTENDED
   HAVE_KRB5_PRINCIPAL_GET_COMP_STRING
   HAVE_KRB5_SESSION_IN_CREDS
   HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES
   HAVE_KRB5_STRING_TO_KEY
   HAVE_KRB5_STRING_TO_KEY_SALT
   HAVE_KRB5_USE_ENCTYPE
   HAVE_LDAP
   HAVE_LDAP_DOMAIN2HOSTLIST
   HAVE_LDAP_INIT
   HAVE_LDAP_INITIALIZE
   HAVE_LDAP_SET_REBIND_PROC
   HAVE_LIBASN1
   HAVE_LIBCOM_ERR
   HAVE_LIBGEN
   HAVE_LIBGSSAPI
   HAVE_LIBK5CRYPTO
   HAVE_LIBKRB5
   HAVE_LIBLBER
   HAVE_LIBLDAP
   HAVE_LIBNSL
   HAVE_LIBPAM
   HAVE_LIBREADLINE
   HAVE_LIBRESOLV
   HAVE_LIBROKEN
   HAVE_LIBSEC
   HAVE_LIBSENDFILE
   HAVE_LIBSOCKET
   HAVE_LINK
   HAVE_LLSEEK
   HAVE_LONGLONG
   HAVE_LSEEK64
   HAVE_LSTAT64
   HAVE_MEMMOVE
   HAVE_MEMSET
   HAVE_MKNOD
   HAVE_MKTIME
   HAVE_MMAP
   HAVE_NL_LANGINFO
   HAVE_NO_ACLS
   HAVE_OPEN64
   HAVE_PASSWD_PW_AGE
   HAVE_PASSWD_PW_COMMENT
   HAVE_PATHCONF
   HAVE_PIPE
   HAVE_POLL
   HAVE_PREAD
   HAVE_PREAD64
   HAVE_PUTUTLINE
   HAVE_PUTUTXLINE
   HAVE_PWRITE
   HAVE_PWRITE64
   HAVE_RAND
   HAVE_RANDOM
   HAVE_READDIR64
   HAVE_READLINK
   HAVE_REALPATH
   HAVE_RENAME
   HAVE_ROKEN_GETADDRINFO_HOSTSPEC
   HAVE_ROOT
   HAVE_SECURE_MKSTEMP
   HAVE_SELECT
   HAVE_SENDFILEV
   HAVE_SENDFILEV64
   HAVE_SETBUFFER
   HAVE_SETGROUPS
   HAVE_SETLINEBUF
   HAVE_SETLOCALE
   HAVE_SETNETGRENT
   HAVE_SETPGID
   HAVE_SETSID
   HAVE_SHMGET
   HAVE_SIGACTION
   HAVE_SIGPROCMASK
   HAVE_SIGSET
   HAVE_SIG_ATOMIC_T_TYPE
   HAVE_SNPRINTF
   HAVE_SNPRINTF_DECL
   HAVE_SOCKLEN_T_TYPE
   HAVE_SRAND
   HAVE_SRANDOM
   HAVE_STAT64
   HAVE_STAT_ST_BLKSIZE
   HAVE_STAT_ST_BLOCKS
   HAVE_STRCASECMP
   HAVE_STRCHR
   HAVE_STRDUP
   HAVE_STRERROR
   HAVE_STRFTIME
   HAVE_STRLCAT
   HAVE_STRLCPY
   HAVE_STRPBRK
   HAVE_STRTOUL
   HAVE_STRUCT_DIRENT64
   HAVE_STRUCT_FLOCK64
   HAVE_STRUCT_STAT_ST_RDEV
   HAVE_ST_RDEV
   HAVE_SYMLINK
   HAVE_SYSCALL
   HAVE_SYSCONF
   HAVE_SYSLOG
   HAVE_UNIXSOCKET
   HAVE_UPDWTMP
   HAVE_UPDWTMPX
   HAVE_USLEEP
   HAVE_UTIMBUF
   HAVE_UTIME
   HAVE_UTIMES
   HAVE_UX_UT_SYSLEN
   HAVE_VOLATILE
   HAVE_VSNPRINTF
   HAVE_VSNPRINTF_DECL
   HAVE_VSYSLOG
   HAVE_WAITPID
   HAVE_YP_GET_DEFAULT_DOMAIN
   HAVE__ACL
   HAVE__CHDIR
   HAVE__CLOSE
   HAVE__CLOSEDIR
   HAVE__DUP
   HAVE__DUP2
   HAVE__ET_LIST
   HAVE__FACL
   HAVE__FCHDIR
   HAVE__FCNTL
   HAVE__FORK
   HAVE__FSTAT
   HAVE__FSTAT64
   HAVE__GETCWD
   HAVE__GETDENTS
   HAVE__LLSEEK
   HAVE__LSEEK
   HAVE__LSTAT
   HAVE__LSTAT64
   HAVE__OPEN
   HAVE__OPEN64
   HAVE__OPENDIR
   HAVE__PREAD
   HAVE__PREAD64
   HAVE__PWRITE
   HAVE__PWRITE64
   HAVE__READ
   HAVE__READDIR
   HAVE__READDIR64
   HAVE__SEEKDIR
   HAVE__STAT
   HAVE__STAT64
   HAVE__TELLDIR
   HAVE__WRITE
   HAVE___VA_COPY

 --with Options:
   WITH_ADS
   WITH_SENDFILE
   WITH_UTMP
   WITH_WINBIND

 Build Options:
   BROKEN_GETGRNAM
   COMPILER_SUPPORTS_LL
   DEFAULT_DISPLAY_CHARSET
   DEFAULT_DOS_CHARSET
   DEFAULT_UNIX_CHARSET
   KRB5_PRINC_REALM_RETURNS_REALM
   LDAP_SET_REBIND_PROC_ARGS
   PACKAGE_BUGREPORT
   PACKAGE_NAME
   PACKAGE_STRING
   PACKAGE_TARNAME
   PACKAGE_VERSION
   REPLACE_GETPASS
   RETSIGTYPE
   SEEKDIR_RETURNS_VOID
   SIZEOF_INO_T
   SIZEOF_INT
   SIZEOF_LONG
   SIZEOF_OFF_T
   SIZEOF_SHORT
   SOLARIS_SENDFILE_API
   STAT_STATVFS64
   STAT_ST_BLOCKSIZE
   STDC_HEADERS
   STRING_STATIC_MODULES
   SUNOS5
   SYSCONF_SC_NGROUPS_MAX
   SYSV
   TIME_WITH_SYS_TIME
   USE_SETREUID
   WITH_ADS
   WITH_SENDFILE
   WITH_WINBIND
   WORDS_BIGENDIAN
   _ALIGNMENT_REQUIRED
   _FILE_OFFSET_BITS
   _LARGEFILE64_SOURCE
   _MAX_ALIGNMENT
   loff_t
   static_init_auth
   static_init_charset
   static_init_idmap
   static_init_pdb
   static_init_rpc
   static_init_vfs

Type sizes:
   sizeof(char):    1
   sizeof(int):     4
   sizeof(long):    4
   sizeof(uint8):   1
   sizeof(uint16):  2
   sizeof(uint32):  4
   sizeof(short):   2
   sizeof(void*):   4

Builtin modules:
    pdb_guest rpc_srv rpc_spoolss idmap_tdb


More information about the samba mailing list