WAF config.h differences compared with autoconf on FreeBSD

Ira Cooper ira at samba.org
Tue Mar 12 08:13:57 MDT 2013


Is anyone working on the FAM side of the config.h issue?

-Ira


On Sat, Mar 9, 2013 at 8:23 PM, Timur I. Bakeyev <timur at com.bat.ru> wrote:

> Interesting...
>
> Well, checks for libmd(5) and FAM plainly don't exist in in WAF. This part
> is easy :)
>
> rl_event_hook check gives me different results, I see it originates from
> libreplace checks in WAF, but in autoconf it is part of source3/.
>
> I have no idea what ATTRIBUTE_COLD is.
>
> And the check behind FreeBSD statvfs() is entirely obscure for me. I
> couldn't figure out what does it really checks for?
> FreeBSD has both statfs() and statvfs(), the last one is a wrapper around
> former one. But the check is saying about some struct statfs fields,
> although referencing to stavfs()... Need help!
>
> With regards,
> Timur Bakeyev.
>
>
>
> On Sun, Mar 10, 2013 at 2:11 AM, Richard Sharpe <
> realrichardsharpe at gmail.com
> > wrote:
>
> > On Wed, Mar 6, 2013 at 10:01 PM, Andrew Bartlett <abartlet at samba.org>
> > wrote:
> > > On Thu, 2013-03-07 at 16:43 +1100, Andrew Bartlett wrote:
> > >> 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
> > >
> > > Just as background, see some of the discussion in:
> > >
> > > https://bugzilla.samba.org/show_bug.cgi?id=8969
> > >
> > > Also, please ignore the 'missing from autoconf' section.  It is mostly
> > > noise, because of extra checks that waf does does to building the whole
> > > AD DC, heimdal and additional client libs.
> >
> > This is what seems to be missing on a FreeBSD 8.0 system:
> >
> > #define BSD_STYLE_STATVFS 1
> > #define HAVE_ATTRIBUTE_COLD 1
> > #define HAVE_DECL_RL_EVENT_HOOK 0
> > #define HAVE_FAMNOEXISTS 1
> > #define HAVE_FAMOPEN2 1
> > #define HAVE_FAM_H 1
> > #define HAVE_FAM_H_FAMCODES_TYPEDEF 1
> > #define HAVE_LIBMD5 1
> > #define HAVE_MD5_H 1
> > #define vfs_notify_fam_init samba_init_module
> >
> > --
> > Regards,
> > Richard Sharpe
> > (何以解憂?唯有杜康。--曹操)
> >
>


More information about the samba-technical mailing list