1. configure: WARNING: rpcsvc/yp_prot.h: present but cannot be compiled configure: WARNING: rpcsvc/yp_prot.h: check for missing prerequisite headers? configure: WARNING: rpcsvc/yp_prot.h: see the Autoconf documentation configure: WARNING: rpcsvc/yp_prot.h: section "Present But Cannot Be Compiled" configure: WARNING: rpcsvc/yp_prot.h: proceeding with the preprocessor's result configure: WARNING: rpcsvc/yp_prot.h: in the future, the compiler will take precedence 2. configure: WARNING: sys/mode.h: present but cannot be compiled configure: WARNING: sys/mode.h: check for missing prerequisite headers? configure: WARNING: sys/mode.h: see the Autoconf documentation configure: WARNING: sys/mode.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/mode.h: proceeding with the preprocessor's result configure: WARNING: sys/mode.h: in the future, the compiler will take precedence
Created attachment 800 [details] configure log
(From Noah Misch) configure:5714: checking sys/mode.h usability configure:5726: cc -c -O conftest.c >&5 cc-1204 cc: WARNING File = /usr/include/sys/vnode.h, Line = 332 The indicated declaration is not visible outside of the function. typedef int (*vop_read_t)(bhv_desc_t *, struct uio *, int, struct cred *, Apparently sys/mode.h depends on another header that defines `struct uio'. You can fix the Samba configure.in or configure.ac to account for that; see the node ``Present But Cannot Be Compiled'' in the Autoconf manual. If you just want to use Samba, the fix is not necessary.
On issue (1), the code generated to test rpcsvc/yp_prot.h does not include rpc/rpc.h which includes the necessary prerequesite headers. It does | #define HAVE_RPC_RPC_H 1 but doesn't write a #include <rpc/rpc.h> If it did, the test would succeed on Irix. Line 658 of configure.in can be changed to: AC_CHECK_HEADERS(rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h,,, [[#if HAVE_RPC_RPC_H # include <rpc/rpc.h> #endif ]])
(From James Peach) Just found it .. in includes.h, apparantly AIX needs mode.h for S_ISLINK. On IRIX, S_ISLINK comes from sys/stat.h, so sys/mode.h is never included in the Samba build.
fixed using autoconf magic. Will watch build farm.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.