monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit compilation on AIX 6.1 fails (libperfstat.h)


From: Benedikt Wegmann
Subject: Re: monit compilation on AIX 6.1 fails (libperfstat.h)
Date: Fri, 18 Nov 2011 10:10:23 +0100

Hello!

With help from an experienced colleague the problem got fixed.
After ./configure the source src/process/sysdep_AIX.c needs an
additional include:

--- ../monit-5.3.1/src/process/sysdep_AIX.c     2011-10-25 01:01:51.000000000 
+0200
+++ src/process/sysdep_AIX.c    2011-11-17 10:45:44.000000000 +0100
@@ -102,6 +102,7 @@
  #endif
  
  #ifdef HAVE_LIBPERFSTAT_H
+ #include <sys/protosw.h>
  #include <libperfstat.h>
  #endif
  
And then src/config.h needs to be edited to actually use libperfstat.h

--- ../monit-5.3.1/src/config.h 2011-11-18 09:50:48.000000000 +0100
+++ src/config.h        2011-11-17 10:46:36.000000000 +0100
@@ -86,7 +86,7 @@
  #define HAVE_LIBPAM 1
  
  /* Define to 1 if you have the <libperfstat.h> header file. */
- /* #undef HAVE_LIBPERFSTAT_H */
+ #define HAVE_LIBPERFSTAT_H 1
  
  /* Define to 1 if you have the `pthread' library (-lpthread). */
  #define HAVE_LIBPTHREAD 1

After that make runs fine without errors. :)

Sincerely,
Benedikt



Am Montag, den 14.11.2011, 15:54 +0100 schrieb Benedikt Wegmann:
> Hello!
> 
> An attempt to compile monit on AIX 6.1 fails with reference to
> libperfstat.h:
> 
> checking libperfstat.h usability... no
> checking libperfstat.h presence... yes
> configure: WARNING: libperfstat.h: present but cannot be compiled
> configure: WARNING: libperfstat.h:     check for missing prerequisite headers?
> configure: WARNING: libperfstat.h: see the Autoconf documentation
> configure: WARNING: libperfstat.h:     section "Present But Cannot Be 
> Compiled"
> configure: WARNING: libperfstat.h: proceeding with the compiler's result
> configure: WARNING:     ## --------------------------------------- ##
> configure: WARNING:     ## Report this to address@hidden ##
> configure: WARNING:     ## --------------------------------------- ##
> checking for libperfstat.h... no
> 
> configure completes fine but make then fails complaining about
> undeclared functions which in fact can be found in libperfstat.h.
> 
> The package containing libperfstat.h, bos.perf.libperfstat, is in fact
> installed and libperfstat.h can be found in /usr/include/libperfstat.h.
> 
> The following test program would also fails compilation unless "#include
> <sys/protosw.h>" is put in before libperfstat.h (see also
> http://www.mail-archive.com/address@hidden/msg15092.html):
> 
> /root/hello.c 
> #include <stdio.h>
> #include <sys/protosw.h>
> #include <libperfstat.h>
> int main(void) { printf("Hello, World!\n"); return 0; }
> 
> How could this fix be applied to the monit source to make it compile?
> 
> Kind regards,

-- 
Benedikt Wegmann
address@hidden
+49 (0)551 201-1870
Jabber/XMPP: address@hidden

.........................
Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen
(GWDG)
Am Fassberg 11, 37077 Göttingen
URL: http://www.gwdg.de , E-Mail: address@hidden
Tel.: +49 (0)551 201-1510, Fax: +49 (0)551 201-2150
Geschäftsführer: Prof. Dr. Ramin Yahyapour
Aufsichtsratsvorsitzender: Prof. Dr. Christian Griesinger
Sitz der Gesellschaft: Göttingen, Registergericht: Göttingen
Handelsregister-Nr. B 598
.........................
Die digitale Unterschrift dieser Mail kann anhand des Zertifikats des
DFN überprüft werden:
https://ca.gwdg.de/certs/

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]