Created attachment 7242 [details] Patch to fix a compile error at source3/lib/util.c When I try to compile the sources from git under FreeBSD 9.0, I get a compile error at source3/lib/util.c that it could not find "tdb.h". This is very much the same as https://bugzilla.samba.org/show_bug.cgi?id=8468 For me it looks like LIB_SRC was split and in LIB_UTIL_SRC the dependency on tdb is missing. I attach a patch (derived from what you did in the aforementioned bug) to solve this.
Gd, obnox, could you please have a look at this change?
The bugs lie in Samba 3.x-specific parts of the WAF build system.
A fix based on your patch has been pushed to "master".
The #ifdef HAVE_UTMP_H was not enough. Now the compiler doesn't look for utmp.h, but it still comes to uses of struct utmp, because WITH_UTMP is still defined.