This is the patch I came up with, if it looks good I'll check it into trunk:

Index: include/ganglia.h
===================================================================
--- include/ganglia.h   (revision 2315)
+++ include/ganglia.h   (working copy)
@@ -1,6 +1,7 @@
 #ifndef GANGLIA_H
 #define GANGLIA_H 1

+#include <rpc/types.h>
 #include <rpc/xdr.h>

 #include <gm_msg.h>
Index: include/gm_metric.h
===================================================================
--- include/gm_metric.h (revision 2315)
+++ include/gm_metric.h (working copy)
@@ -5,6 +5,7 @@
 #define _LARGEFILE64_SOURCE
 #endif

+#include <rpc/types.h>
 #include <rpc/xdr.h>

 #include <gm_mmn.h>
Index: configure.in
===================================================================
--- configure.in        (revision 2315)
+++ configure.in        (working copy)
@@ -493,8 +493,13 @@
 #endif
 ])

-AC_CHECK_HEADERS([rpc/xdr.h],,
-   [AC_MSG_ERROR([your system is missing the Sun RPC (ONC/RPC) libraries])])
+AC_CHECK_HEADERS(rpc/types.h)
+AC_CHECK_HEADER([rpc/xdr.h], [],
+   [AC_MSG_ERROR([your system is missing the Sun RPC (ONC/RPC) libraries])],
+[#ifdef HAVE_RPC_TYPES_H
+# include <rpc/types.h>
+#endif
+])

 dnl ##################################################################
 dnl Checks for typedefs.

Cheers,

Bernard

On Tue, Jul 20, 2010 at 11:56 PM, Carlo Marcelo Arenas Belon
<care...@sajinet.com.pe> wrote:
> On Tue, Jul 20, 2010 at 10:25:10PM -0700, Bernard Li wrote:
>>
>> Looks like on Mac OS X, rpc/xdr.h does not include rpc/types.h.
>> Adding this in both include/ganglia.h and include/gm_metric.h fixes
>> the issue.  I guess we should do the same fix in Bugzilla #264 to get
>> rid of the configure warning as well?
>
> yes
>
> Carlo
>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to