Samba Team,

This is the scenario that I have experienced. I have two AIX servers. Samba V3 is [was] working. I decided to “upgrade” to version 4.

Perzl.org does not offer a pre-compiled version 4. 
IBM AIX Linux Tool box site offers SAMBA 4.6.15-1 for AIX 6.1 but lacks the “samba-tool”
The Group Bull site has a Samba Package 4.7.6-1 [AIX 6.1] with the Samba Tool. 

After Samba 4.7.6-1 installation; the samba-tool fails. Since i was unable to locate a more current samba-python package, i decided to compile Samba. I downloaded 4.8.3 & 4.8.4 source. 

# samba-tool
Traceback (most recent call last):
  File "/opt/freeware/bin/samba-tool", line 33, in <module>
    from samba.netcmd.main import cmd_sambatool
  File "/opt/freeware/lib/python2.7/site-packages/samba/__init__.py", line 30, in <module>
    from samba import _glue
ImportError:    0509-130 Symbol resolution failed for /opt/freeware/lib/python2.7/site-packages/samba/_glue.so because:
        0509-136   Symbol PyUnicodeUCS4_FromString (number 10) is not exported from
                   dependent module /opt/freeware/lib/libpython2.7.so.
        0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/samba/_glue.so.
        0509-026 System error: Cannot run a file that does not have a valid format.
        0509-192 Examine .loader section symbols with the dump -tv 

#/opt/freeware/lib/libpython3.6m.so | grep UCS4
[13090] m   0x1005392c     .text     1  unamex                    ._PyUnicode_FromUCS4
[13238] m   0x100651bc     .text     1  extern                    .PyUnicode_AsUCS4
[13240] m   0x1006523c     .text     1  extern                    .PyUnicode_AsUCS4Copy
[13768] m   0x20065518     .data     1  unamex                    PyUnicode_AsUCS4
[13770] m   0x20065518     .data     1  extern                    PyUnicode_AsUCS4
[13772] m   0x20065524     .data     1  unamex                    PyUnicode_AsUCS4Copy
[13774] m   0x20065524     .data     1  extern                    PyUnicode_AsUCS4Copy

# dump -tv /opt/freeware/lib/python2.7/site-packages/samba/_glue.so  | grep UCS4
[52]    m   0x00000000     undef     1  extern                    PyUnicodeUCS4_FromString
[100]   m   0x20000c90     .data     1  unamex                    PyUnicodeUCS4_FromString
[267]   m   0x10001138     .text     1  unamex                    .PyUnicodeUCS4_FromString
[269]   m   0x10001138     .text     1  extern                    .PyUnicodeUCS4_FromString

 # oslevel -s
7100-05-02-1810

 # oslevel -s
7200-02-02-1810

After Samba 4.7.6-1 installation; the samba-tool fails. Since i was unable to locate a more current samba-python package, i decided to compile Samba. I downloaded 4.8.3 & 4.8.4 source. 

./configure --prefix=/opt/freeware/samba484 --check-c-compiler=xlc  --disable-cups

i see this error with the ksh & bsh.

Checking for program krb5-config.heimdal                                                        : not found
Checking for program krb5-config                                                                : not found
Checking for gnutls >= 3.4.7                                                                    : not found
Checking for gnutls >= 3.0.0s                                                                   : not found
Checking for gnutls >= 1.4.0 and broken versions                                                : not found

/samba-4.8.3/source4/lib/tls/wscript:51: error: Building the AD DC requires GnuTLS (eg libgnutls-dev, gnutls-devel) for ldaps:// support and for the BackupKey protocol

 # rpm -qa | grep tls
gnutls-3.5.14-1.ppc
gnutls-devel-3.5.14-1.ppc

if i comment the GnuTLS check in the wscripy51 script, this is the next error. 

/export/samba/samba-4.8.4/source3/wscript:684: error: LDAP support not found. Try installing libldap2-dev or openldap-devel. Otherwise, use --without-ldap to build without LDAP support. LDAP support is required for the LDAP passdb backend, LDAP idmap backends and ADS. ADS support improves communication with Active Directory domain controllers.

 # rpm -qa | grep lda
openldap-devel-2.4.45-3.ppc
openldap-2.4.45-3.ppc

This is where I pause to rethink my scenario. 

These errors [or warnings] are an interesting Secondary issue; Because I really do not work with the compiler, I wonder if the error is a hard or soft error. It seems to me that I am missing a basic library path. 

Checking for program git                 : not found
Check for -MD                            : no
Checking for program gdb                 : not found
Checking for header sys/utsname.h        : yes
Checking uname sysname type              : AIX
Checking uname machine type              : 00C0F4F04B00
Checking uname release type              : 1
Checking uname version type              : 7
Checking for header stdio.h              : yes
Checking simple C program                : ok
Checking compiler accepts ['-Werror']    : yes
Checking linker accepts ['-Wl,-rpath,.'] : no
Checking linker accepts ['-Wl,-R,.']     : yes
Checking for rpath library support       : not found
Checking for -Wl,--version-script support  : not found
Checking compiler accepts ['-fvisibility=hidden', '-Werror'] : yes
Checking for HAVE_VISIBILITY_ATTR                            : ok
Checking for library constructor support                     : ok
Checking for library destructor support                      : ok
Checking for __attribute__                                   : ok
Checking compiler accepts ['-fPIC']                          : yes
Checking for inline                                          : inline
Checking for program pkg-config                              : /usr/bin/pkg-config
Checking for pkg-config version >= 0.0.0                     : no
Checking compiler accepts ['']                               : yes
Checking for header sys/types.h                              : yes
Checking for header sys/stat.h                               : yes
Checking for header stdlib.h                                 : yes
Checking for header stddef.h                                 : yes
Checking for header memory.h                                 : yes
Checking for header string.h                                 : yes
Checking for header strings.h                                : yes
Checking for header inttypes.h                               : yes
Checking for header stdint.h                                 : yes
Checking for header unistd.h                                 : yes
Checking for header minix/config.h                           : no
Checking for header ctype.h                                  : yes
Checking for header standards.h                              : yes
Checking for header stdbool.h                                : yes
Checking for header stdarg.h                                 : yes
Checking for header vararg.h                                 : no
Checking for header limits.h                                 : yes
Checking for header assert.h                                 : yes
Checking getconf LFS_CFLAGS                                  : getconf: 3016-021 Specified variable is not valid on this system.
not found
Checking for large file support without additional flags     : not found
Checking for -D_FILE_OFFSET_BITS=64                          : not found
Checking for -D_LARGE_FILES                                  : ok
Checking for header sys/time.h                               : yes
Checking for header time.h                                   : yes
Checking for header endian.h                                 : no
Checking for header sys/endian.h                             : no
Checking for HAVE_LITTLE_ENDIAN                              : not found
Checking for HAVE_BIG_ENDIAN                                 : not found
Checking for HAVE_LITTLE_ENDIAN - runtime                    : not found
Checking for HAVE_BIG_ENDIAN - runtime                       : ok
Checking for header signal.h                                 : yes
Checking if signal handlers return int                       : not found
Checking for variable __FUNCTION__                           : ok
Checking for va_copy                                         : ok
Checking for HAVE__VA_ARGS__MACRO                            : ok
Checking for header linux/types.h                            : no
Checking for header crypt.h                                  : yes
Checking for header locale.h                                 : yes
Checking for header acl/libacl.h                             : no
Checking for header compat.h                                 : no
Checking for header attr/xattr.h                             : no
Checking for header dustat.h                                 : no
Checking for header fcntl.h                                  : yes
Checking for header fnmatch.h                                : yes
Checking for header glob.h                                   : yes
Checking for header history.h                                : no
Checking for header krb5.h                                   : no
Checking for header langinfo.h                               : yes
Checking for header libaio.h                                 : no
Checking for header ndir.h                                   : no
Checking for header pwd.h                                    : yes
Checking for header shadow.h                                 : no
Checking for header sys/acl.h                                : yes
Checking for header sys/attributes.h                         : no
Checking for header attr/attributes.h                        : no
Checking for header sys/capability.h                         : no
Checking for header sys/dir.h                                : yes
Checking for header sys/epoll.h                              : no
Checking for header port.h                                   : no
Checking for header sys/fcntl.h                              : no
Checking for header sys/filio.h                              : no
Checking for header sys/filsys.h                             : yes
Checking for header sys/fs/s5param.h                         : no
Checking for header sys/fs/vx/quota.h                        : no
Checking for header sys/id.h                                 : yes
Checking for header sys/ioctl.h                              : yes
Checking for header sys/ipc.h                                : yes
Checking for header sys/mman.h                               : yes
Checking for header sys/mode.h                               : yes
Checking for header sys/ndir.h                               : no
Checking for header sys/priv.h                               : yes
Checking for header sys/resource.h                           : yes
Checking for header sys/security.h                           : no
Checking for header sys/shm.h                                : yes
Checking for header sys/statfs.h                             : yes
Checking for header sys/statvfs.h                            : yes
Checking for header sys/termio.h                             : yes
Checking for header sys/vfs.h                                : yes
Checking for header sys/xattr.h                              : no
Checking for header termio.h                                 : yes
Checking for header termios.h                                : yes
Checking for header sys/file.h                               : yes
Checking for header sys/ucontext.h                           : yes
Checking for header sys/wait.h                               : yes
Checking for declaration of malloc                           : ok
Checking for header grp.h                                    : yes
Checking for header sys/select.h                             : yes
Checking for header setjmp.h                                 : yes
Checking for header utime.h                                  : yes
Checking for header sys/syslog.h                             : yes
Checking for header syslog.h                                 : yes
Checking for header sys/mount.h                              : no
Checking for header mntent.h                                 : yes
Checking for header stropts.h                                : yes
Checking for header unix.h                                   : no
Checking for header sys/param.h                              : yes
Checking for header sys/socket.h                             : yes
Checking for header netinet/in.h                             : yes
Checking for header netdb.h                                  : yes
Checking for header arpa/inet.h                              : yes
Checking for header netinet/in_systm.h                       : yes
Checking for header netinet/ip.h                             : yes
Checking for header netinet/tcp.h                            : yes
Checking for header netinet/in_ip.h                          : no
Checking for header sys/sockio.h                             : no
Checking for header sys/un.h                                 : yes
Checking for header sys/uio.h                                : yes
Checking for header ifaddrs.h                                : no
Checking for header direct.h                                 : no
Checking for header dirent.h                                 : yes
Checking for header windows.h                                : no
Checking for header winsock2.h                               : no
Checking for header ws2tcpip.h                               : no
Checking for header errno.h                                  : yes
Checking for header getopt.h                                 : no
Checking for header iconv.h                                  : yes
Checking for header nss.h                                    : no
Checking for header sasl/sasl.h                              : no
Checking for inotify_init                                    : not found
Checking for library inotify                                 : not found
Checking for inotify_init                                    : not found
Checking for header security/pam_appl.h                      : yes
Checking for header zlib.h                                   : yes
Checking for header asm/unistd.h                             : no
Checking for header aio.h                                    : yes
Checking for header sys/unistd.h                             : no
Checking for header alloca.h                                 : yes
Checking for header float.h                                  : yes
Checking for header rpc/rpc.h                                : yes
Checking for header rpc/nettype.h                            : yes
Checking for tirpc rpc headers in default system path        : not found
Checking for header rpcsvc/yp_prot.h                         : no
Checking for libnsl                                          : not found
Checking for header rpcsvc/nis.h                             : yes
Checking for header rpcsvc/ypclnt.h                          : yes
Checking for header sys/sysctl.h                             : no
Checking for header sys/fileio.h                             : no
Checking for header sys/filesys.h                            : no
Checking for header sys/dustat.h                             : no
Checking for header sys/sysmacros.h                          : yes
Checking for header xfs/libxfs.h                             : no
Checking for header netgroup.h                               : no
Checking for header valgrind.h                               : no
Checking for header valgrind/valgrind.h                      : no
Checking for header valgrind/memcheck.h                      : no
Checking for header nss_common.h                             : no
Checking for header nsswitch.h                               : no
Checking for header ns_api.h                                 : no
Checking for header sys/extattr.h                            : no
Checking for header sys/ea.h                                 : yes
Checking for header sys/proplist.h                           : no
Checking for header sys/cdefs.h                              : yes
Checking for header utmp.h                                   : yes
Checking for header utmpx.h                                  : yes
Checking for header lastlog.h                                : no
Checking for header syscall.h                                : no
Checking for header sys/syscall.h                            : no
Checking for header sys/atomic.h                             : no
Checking for header libgen.h                                 : yes
Checking compiler accepts -Wno-format-truncation             : yes
Checking compiler accepts -Wno-unused-function               : yes
Checking for header sys/prctl.h                              : no
Checking for prctl syscall                                   : not found
Checking for O_DIRECT flag to open(2)                        : ok
Checking for long long                                       : ok
Checking for intptr_t                                        : ok
Checking for uintptr_t                                       : ok
Checking for ptrdiff_t                                       : ok
Checking for comparison_fn_t                                 : not found
Checking for _Bool                                           : ok
Checking for bool                                            : ok
Checking for int8_t                                          : ok
Checking for uint8_t                                         : ok
Checking for int16_t                                         : ok
Checking for uint16_t                                        : ok
Checking for int32_t                                         : ok
Checking for uint32_t                                        : ok
Checking for int64_t                                         : ok
Checking for uint64_t                                        : ok
Checking for size_t                                          : ok
Checking for ssize_t                                         : ok
Checking for ino_t                                           : ok
Checking for loff_t                                          : not found
Checking for offset_t                                        : ok
Checking for volatile int                                    : ok
Checking for uint_t                                          : ok
Checking for blksize_t                                       : ok
Checking for blkcnt_t                                        : ok
Checking if size of bool == 1                                : ok
Checking if size of char == 1                                : ok
Checking if size of int == 1                                 : not found
Checking if size of int == 2                                 : not found
Checking if size of int == 4                                 : ok
Checking if size of long long == 1                           : not found
Checking if size of long long == 2                           : not found
Checking if size of long long == 4                           : not found
Checking if size of long long == 8                           : ok
Checking if size of long == 1                                : not found
Checking if size of long == 2                                : not found
Checking if size of long == 4                                : ok
Checking if size of short == 1                               : not found
Checking if size of short == 2                               : ok
Checking if size of size_t == 1                              : not found
Checking if size of size_t == 2                              : not found
Checking if size of size_t == 4                              : ok
Checking if size of ssize_t == 1                             : not found
Checking if size of ssize_t == 2                             : not found
Checking if size of ssize_t == 4                             : ok
Checking if size of int8_t == 1                              : ok
Checking if size of uint8_t == 1                             : ok
Checking if size of int16_t == 1                             : not found
Checking if size of int16_t == 2                             : ok
Checking if size of uint16_t == 1                            : not found
Checking if size of uint16_t == 2                            : ok
Checking if size of int32_t == 1                             : not found
Checking if size of int32_t == 2                             : not found
Checking if size of int32_t == 4                             : ok
Checking if size of uint32_t == 1                            : not found
Checking if size of uint32_t == 2                            : not found
Checking if size of uint32_t == 4                            : ok
Checking if size of int64_t == 1                             : not found
Checking if size of int64_t == 2                             : not found
Checking if size of int64_t == 4                             : not found
Checking if size of int64_t == 8                             : ok
Checking if size of uint64_t == 1                            : not found
Checking if size of uint64_t == 2                            : not found
Checking if size of uint64_t == 4                            : not found
Checking if size of uint64_t == 8                            : ok
Checking if size of void* == 1                               : not found
Checking if size of void* == 2                               : not found
Checking if size of void* == 4                               : ok
Checking if size of off_t == 1                               : not found
Checking if size of off_t == 2                               : not found
Checking if size of off_t == 4                               : not found
Checking if size of off_t == 8                               : ok
Checking if size of dev_t == 1                               : not found
Checking if size of dev_t == 2                               : not found
Checking if size of dev_t == 4                               : ok
Checking if size of ino_t == 1                               : not found
Checking if size of ino_t == 2                               : not found
Checking if size of ino_t == 4                               : ok
Checking if size of time_t == 1                              : not found
Checking if size of time_t == 2                              : not found
Checking if size of time_t == 4                              : ok
Checking for socklen_t                                       : ok
Checking for struct ifaddrs                                  : not found
Checking for struct addrinfo                                 : ok
Checking for struct sockaddr                                 : ok
Checking for HAVE_STRUCT_SOCKADDR_IN6                        : ok
Checking for struct sockaddr_storage                         : ok
Checking for sa_family_t                                     : ok
Checking for sig_atomic_t                                    : ok
Checking for sigsetmask                                      : ok
Checking for siggetmask                                      : ok
Checking for sigprocmask                                     : ok
Checking for sigblock                                        : ok
Checking for sigaction                                       : ok
Checking for sigset                                          : ok
Checking for inet_ntoa                                       : ok
Checking for inet_aton                                       : ok
Checking for inet_ntop                                       : ok
Checking for inet_pton                                       : ok
Checking for connect                                         : ok
Checking for gethostbyname                                   : ok
Checking for getaddrinfo                                     : ok
Checking for getnameinfo                                     : ok
Checking for freeaddrinfo                                    : ok
Checking for gai_strerror                                    : ok
Checking for socketpair                                      : ok
Checking for variable IPV6_V6ONLY                            : ok
Checking for header net/if.h                                 : yes
Checking for HAVE_IPV6                                       : ok
Checking whether we have ucontext_t                          : ok
Checking for __sync_fetch_and_add compiler builtin           : ok
Checking for atomic_add_32 compiler builtin                  : not found
Checking for strdup                                          : ok
Checking for memmem                                          : ok
Checking for printf                                          : ok
Checking for memset                                          : ok
Checking for memcpy                                          : ok
Checking for memmove                                         : ok
Checking for strcpy                                          : ok
Checking for strncpy                                         : ok
Checking for bzero                                           : ok
Checking for shl_load                                        : not found
Checking for shl_unload                                      : not found
Checking for shl_findsym                                     : not found
Checking for pipe                                            : ok
Checking for strftime                                        : ok
Checking for srandom                                         : ok
Checking for random                                          : ok
Checking for srand                                           : ok
Checking for rand                                            : ok
Checking for usleep                                          : ok
Checking for setbuffer                                       : ok
Checking for lstat                                           : ok
Checking for getpgrp                                         : ok
Checking for utime                                           : ok
Checking for utimes                                          : ok
Checking for setuid                                          : ok
Checking for seteuid                                         : ok
Checking for setreuid                                        : ok
Checking for setresuid                                       : not found
Checking for setgid                                          : ok
Checking for setegid                                         : ok
Checking for setregid                                        : ok
Checking for setresgid                                       : not found
Checking for chroot                                          : ok
Checking for strerror                                        : ok
Checking for vsyslog                                         : not found
Checking for setlinebuf                                      : ok
Checking for mktime                                          : ok
Checking for ftruncate                                       : ok
Checking for chsize                                          : not found
Checking for rename                                          : ok
Checking for waitpid                                         : ok
Checking for wait4                                           : ok
Checking for initgroups                                      : ok
Checking for pread                                           : ok
Checking for pwrite                                          : ok
Checking for strndup                                         : ok
Checking for strcasestr                                      : not found
Checking for strsep                                          : ok
Checking for strtok_r                                        : ok
Checking for mkdtemp                                         : ok
Checking for dup2                                            : ok
Checking for dprintf                                         : ok
Checking for vdprintf                                        : ok
Checking for isatty                                          : ok
Checking for chown                                           : ok
Checking for lchown                                          : ok
Checking for link                                            : ok
Checking for readlink                                        : ok
Checking for symlink                                         : ok
Checking for realpath                                        : ok
Checking for snprintf                                        : ok
Checking for vsnprintf                                       : ok
Checking for asprintf                                        : not found
Checking for vasprintf                                       : not found
Checking for setenv                                          : ok
Checking for unsetenv                                        : ok
Checking for strnlen                                         : ok
Checking for strtoull                                        : ok
Checking for __strtoull                                      : not found
Checking for strtouq                                         : not found
Checking for strtoll                                         : ok
Checking for __strtoll                                       : not found
Checking for strtoq                                          : not found
Checking for memalign                                        : not found
Checking for posix_memalign                                  : ok
Checking for posix_fallocate-capable libc                    : ok
Checking for posix_fallocate                                 : ok
Checking for prctl                                           : not found
Checking for dirname                                         : ok
Checking for basename                                        : ok
Checking for strlcpy                                         : not found
Checking for strlcat                                         : not found
Checking for strlcpy                                         : not found
Checking for strlcat                                         : not found
Checking for library bsd                                     : yes
Checking for strlcpy                                         : not found
Checking for strlcat                                         : not found
Checking for getpeereid                                      : ok
Checking for library setproctitle                            : not found
Checking for setproctitle                                    : not found
Checking for setproctitle                                    : not found
Checking for setproctitle_init                               : not found
Checking for setproctitle_init                               : not found
Checking for closefrom                                       : not found
Checking for closefrom                                       : not found
Checking whether we can use SO_PEERCRED to get socket credentials : not found
Checking correct behavior of strtoll                              : not found
Checking for if_nametoindex                                       : ok
Checking for strerror_r                                           : ok
Checking for getdirentries                                        : ok
Checking for getdents                                             : not found
Checking for syslog                                               : ok
Checking for gai_strerror                                         : ok
Checking for get_current_dir_name                                 : ok
Checking for timegm                                               : not found
Checking for getifaddrs                                           : not found
Checking for freeifaddrs                                          : not found
Checking for mmap                                                 : ok
Checking for setgroups                                            : ok
Checking for syscall                                              : not found
Checking for setsid                                               : ok
Checking for getgrent_r                                           : ok
Checking for getgrgid_r                                           : ok
Checking for getgrnam_r                                           : ok
Checking for getgrouplist                                         : not found
Checking for getpagesize                                          : ok
Checking for getpwent_r                                           : ok
Checking for getpwnam_r                                           : ok
Checking for getpwuid_r                                           : ok
Checking for epoll_create                                         : not found
Checking for port_create                                          : not found
Checking for fgetxattr                                            : not found
Checking for flistea                                              : ok
Checking for flistxattr                                           : not found
Checking for fremovexattr                                         : not found
Checking for fsetxattr                                            : not found
Checking for getxattr                                             : not found
Checking for listxattr                                            : not found
Checking for removexattr                                          : not found
Checking for setxattr                                             : not found
Checking for library attr                                         : not found
Checking for fgetxattr                                            : not found
Checking for flistxattr                                           : not found
Checking for fremovexattr                                         : not found
Checking for fsetxattr                                            : not found
Checking for getxattr                                             : not found
Checking for listxattr                                            : not found
Checking for removexattr                                          : not found
Checking for setxattr                                             : not found
Checking for attr_get                                             : not found
Checking for attr_getf                                            : not found
Checking for attr_list                                            : not found
Checking for attr_listf                                           : not found
Checking for attropen                                             : not found
Checking for attr_remove                                          : not found
Checking for attr_removef                                         : not found
Checking for attr_set                                             : not found
Checking for attr_setf                                            : not found
Checking for extattr_delete_fd                                    : not found
Checking for extattr_delete_file                                  : not found
Checking for extattr_get_fd                                       : not found
Checking for extattr_get_file                                     : not found
Checking for extattr_list_fd                                      : not found
Checking for extattr_list_file                                    : not found
Checking for extattr_set_fd                                       : not found
Checking for extattr_set_file                                     : not found
Checking for fgetea                                               : ok
Checking for fremoveea                                            : ok
Checking for fsetea                                               : ok
Checking for getea                                                : ok
Checking for listea                                               : ok
Checking for removeea                                             : ok
Checking for setea                                                : ok
Checking for library attr                                         : not found
Checking for attr_get                                             : not found
Checking for attr_getf                                            : not found
Checking for attr_list                                            : not found
Checking for attr_listf                                           : not found
Checking for attropen                                             : not found
Checking for attr_remove                                          : not found
Checking for attr_removef                                         : not found
Checking for attr_set                                             : not found
Checking for attr_setf                                            : not found
Checking for extattr_delete_fd                                    : not found
Checking for extattr_delete_file                                  : not found
Checking for extattr_get_fd                                       : not found
Checking for extattr_get_file                                     : not found
Checking for extattr_list_fd                                      : not found
Checking for extattr_list_file                                    : not found
Checking for extattr_set_fd                                       : not found
Checking for extattr_set_file                                     : not found
Checking whether xattr interface takes additional options         : not found
Checking for dlopen                                               : ok
Checking for dlsym                                                : ok
Checking for dlerror                                              : ok
Checking for dlclose                                              : ok
Checking for declaration of dlopen                                : ok
Checking C prototype for dlopen                                   : not found
Checking for fdatasync                                            : ok
Checking for declaration of fdatasync                             : ok
Checking for clock_gettime                                        : ok
Checking whether the clock_gettime clock ID CLOCK_MONOTONIC is available : ok
Checking whether the clock_gettime clock ID CLOCK_PROCESS_CPUTIME_ID is available : ok
Checking whether the clock_gettime clock ID CLOCK_REALTIME is available           : ok
Checking for struct timespec                                                      : ok
Checking for header arpa/nameser.h                                                : yes
Checking for header resolv.h                                                      : yes
Checking for res_search                                                           : ok
Checking for header libintl.h                                                     : no
Checking for library intl                                                         : yes
Checking for declaration of dgettext                                              : not found
Checking for declaration of dgettext (as enum)                                    : not found
Checking for declaration of gettext                                               : not found
Checking for declaration of gettext (as enum)                                     : not found
Checking for declaration of bindtextdomain                                        : not found
Checking for declaration of bindtextdomain (as enum)                              : not found
Checking for declaration of textdomain                                            : not found
Checking for declaration of textdomain (as enum)                                  : not found
Checking for declaration of bind_textdomain_codeset                               : not found
Checking for declaration of bind_textdomain_codeset (as enum)                     : not found
Checking for bindtextdomain                                                       : not found
Checking for textdomain                                                           : not found
Checking for bind_textdomain_codeset                                              : not found
Checking for bindtextdomain                                                       : not found
Checking for textdomain                                                           : not found
Checking for bind_textdomain_codeset                                              : not found
Checking for dgettext                                                             : not found
Checking for gettext                                                              : not found
Checking for dgettext                                                             : not found
Checking for gettext                                                              : not found
Checking for dgettext                                                             : ok
Checking for gettext                                                              : ok
Checking for bindtextdomain                                                       : ok
Checking for textdomain                                                           : ok
Checking for bind_textdomain_codeset                                              : ok
Checking for pthread_create                                                       : ok
Checking for library pthread                                                      : yes
Checking for pthread_attr_init                                                    : ok
Checking for pthread_mutexattr_setrobust                                          : not found
Checking for pthread_mutexattr_setrobust                                          : not found
Checking for pthread_mutexattr_setrobust_np                                       : not found
Checking for pthread_mutexattr_setrobust_np                                       : not found
Checking for declaration of PTHREAD_MUTEX_ROBUST                                  : not found
Checking for declaration of PTHREAD_MUTEX_ROBUST (as enum)                        : not found
Checking for declaration of PTHREAD_MUTEX_ROBUST_NP                               : not found
Checking for declaration of PTHREAD_MUTEX_ROBUST_NP (as enum)                     : not found
Checking for pthread_mutex_consistent                                             : not found
Checking for pthread_mutex_consistent                                             : not found
Checking for pthread_mutex_consistent_np                                          : not found
Checking for pthread_mutex_consistent_np                                          : not found
Checking for crypt                                                                : ok
Checking for crypt_r                                                              : ok
Checking for header readline.h                                                    : no
Checking for header readline/readline.h                                           : no
Checking for header readline/history.h                                            : no
Checking for variable rl_event_hook                                               : not found
Checking for declaration of snprintf                                              : ok
Checking for declaration of vsnprintf                                             : ok
Checking for declaration of asprintf                                              : not found
Checking for declaration of asprintf (as enum)                                    : not found
Checking for declaration of vasprintf                                             : not found
Checking for declaration of vasprintf (as enum)                                   : not found
Checking for declaration of errno                                                 : ok
Checking for declaration of EWOULDBLOCK                                           : ok
Checking for declaration of environ                                               : ok
Checking for declaration of getgrent_r                                            : ok
Checking for declaration of getpwent_r                                            : ok
Checking for declaration of pread                                                 : ok
Checking for declaration of pwrite                                                : ok
Checking for declaration of setenv                                                : ok
Checking for declaration of setresgid                                             : not found
Checking for declaration of setresgid (as enum)                                   : not found
Checking for declaration of setresuid                                             : not found
Checking for declaration of setresuid (as enum)                                   : not found
Checking for eventfd                                                              : not found
Checking for header poll.h                                                        : yes
Checking for poll                                                                 : ok
Checking for strptime                                                             : ok
Checking for declaration of strptime                                              : ok
Checking for working strptime                                                     : ok
Checking for declaration of gettimeofday                                          : ok
Checking C prototype for gettimeofday                                             : not found
Checking C prototype for gettimeofday                                             : ok
Checking for C99 vsnprintf                                                        : not found
Checking for HAVE_SHARED_MMAP                                                     : ok
Checking for HAVE_MREMAP                                                          : not found
Checking for HAVE_INCOHERENT_MMAP                                                 : not found
Checking for HAVE_IMMEDIATE_STRUCTURES                                            : not found
Checking for HAVE_MKDIR_MODE                                                      : ok
Checking for member st_mtim.tv_nsec in struct stat                                : ok
Checking for member st_rdev in struct stat                                        : ok
Checking for member st_rdev in struct stat                                        : ok
Checking for member ss_family in struct sockaddr_storage                          : ok
Checking for member __ss_family in struct sockaddr_storage                        : not found
Checking for member sa_len in struct sockaddr                                     : ok
Checking for member sin_len in struct sockaddr_in                                 : ok
Checking for HAVE_UNIXSOCKET                                                      : ok
Checking for HAVE_SECURE_MKSTEMP                                                  : ok
Checking for HAVE_IFACE_GETIFADDRS                                                : not found
Checking for HAVE_IFACE_AIX                                                       : ok
Checking for getpwnam_r                                                           : ok
Checking for getpwuid_r                                                           : ok
Checking for getpwent_r                                                           : ok
Checking for declaration of getpwent_r                                            : ok
Checking C prototype for getpwent_r                                               : not found
Checking for declaration of getgrent_r                                            : ok
Checking C prototype for getgrent_r                                               : not found
Checking C prototype for getpwent_r                                               : not found
Checking C prototype for getgrent_r                                               : not found
Checking for getgrouplist                                                         : not found
Checking for strerror_r                                                           : ok
Checking for XSI (rather than GNU) prototype for strerror_r                       : ok
Checking for HAVE_FUSE_FUSE_LOWLEVEL_H                                            : not found
Checking for program perl                                                         : /usr/bin/perl
Checking for program perl                                                         : /usr/bin/perl
Checking for program perl                                                         : /usr/bin/perl
Checking for perl 5.0.0                                                           : ok 5.10.1
Checking for perl $Config{vendorprefix}:                                          : not found
PERL_ARCH_INSTALL_DIR:                                                            : '${LIBDIR}/perl5'
PERL_LIB_INSTALL_DIR:                                                             : '${DATADIR}/perl5'
PERL_INC:                                                                         : ['/usr/opt/perl5/lib/5.10.1/aix-thread-multi', '/usr/opt/perl5/lib/5.10.1', '/usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi', '/usr/opt/perl5/lib/site_perl/5.10.1', '/usr/opt/perl5/lib/site_perl']
Checking for program xsltproc                                                     : not found
Checking for program python                                                       : /usr/local/bin/python
Checking for program python                                                       : /usr/local/bin/python
Checking for program python                                                       : /usr/local/bin/python
Checking for Python version >= 2.6.0                                              : ok 2.7.10
Checking for library python2.7                                                    : yes
Checking for program python2.7-config                                             : /usr/local/bin/python2.7-config
Checking for custom code                                                          : yes
Dynconfig[STATEDIR]:                                                              : '/opt/freeware/samba484/var/locks'
Dynconfig[SCRIPTSBINDIR]:                                                         : '/opt/freeware/samba484/sbin'
Dynconfig[PAMMODULESDIR]:                                                         : '/opt/freeware/samba484/lib/security'
Dynconfig[WINBINDD_SOCKET_DIR]:                                                   : '/opt/freeware/samba484/var/run/winbindd'
Dynconfig[PRIVATE_DIR]:                                                           : '/opt/freeware/samba484/private'
Dynconfig[LMHOSTSFILE]:                                                           : '/opt/freeware/samba484/etc/lmhosts'
Dynconfig[SETUPDIR]:                                                              : '/opt/freeware/samba484/share/setup'
Dynconfig[PIDDIR]:                                                                : '/opt/freeware/samba484/var/run'
Dynconfig[PKGCONFIGDIR]:                                                          : '/opt/freeware/samba484/lib/pkgconfig'
Dynconfig[DATADIR]:                                                               : '/opt/freeware/samba484/share'
Dynconfig[CACHEDIR]:                                                              : '/opt/freeware/samba484/var/cache'
Dynconfig[SBINDIR]:                                                               : '/opt/freeware/samba484/sbin'
Dynconfig[NCALRPCDIR]:                                                            : '/opt/freeware/samba484/var/run/ncalrpc'
Dynconfig[BINDDNS_DIR]:                                                           : '/opt/freeware/samba484/bind-dns'
Dynconfig[LOCKDIR]:                                                               : '/opt/freeware/samba484/var/lock'
Dynconfig[PYTHONARCHDIR]:                                                         : '/opt/freeware/samba484/lib/python2.7/site-packages'
Dynconfig[PERL_LIB_INSTALL_DIR]:                                                  : '/opt/freeware/samba484/share/perl5'
Dynconfig[LOGFILEBASE]:                                                           : '/opt/freeware/samba484/var'
Dynconfig[PYTHONDIR]:                                                             : '/opt/freeware/samba484/lib/python2.7/site-packages'
Dynconfig[PERL_ARCH_INSTALL_DIR]:                                                 : '/opt/freeware/samba484/lib/perl5'
Dynconfig[NTP_SIGND_SOCKET_DIR]:                                                  : '/opt/freeware/samba484/var/lib/ntp_signd'
Dynconfig[CONFIGFILE]:                                                            : '/opt/freeware/samba484/etc/smb.conf'
Dynconfig[SOCKET_DIR]:                                                            : '/opt/freeware/samba484/var/run'
Dynconfig[MODULESDIR]:                                                            : '/opt/freeware/samba484/lib'
Dynconfig[LIBDIR]:                                                                : '/opt/freeware/samba484/lib'
Dynconfig[LOCALEDIR]:                                                             : '/opt/freeware/samba484/share/locale'
Dynconfig[NMBDSOCKETDIR]:                                                         : '/opt/freeware/samba484/var/run/nmbd'
Dynconfig[INCLUDEDIR]:                                                            : '/opt/freeware/samba484/include'
Dynconfig[CODEPAGEDIR]:                                                           : '/opt/freeware/samba484/share/codepages'
Dynconfig[PRIVATELIBDIR]:                                                         : '/opt/freeware/samba484/lib/private'
Dynconfig[PRIVILEGED_SOCKET_DIR]:                                                 : '/opt/freeware/samba484/var/lib'
Dynconfig[LIBEXECDIR]:                                                            : '/opt/freeware/samba484/libexec'
Dynconfig[SMB_PASSWD_FILE]:                                                       : '/opt/freeware/samba484/private/smbpasswd'
Dynconfig[BINDIR]:                                                                : '/opt/freeware/samba484/bin'
Dynconfig[CONFIGDIR]:                                                             : '/opt/freeware/samba484/etc'
Checking for third party Python module dns.resolver                               : bundled
Checking for third party Python module iso8601                                    : bundled
Checking for longjmp                                                              : ok
Checking for siglongjmp                                                           : ok
Checking for system cmocka (>=1.1.1)                                              : not found
Checking for system popt                                                          : not found
Checking for header popt.h                                                        : no
Checking for system z (>=1.2.3)                                                   : not found
Checking for library z                                                            : yes
Checking for zlibVersion                                                          : ok
Checking for system z (>=1.2.3)                                                   : ok
Checking for system tdb (>=1.3.15)                                                : not found
Checking for stylesheet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl : not found
A local copy of the docbook.xsl wasn't found on your system consider installing package like docbook-xsl
Checking for Python version >= 2.4.2                                                            : ok 2.7.10
Checking for Python version >= 2.4.2                                                            : ok 2.7.10
Checking for python headers                                                                     : using cache
Checking linker accepts -Wl,-no-undefined                                                       : no
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : no
Checking for stylesheet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl : not found
A local copy of the docbook.xsl wasn't found on your system consider installing package like docbook-xsl
Checking for header sys/auxv.h                                                                  : no
Checking for getauxval                                                                          : not found
Checking linker accepts -Wl,-no-undefined                                                       : no
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : no
Checking for Python version >= 2.4.2                                                            : ok 2.7.10
Checking for python headers                                                                     : using cache
Checking for system talloc (>=2.1.11)                                                           : not found
Checking for system pytalloc-util (>=2.1.11)                                                    : not found
Checking for epoll_create                                                                       : not found
Checking value of NSIG                                                                          : 64
Checking value of _NSIG                                                                         : not found
Checking value of SIGRTMAX                                                                      : 57
Checking value of SIGRTMIN                                                                      : 50
Checking for program python                                                                     : /usr/local/bin/python
Checking for Python version >= 2.4.2                                                            : ok 2.7.10
Checking for python headers                                                                     : using cache
Checking linker accepts -Wl,-no-undefined                                                       : no
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : no
Checking for program python                                                                     : /usr/local/bin/python
Checking for program xsltproc                                                                   : not found
Checking for Python version >= 2.4.2                                                            : ok 2.7.10
Checking for python headers                                                                     : using cache
Checking linker accepts -Wl,-no-undefined                                                       : no
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : no
Checking linker accepts ['-Wl,--wrap=test']                                                     : no
Checking for u_char                                                                             : ok
Checking for u_int32_t                                                                          : ok
Checking for header err.h                                                                       : no
Checking for header sys/bswap.h                                                                 : no
Checking for header sys/stropts.h                                                               : yes
Checking for header sys/timeb.h                                                                 : yes
Checking for header sys/times.h                                                                 : yes
Checking for header timezone.h                                                                  : no
Checking for header ttyname.h                                                                   : no
Checking for header netinet/in6.h                                                               : no
Checking for header netinet6/in6.h                                                              : no
Checking for header curses.h                                                                    : yes
Checking for header term.h                                                                      : yes
Checking for header termcap.h                                                                   : no
Checking for atexit                                                                             : ok
Checking for cgetent                                                                            : not found
Checking for getprogname                                                                        : not found
Checking for setprogname                                                                        : not found
Checking for gethostname                                                                        : ok
Checking for putenv                                                                             : ok
Checking for rcmd                                                                               : ok
Checking for readv                                                                              : ok
Checking for sendmsg                                                                            : ok
Checking for setitimer                                                                          : ok
Checking for strlwr                                                                             : not found
Checking for strncasecmp                                                                        : ok
Checking for strptime                                                                           : ok
Checking for strsep                                                                             : ok
Checking for strsep_copy                                                                        : not found
Checking for strtok_r                                                                           : ok
Checking for strupr                                                                             : not found
Checking for swab                                                                               : ok
Checking for umask                                                                              : ok
Checking for uname                                                                              : ok
Checking for unsetenv                                                                           : ok
Checking for closefrom                                                                          : not found
Checking for err                                                                                : not found
Checking for warn                                                                               : not found
Checking for errx                                                                               : not found
Checking for warnx                                                                              : not found
Checking for flock                                                                              : not found
Checking for writev                                                                             : ok
Checking for hstrerror                                                                          : ok
Checking for socket                                                                             : ok
Checking for getipnodebyname                                                                    : ok
Checking for gethostent                                                                         : ok
Checking for gethostent_r                                                                       : ok
Checking for sethostent                                                                         : ok
Checking for endhostent                                                                         : ok
Checking for getipnodebyaddr                                                                    : ok
Checking for freehostent                                                                        : ok
Checking for gethostbyname_r                                                                    : ok
Checking for gethostbyaddr                                                                      : ok
Checking for iruserok                                                                           : not found
Checking for bswap16                                                                            : not found
Checking for bswap32                                                                            : not found
Checking for header sys/termios.h                                                               : no
Checking for struct winsize                                                                     : ok
Checking for member ws_xpixel in struct winsize                                                 : ok
Checking for member ws_ypixel in struct winsize                                                 : ok
Checking for variable h_errno                                                                   : ok
Checking for declaration of h_errno                                                             : ok
Checking for res_nsearch                                                                        : ok
Checking for res_ndestroy                                                                       : not found
Checking for dns_search                                                                         : not found
Checking for dn_expand                                                                          : ok
Checking for library resolv                                                                     : not found
Checking for res_ndestroy                                                                       : not found
Checking for dns_search                                                                         : not found
Checking for variable _res                                                                      : ok
Checking for declaration of _res                                                                : ok
Checking for dirfd                                                                              : ok
Checking for declaration of dirfd                                                               : ok
Checking for member dd_fd in DIR                                                                : ok
Using in-tree heimdal kerberos defines
Checking for program krb5-config.heimdal                                                        : not found
Checking for program krb5-config                                                                : not found
Checking for gnutls >= 3.4.7                                                                    : not found
Checking for gnutls >= 3.0.0s                                                                   : not found
Checking for gnutls >= 1.4.0 and broken versions                                                : not found
/home/gregc2/samba-4.8.3/source4/lib/tls/wscript:51: error: Building the AD DC requires GnuTLS (eg libgnutls-dev, gnutls-devel) for ldaps:// support and for the BackupKey protocol

 # rpm -qa | grep tls
gnutls-3.5.14-1.ppc
gnutls-devel-3.5.14-1.ppc

AIX 7.2:
 # rpm -qa
yum-metadata-parser-1.1.4-2.ppc
zlib-1.2.11-1.ppc
libstdc++-8.1.0-1.ppc
ncurses-6.1-1.ppc
libmpc-1.0.3-1.ppc
bash-4.4-3.ppc
gettext-0.19.8.1-1.ppc
gcc-cpp-8.1.0-1.ppc
readline-7.0-5.ppc
libssh2-1.8.0-2.ppc
ca-certificates-2017.07.17-1.ppc
expat-2.2.4-1.ppc
pysqlite-2.8.3-1.ppc
python-pycurl-7.43.0-1.ppc
rsync-3.1.3-2.ppc
screen-4.6.2-1.ppc
yum-utils-1.1.31-1.noarch
cyrus-sasl-2.1.26-2.ppc
python-2.7.15-1.ppc
python-devel-2.7.15-1.ppc
dbus-1.11.12-1.ppc
xz-libs-5.2.3-1.ppc
deltarpm-3.6-1.ppc
pkg-config-0.29.2-1.ppc
openssl-1.1.0g-1withsslv2.ppc
krb5-libs-1.16.1-2.ppc
libgpg-error-1.29-1.ppc
gnutls-3.5.14-1.ppc
cups-2.2.3-3.ppc
libgpg-error-devel-1.29-1.ppc
libtasn1-4.13-1.ppc
zlib-devel-1.2.11-1.ppc
samba-libs-4.7.6-1.ppc
python-tools-2.7.15-1.ppc
python3-3.6.6-1.ppc
openldap-devel-2.4.45-3.ppc
samba-common-4.7.6-1.ppc
libsmbclient-4.7.6-1.ppc
samba-winbind-4.7.6-1.ppc
libiconv-1.15-1.ppc
python-iniparse-0.4-1.noarch
python-urlgrabber-3.10.1-1.noarch
libgcc-8.1.0-1.ppc
libffi-3.2.1-2.ppc
gmp-6.1.2-1.ppc
mpfr-3.1.2-3.ppc
glib2-2.56.1-1.ppc
info-6.3-1.ppc
gcc-8.1.0-1.ppc
sqlite-3.23.0-1.ppc
gdbm-1.12-1.ppc
curl-7.60.0-1.ppc
yum-3.4.3-6.noarch
db-6.2.32-1.ppc
wget-1.19.2-1.ppc
yum-plugin-downloadonly-1.1.31-1.noarch
bzip2-1.0.6-2.ppc
p11-kit-0.23.2-1.ppc
unzip-6.0-3.ppc
xz-5.2.3-1.ppc
perl-5.26.2-2.ppc
popt-1.16-3.ppc
logrotate-3.8.5-1.ppc
nettle-3.4-1.ppc
libgcrypt-1.8.2-1.ppc
cups-libs-2.2.3-3.ppc
gnutls-utils-3.5.14-1.ppc
libgcrypt-devel-1.8.2-1.ppc
libtasn1-devel-4.13-1.ppc
gnutls-devel-3.5.14-1.ppc
AIX-rpm-7.2.2.15-5.ppc
openldap-2.4.45-3.ppc
samba-4.7.6-1.ppc
samba-python-4.7.6-1.ppc
samba-winbind-clients-4.7.6-1.ppc

Regards,
Chris