compiling problem on samba-3.0.3pre2

Green, Paul Paul.Green at
Tue Apr 6 17:01:31 GMT 2004

Jianliang Lu [ at]  asked:
> The include/config.h created in Samba-3.0.3pre2 has defined gid_t and
> to "int", so the typedef in sys/types.h for gid_t and uid_t, which is 
> included bu include.h,  will produce a lot of warning as following:

I hit the same problem. The version of configure automatically generated for
the build_farm is from autoconf 2.53.  Apparently, this version of autoconf
compiles extra code the first time the AC_CHECK_HEADERS macro is used. (I am
basing this remark on the recent email from Andrew Esh, not from any tests I
have run).  Starting with version 1.300.2.191 of (in
samba_3_0), the Darwin changes moved the first reference to this macro from
a place that is always executed by configure, to inside of an if-then-else
clause that is only executed for Darwin.

The result is that a whole bunch of HAVE_XXX_H macros never get defined.
The most serious one is HAVE_SYS_TYPES_H, but there are 9 in total.

Try commenting out the Darwin changes around line 583 of
While I haven't had a chance to test this, if I'm right, this should solve
the problem for other Oses.  (It will mess up Darwin builds, of course).

If this theory is correct, we will also have to upgrade the version of
autoconf that is used on

Paul Green, Senior Technical Consultant
Stratus Technologies, Inc.
111 Powdermill Rd, Maynard, MA 01754
Tel +1-978-461-7557, Fax +1-978-461-3610

More information about the samba-technical mailing list