VMware Cloud Community
admin
Immortal
Immortal

sigar build fails on AIX 5.2

Hi Doug,

/usr/vac/bin/xlc ...
"sigar/src/sigar_util.c", line 485.10: 1506-296 (S) #include file
<rpcsvc/nfs_prot.h> not found.

I'm on AIX 5.2 ppc32 and have neither a rpcsvc/nfs_prot.h nor a nfs/nfs.h.

A simple #ifndef _AIX fixes the problem for me:

#ifdef SIGAR_HPUX
#include <nfs/nfs.h>
#else
+#ifndef _AIX
#include <rpcsvc/nfs_prot.h>
+#endif
#endif

Sigar compiles nicely with that patch

cheers,
Jan
--
Jan Kneschke, Enterprise Tools Dev, MySQL GmbH, D-81373 München
Radlkoferstr. 2, GF: Hans von Bell, Kaj Arnö - HRB München 162140

0 Kudos
1 Reply
dougm_hyperic
VMware Employee
VMware Employee


Hi Jan,

It exists on mine:
% uname -a
AIX orange 2 5 000919934C00
% ls -l /usr/include/rpcsvc/nfs_prot.h
-r--r--r--   1 bin      bin            7014 Sep 15 2002  /usr/include/rpcsvc/nfs_prot.h

However, you're right it does compile fine without it, as do all other platforms, so I just remove the include all together.  Thanks.
 
On Apr 19, 2007, at 7:28 AM, Jan Kneschke wrote:

Hi Doug,

/usr/vac/bin/xlc ...
"sigar/src/sigar_util.c", line 485.10: 1506-296 (S) #include file
<rpcsvc/nfs_prot.h> not found.

I'm on AIX 5.2 ppc32 and have neither a rpcsvc/nfs_prot.h nor a nfs/nfs.h.

A simple #ifndef _AIX fixes the problem for me:

 #ifdef SIGAR_HPUX
 #include <nfs/nfs.h>
 #else
+#ifndef _AIX
 #include <rpcsvc/nfs_prot.h>
+#endif
 #endif

Sigar compiles nicely with that patch

cheers,
  Jan
--
Jan Kneschke, Enterprise Tools Dev, MySQL GmbH, D-81373 München
Radlkoferstr. 2, GF: Hans von Bell, Kaj Arnö - HRB München 162140



0 Kudos