WAF config.h differences compared with autoconf on FreeBSD

Andrew Bartlett abartlet at samba.org
Wed Mar 6 22:43:06 MST 2013


BaT and Richard,

If you run the source3/ autoconf build, and build with
--enable-selftest, you should get this output when starting 'make test',
as we build smbtorture.

I'm wondering if you could look into the 'missing' results in
particular, and work out how to get waf to find the same things that
autoconf does?  (I've also CC'ed Andreas, as he did prctl work recently)

This would be most valuable to get fixed up, so we know our two build
systems are producing equivalent binaries.  (The same can be done on any
platform that supports both waf and autoconf)

Thanks,

'configure' finished successfully (1m40.912s)
Comparing config.h from autoconf and waf
Configure results missing from WAF are:
../buildtools/compare_config_h3.sh include/autoconf/config.h ../bin/default/include/config.h
#define BSD_STYLE_STATVFS 1
#define HAVE_ATTRIBUTE_COLD 1
#define HAVE_DECL_RL_EVENT_HOOK 0
#define HAVE_LIBMD5 1
#define HAVE_MD5_H 1
#define HAVE_PRCTL 1
#define VALUEOF__NSIG 
Configure results additionaly found by WAF are:
DIFF="comm -13" ../buildtools/compare_config_h3.sh include/autoconf/config.h ../bin/default/include/config.h
#define AD_DC_BUILD_IS_ENABLED 1
#define BROKEN_NISPLUS_INCLUDE_FILES 1
#define BUILD_SYSTEM "FreeBSD tinderbox.dwncrk.bc.ssnet.ca 10.0-CURRENT FreeBSD 10.0-CURRENT #19 r240772: Fri Sep 21 20:24:12 MST 2012     root at tinderbox.dwncrk.bc.ssnet.ca:/usr/obj/usr/src/sys/TINDERBOX  amd64"
#define ENABLE_GNUTLS 1
#define HAVE_ACL_GET_FILE 1
#define HAVE_AP_OPTS_USE_SUBKEY 1
#define HAVE_ARPA_NAMESER_H 1
#define HAVE_ASSERT_H 1
#define HAVE_BACKTRACE 1
#define HAVE_BACKTRACE_SYMBOLS 1
#define HAVE_BER_TAG_T 1
#define HAVE_BLKCNT_T 1
#define HAVE_BLKSIZE_T 1
#define HAVE_BSD_STRTOLL 1
#define HAVE_CCAN 1
#define HAVE_CGETENT 1
#define HAVE_CHARSET_CP850 1
#define HAVE_CHARSET_UTF_8 1
#define HAVE_CLOSEFROM 1
#define HAVE_COM_ERR_H 1
#define HAVE_CPPFUNCTION 1
#define HAVE_CURSES_H 1
#define HAVE_DECL_DLOPEN 1
#define HAVE_DECL_GETGRENT_R 1
#define HAVE_DECL_GETPWENT_R 1
#define HAVE_DECL_H_ERRNO 1
#define HAVE_DECL_READAHEAD 0
#define HAVE_DECL_RL_EVENT_HOOK 1
#define HAVE_DECL__RES 1
#define HAVE_DGETTEXT 1
#define HAVE_DN_EXPAND 1
#define HAVE_ENCTYPE_AES128_CTS_HMAC_SHA1_96 1
#define HAVE_ENCTYPE_AES256_CTS_HMAC_SHA1_96 1
#define HAVE_ENCTYPE_ARCFOUR_HMAC 1
#define HAVE_ENCTYPE_ARCFOUR_HMAC_MD5 1
#define HAVE_ENCTYPE_ARCFOUR_HMAC_MD5_56 1
#define HAVE_ENDHOSTENT 1
#define HAVE_ERR 1
#define HAVE_ERRNO_H 1
#define HAVE_ERRX 1
#define HAVE_ETYPE_IN_ENCRYPTEDDATA 1
#define HAVE_EXECINFO_H 1
#define HAVE_FLOCK 1
#define HAVE_FREEHOSTENT 1
#define HAVE_FREE_CHECKSUM 1
#define HAVE_GETHOSTBYADDR 1
#define HAVE_GETHOSTBYNAME_R 1
#define HAVE_GETHOSTENT 1
#define HAVE_GETHOSTENT_R 1
#define HAVE_GETHOSTNAME 1
#define HAVE_GETIPNODEBYADDR 1
#define HAVE_GETIPNODEBYNAME 1
#define HAVE_GETPROGNAME 1
#define HAVE_GETPWNAM 1
#define HAVE_GETTEXT 1
#define HAVE_GETUTXENT 1
#define HAVE_GNUTLS 1
#define HAVE_GNUTLS_DATUM 1
#define HAVE_GNUTLS_DATUM_T 1
#define HAVE_GNUTLS_GLOBAL_INIT 1
#define HAVE_GNUTLS_GNUTLS_H 1
#define HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID 1
#define HAVE_GNUTLS_X509_CRT_SET_VERSION 1
#define HAVE_GNUTLS_X509_H 1
#define HAVE_GPG_ERR_CODE_FROM_ERRNO 1
#define HAVE_H_ERRNO 1
#define HAVE_ICONV_H 1
#define HAVE_ICONV_OPEN 1
#define HAVE_INO_T 1
#define HAVE_INT16_T 1
#define HAVE_INT32_T 1
#define HAVE_INT64_T 1
#define HAVE_INT8_T 1
#define HAVE_IPV6_V6ONLY 1
#define HAVE_IRUSEROK 1
#define HAVE_KRB_STRUCT_WINSIZE 1
#define HAVE_LARGEFILE 1
#define HAVE_LDAP_INIT_FD 1
#define HAVE_LDAP_OPT_SOCKBUF 1
#define HAVE_LIBCRYPT 1
#define HAVE_LIBEXECINFO 1
#define HAVE_LIBGNUTLS 1
#define HAVE_LIBGPG_ERROR 1
#define HAVE_LIBICONV 1
#define HAVE_LIBINTL 1
#define HAVE_LIBINTL_H 1
#define HAVE_LIBNCURSES 1
#define HAVE_LIBPTHREAD 1
#define HAVE_LIBRT 1
#define HAVE_LIBUTIL 1
#define HAVE_LIBUTIL_H 1
#define HAVE_OPENPTY 1
#define HAVE_PAM_START 1
#define HAVE_PERL_MAKEMAKER 1
#define HAVE_PTHREAD_ATTR_INIT 1
#define HAVE_PTHREAD_CREATE 1
#define HAVE_PUTENV 1
#define HAVE_PUTUTXLINE 1
#define HAVE_PYTHON_H 1
#define HAVE_QUOTACTL_4B 1
#define HAVE_RCMD 1
#define HAVE_READV 1
#define HAVE_RESOLV_H 1
#define HAVE_RES_NDESTROY 1
#define HAVE_RES_NSEARCH 1
#define HAVE_RES_SEARCH 1
#define HAVE_RL_COMPLETION_MATCHES 1
#define HAVE_RPCSVC_RQUOTA_H 1
#define HAVE_SA_SIGINFO_DECL 1
#define HAVE_SENDMSG 1
#define HAVE_SETHOSTENT 1
#define HAVE_SETITIMER 1
#define HAVE_SETPROCTITLE 1
#define HAVE_SETPROGNAME 1
#define HAVE_SHARED_MMAP 1
#define HAVE_SIGNAL_H 1
#define HAVE_SIMPLE_C_PROG 1
#define HAVE_SIZE_T 1
#define HAVE_SOCKET 1
#define HAVE_SSIZE_T 1
#define HAVE_STATVFS 1
#define HAVE_STAT_TV_NSEC 1
#define HAVE_STDDEF_H 1
#define HAVE_STRCPY 1
#define HAVE_STRNCASECMP 1
#define HAVE_STRNCPY 1
#define HAVE_STRSEP 1
#define HAVE_STRUCT_WINSIZE 1
#define HAVE_SWAB 1
#define HAVE_SYS_DIR_H 1
#define HAVE_SYS_ENDIAN_H 1
#define HAVE_SYS_QUOTAS 1
#define HAVE_SYS_TERMIOS_H 1
#define HAVE_SYS_TIMEB_H 1
#define HAVE_SYS_TIMES_H 1
#define HAVE_SYS_UTSNAME_H 1
#define HAVE_TERMCAP_H 1
#define HAVE_TERM_H 1
#define HAVE_TGETENT 1
#define HAVE_UINT16_T 1
#define HAVE_UINT32_T 1
#define HAVE_UINT64_T 1
#define HAVE_UINT8_T 1
#define HAVE_UMASK 1
#define HAVE_UNAME 1
#define HAVE_U_CHAR 1
#define HAVE_U_INT32_T 1
#define HAVE_VISIBILITY_ATTR 1
#define HAVE_WARN 1
#define HAVE_WARNX 1
#define HAVE_WRITEV 1
#define HAVE_WS_XPIXEL 1
#define HAVE_WS_YPIXEL 1
#define HAVE_XATTR_SUPPORT 1
#define HAVE_ZLIB 1
#define HAVE__RES 1
#define HAVE___DN_EXPAND 1
#define INLINE_MACRO 1
#define KRB5_CREDS_OPT_FREE_REQUIRES_CONTEXT 1
#define KRB5_PRINC_REALM_RETURNS_REALM 1
#define LDAP_DEPRECATED 1
#define SAMBA4_USES_HEIMDAL 1
#define SIZEOF_BOOL 1
#define SIZEOF_DEV_T 4
#define SIZEOF_INO_T 4
#define SIZEOF_INT16_T 2
#define SIZEOF_INT32_T 4
#define SIZEOF_INT64_T 8
#define SIZEOF_INT8_T 1
#define SIZEOF_UINT16_T 2
#define SIZEOF_UINT32_T 4
#define SIZEOF_UINT64_T 8
#define SIZEOF_UINT8_T 1
#define STRERROR_R_PROTO_COMPATIBLE 1
#define SUMMARY_PASSES 1
#define SYSTEM_UNAME_MACHINE "amd64"
#define SYSTEM_UNAME_RELEASE "10.0-CURRENT"
#define SYSTEM_UNAME_SYSNAME "FreeBSD"
#define SYSTEM_UNAME_VERSION "FreeBSD 10.0-CURRENT #19 r240772: Fri Sep 21 20:24:12 MST 2012     root at tinderbox.dwncrk.bc.ssnet.ca:/usr/obj/usr/src/sys/TINDERBOX"
#define VOID_RETSIGTYPE 1
#define WITH_ADS 1
#define WITH_AUTOMOUNT 1
#define WITH_DNS_UPDATES 1
#define WITH_PTHREADPOOL 1
#define WITH_QUOTAS 1
#define WITH_SYSLOG 1
#define _HAVE_SENDFILE 1
#define _HAVE_UNBROKEN_POSIX_FALLOCATE 1
#define _INCLUDE_CONFIG_H_WAF
#define _SAMBA_BUILD_ 4
#define _XOPEN_SOURCE_EXTENDED 1
#define uint_t unsigned int
#define vfs_posix_eadb_init samba_init_module


-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list