The Samba-Bugzilla – Bug 1778
include order of yp_clnt.h and yp_proto.h in include/includes.h wrong
Last modified: 2006-01-25 10:44:22 UTC
For AIX yp_proto.h must be included before yp_clnt.h is include otherwise the
whole build is polluted with a warning saying that dom_binding is declared
within a parameter list "which is probably not what you want" (that's what the
compiler said! ;-)). dom_binding is declared in yp_proto.h (or was it yp_prot.h,
anyway you won't miss it!). They are currently included one after the other,
Swapping this solved this problem.
I am aware that this might be as usual vice versa on other systems, sorry on AIX
5.2 it is like this!
It does sound logical that yp_proto.h should be included before yp_clnt.h. I'm
not sure whether very many people use the yp support these days anyway.
I might swap them around and see if any machines in the build farm complain
I have checked in a fix. Can you compile the SAMBA_3_0 branch and see if it
works for you?
(In reply to comment #2)
> I have checked in a fix. Can you compile the SAMBA_3_0 branch and see if it
> works for you?
I don't see any warnings on 5.2 or 5.3 wrt yp/nis.
Bill says fixed.