Created attachment 7243 [details]
make and config log files
Compiling origin/master I get a compile error at source3/smbd/utmp.c (see make.log in attached file).
My system is FreeBSD 9.0. There is no utmp.h anymore in the base but a utmpx.h. configure notices this, but in the make.log I see that WITH_UTMP_H is set nonetheless.
The bugs lie in Samba 3.x-specific parts of the WAF build system.
A fix is on the way to "master" (currently under autobuild) - http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=commitdiff;h=cd995e6c5d5f9c0a27ea08101185da3575bb83eb.
utmp.c compiles if I add
# define utmp utmpx
# define HAVE UT_UT_TV
I know, this is not good style :) I did it to check what is missing.
It still doesn't compile, also not on alpha-18.
FreeBSD doesn't have neither an utmp.h (that is fixed) nor a "struct utmp" (which is still used in utmp.c and causes the compile errors).
My guess is that utmp.c needs some major rework to have a path with "struct utmpx" when that is available and some fallbacks to "struct utmp" and even without anything.
After the configure phase, you should manually edit bin/default/include/config.h and comment out the WITH_UTMP line. That works for me.
the waf build isn't supported in 3.6. I guess it works for you in latest 4.0 (pre)release ? Please reopen this bug ... thanks!