monit-general
[Top][All Lists]
Advanced

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

Re: Problems with HP/UX


From: David Schwartz
Subject: Re: Problems with HP/UX
Date: Fri, 6 Jan 2006 01:29:07 -0600

Thanks for the changes...I managed to compile monit!  Sorry for the delay in replying...we are going through a major implementation.

I talked to my manager about access to an HP box.  We have one that will be decommissioned in the upcomming months.  He seems willing.  I will definately let you know.

Thanks again!

On 12/29/05, Martin Pala <address@hidden> wrote:
Hi,

we have no HP/UX machine for monit testing ... as stated in the
PLATFORMS file:

--8<--
Following platforms are not actively maintained because of lack of testing
machine for these OS's. They may work - its support was added and confirmed
in particular monit releases by contributors. Possible status reports, bug
reports, patch contributions or access to such platforms for development is
welcomed :)

  o AIX
  o HPUX
--8<--


Which monit version are you trying to compile?


In the attachment is the patch which should fix the errors reported
(some warnings will remain). It is not tested ... if you can provide us
the access to some HP/UX testing machine, we can fix probably all
remaining problems :)


Martin




David Schwartz wrote:
> Can anyone shed some light on this?  I'm trying to install on HP/UX 11.11.
>
> Thanks in advance,
>
> David
>
>
> address@hidden>./configure --without-ssl
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking whether gcc needs -traditional... no
> checking for a BSD-compatible install... /opt/imake/bin/install -c
> checking whether make sets $(MAKE)... yes
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... yes
> checking for bison... bison -y
> checking for socket in -lsocket... no
> checking for socket in -linet... no
> checking for inet_addr in -lnsl... yes
> checking for inet_aton in -lresolv... no
> checking for crypt in -lcrypt... yes
> checking for pthread_create in -lpthread... no
> checking for pthread_create in -lc_r... no
> checking for ANSI C header files... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether stat file-mode macros are broken... no
> checking whether time.h and sys/time.h may both be included... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... no
> checking for unistd.h... yes
> checking alloca.h usability... yes
> checking alloca.h presence... yes
> checking for alloca.h... yes
> checking arpa/inet.h usability... yes
> checking arpa/inet.h presence... yes
> checking for arpa/inet.h... yes
> checking asm/page.h usability... no
> checking asm/page.h presence... no
> checking for asm/page.h... no
> checking asm/param.h usability... no
> checking asm/param.h presence... no
> checking for asm/param.h... no
> checking cf.h usability... no
> checking cf.h presence... no
> checking for cf.h... no
> checking ctype.h usability... yes
> checking ctype.h presence... yes
> checking for ctype.h... yes
> checking crypt.h usability... yes
> checking crypt.h presence... yes
> checking for crypt.h... yes
> checking dirent.h usability... yes
> checking dirent.h presence... yes
> checking for dirent.h... yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking getopt.h usability... no
> checking getopt.h presence... no
> checking for getopt.h... no
> checking glob.h usability... yes
> checking glob.h presence... yes
> checking for glob.h... yes
> checking grp.h usability... yes
> checking grp.h presence... yes
> checking for grp.h... yes
> checking kvm.h usability... no
> checking kvm.h presence... no
> checking for kvm.h... no
> checking kstat.h usability... no
> checking kstat.h presence... no
> checking for kstat.h... no
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking loadavg.h usability... no
> checking loadavg.h presence... no
> checking for loadavg.h... no
> checking locale.h usability... yes
> checking locale.h presence... yes
> checking for locale.h... yes
> checking mach/host_info.h usability... no
> checking mach/host_info.h presence... no
> checking for mach/host_info.h... no
> checking mach/mach_host.h usability... no
> checking mach/mach_host.h presence... no
> checking for mach/mach_host.h... no
> checking for memory.h... (cached) yes
> checking mntent.h usability... yes
> checking mntent.h presence... yes
> checking for mntent.h... yes
> checking netdb.h usability... yes
> checking netdb.h presence... yes
> checking for netdb.h... yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking netinet/in_systm.h usability... yes
> checking netinet/in_systm.h presence... yes
> checking for netinet/in_systm.h... yes
> checking procfs.h usability... no
> checking procfs.h presence... no
> checking for procfs.h... no
> checking procinfo.h usability... no
> checking procinfo.h presence... no
> checking for procinfo.h... no
> checking pthread.h usability... yes
> checking pthread.h presence... yes
> checking for pthread.h... yes
> checking pwd.h usability... yes
> checking pwd.h presence... yes
> checking for pwd.h... yes
> checking regex.h usability... yes
> checking regex.h presence... yes
> checking for regex.h... yes
> checking setjmp.h usability... yes
> checking setjmp.h presence... yes
> checking for setjmp.h... yes
> checking signal.h usability... yes
> checking signal.h presence... yes
> checking for signal.h... yes
> checking stdarg.h usability... yes
> checking stdarg.h presence... yes
> checking for stdarg.h... yes
> checking stdio.h usability... yes
> checking stdio.h presence... yes
> checking for stdio.h... yes
> checking for string.h... (cached) yes
> checking for strings.h... (cached) yes
> checking stropts.h usability... yes
> checking stropts.h presence... yes
> checking for stropts.h... yes
> checking sys/cfgodm.h usability... no
> checking sys/cfgodm.h presence... no
> checking for sys/cfgodm.h... no
> checking sys/cfgdb.h usability... no
> checking sys/cfgdb.h presence... no
> checking for sys/cfgdb.h... no
> checking sys/dkstat.h usability... no
> checking sys/dkstat.h presence... no
> checking for sys/dkstat.h... no
> checking sys/filio.h usability... no
> checking sys/filio.h presence... no
> checking for sys/filio.h... no
> checking sys/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking sys/loadavg.h usability... no
> checking sys/loadavg.h presence... no
> checking for sys/loadavg.h... no
> checking sys/lock.h usability... yes
> checking sys/lock.h presence... yes
> checking for sys/lock.h... yes
> checking sys/mnttab.h usability... no
> checking sys/mnttab.h presence... no
> checking for sys/mnttab.h... no
> checking sys/mutex.h usability... no
> checking sys/mutex.h presence... no
> checking for sys/mutex.h... no
> checking sys/nlist.h usability... no
> checking sys/nlist.h presence... no
> checking for sys/nlist.h... no
> checking sys/param.h usability... yes
> checking sys/param.h presence... yes
> checking for sys/param.h... yes
> checking sys/pstat.h usability... yes
> checking sys/pstat.h presence... yes
> checking for sys/pstat.h... yes
> checking sys/queue.h usability... no
> checking sys/queue.h presence... no
> checking for sys/queue.h... no
> checking sys/resource.h usability... yes
> checking sys/resource.h presence... yes
> checking for sys/resource.h... yes
> checking sys/statvfs.h usability... yes
> checking sys/statvfs.h presence... yes
> checking for sys/statvfs.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/tree.h usability... no
> checking sys/tree.h presence... no
> checking for sys/tree.h... no
> checking for sys/types.h... (cached) yes
> checking sys/un.h usability... yes
> checking sys/un.h presence... yes
> checking for sys/un.h... yes
> checking sys/vmmeter.h usability... yes
> checking sys/vmmeter.h presence... yes
> checking for sys/vmmeter.h... yes
> checking sys/vfs.h usability... yes
> checking sys/vfs.h presence... yes
> checking for sys/vfs.h... yes
> checking syslog.h usability... yes
> checking syslog.h presence... yes
> checking for syslog.h... yes
> checking for unistd.h... (cached) yes
> checking uvm/uvm.h usability... no
> checking uvm/uvm.h presence... no
> checking for uvm/uvm.h... no
> checking uvm/uvm_extern.h usability... no
> checking uvm/uvm_extern.h presence... no
> checking for uvm/uvm_extern.h... no
> checking vm/vm.h usability... no
> checking vm/vm.h presence... no
> checking for vm/vm.h... no
> checking for netinet/ip.h... yes
> checking for net/if.h... yes
> checking for netinet/ip_icmp.h... yes
> checking for sys/sysctl.h... no
> checking for sys/mount.h... yes
> checking for sys/proc.h... yes
> checking for sys/user.h... yes
> checking for machine/vmparam.h... yes
> checking for vm/pmap.h... no
> checking for machine/pmap.h... no
> checking for vm/vm_map.h... no
> checking for vm/vm_object.h... no
> checking for sys/resourcevar.h... no
> checking for uvm/uvm_map.h... no
> checking for uvm/uvm_pmap.h... no
> checking for uvm/uvm_object.h... no
> checking for mode_t... yes
> checking for pid_t... yes
> checking for size_t... yes
> checking for pid_t... (cached) yes
> checking return type of signal handlers... void
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for struct tm.tm_gmtoff... no
> checking for an ANSI C-conforming const... yes
> checking whether byte ordering is bigendian... yes
> checking for error_at_line... no
> checking for unistd.h... (cached) yes
> checking vfork.h usability... no
> checking vfork.h presence... no
> checking for vfork.h.. . no
> checking for fork... yes
> checking for vfork... yes
> checking for working fork... yes
> checking for working vfork... (cached) yes
> checking for stdlib.h.. . (cached) yes
> checking for GNU libc compatible malloc... yes
> checking whether lstat dereferences a symlink specified with a trailing
> slash... no
> checking whether stat accepts an empty string... no
> checking for strftime... yes
> checking for statfs... yes
> checking for statvfs... yes
> checking for setlocale... yes
> checking for getaddrinfo... yes
> checking for getloadavg... no
> checking for pstat_getdynamic... yes
> checking for kstat_open in -lkstat... no
> checking for elf_begin in -lelf... yes
> checking for kvm_open in -lkvm... no
> checking for getloadavg in -lutil... no
> checking for getloadavg in -lgetloadavg... no
> checking for getloadavg... no
> checking sys/dg_sys_info.h usability... no
> checking sys/dg_sys_info.h presence... no
> checking for sys/dg_sys_info.h... no
> checking for locale.h... (cached) yes
> checking for setlocale... (cached) yes
> checking nlist.h usability... yes
> checking nlist.h presence... yes
> checking for nlist.h.. . yes
> checking for struct nlist.n_un.n_name... no
> checking whether getloadavg requires setgid... no
> checking for localtime_r... yes
> checking for sys/time.h... (cached) yes
> checking for working GNU strftime... no
> checking for SOL_IP... no
> checking for va_copy... yes
> checking pid file location... /var/run
> checking for resource support... enabled
> checking for SSL support... disabled
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
>
> monit has been configured with the following options:
>                 Architecture: HPUX
>                  SSL support: disabled
>          resource monitoring: enabled
>                resource code: sysdep_HPUX.c
>               Compiler flags: -g -O2 -Wall -D _REENTRANT
>                 Linker flags: -lcrypt -lnsl
>            pid file location: /var/run
>
> address@hidden>gmake
> bison -y -dt p.y
> /bin/mv -f y.tab.h tokens.h
> flex -i l.l
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT   alert.c -o alert.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  collector.c -o collector.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  control.c -o control.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  daemonize.c -o daemonize.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  env.c -o env.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  event.c -o event.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  file.c -o file.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  gc.c -o gc.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  getloadavg.c -o getloadavg.o
> getloadavg.c:525: warning: 'channel' defined but not used
> getloadavg.c:527: warning: 'getloadavg_initialized' defined but not used
> getloadavg.c :529: warning: 'offset' defined but not used
> getloadavg.c:532: warning: 'nl' defined but not used
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  http.c -o http.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  log.c -o log.o
> log.c:93: warning: missing braces around initializer
> log.c:93: warning: (near initialization for `log_mutex.m_short')
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  md5.c -o md5.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT   monitor.c -o monitor.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  net.c -o net.o
> net.c: In function `icmp_echo':
> net.c:731: warning: passing arg 6 of `recvfrom' from incompatible
> pointer type
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  process.c -o process.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  sendmail.c -o sendmail.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  sha.c -o sha.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  signal.c -o signal.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  socket.c -o socket.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  spawn.c -o spawn.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  ssl.c -o ssl.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  state.c -o state.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  status.c -o status.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  util.c -o util.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  validate.c -o validate.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  xmalloc.c -o xmalloc.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  xml.c -o xml.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  device/device_common.c -o device/device_common.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  http/base64.c -o http/base64.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  http/cervlet.c -o http/cervlet.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  http/engine.c -o http/engine.o
> http/engine.c:123: warning: missing braces around initializer
> http/engine.c:123: warning: (near initialization for
> `hostlist_mutex.m_short')
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  http/processor.c -o http/processor.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  process/process_common.c -o process/process_common.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/apache_status.c -o protocols/apache_status.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/default.c -o protocols/default.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/dns.c -o protocols/dns.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/dwp.c -o protocols/dwp.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/ftp.c -o protocols/ftp.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/generic.c -o protocols/generic.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/http.c -o protocols/http.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/imap.c -o protocols/imap.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/ldap2.c -o protocols/ldap2.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/ldap3.c -o protocols/ldap3.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/mysql.c -o protocols/mysql.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/nntp.c -o protocols/nntp.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/ntp3.c -o protocols/ntp3.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/pop.c -o protocols/pop.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/postfix_policy.c -o
> protocols/postfix_policy.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/protocol.c -o protocols/protocol.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/rdate.c -o protocols/rdate.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/rsync.c -o protocols/rsync.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/smtp.c -o protocols/smtp.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/ssh.c -o protocols/ssh.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  protocols/tns.c -o protocols/tns.o
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  device/sysdep_HPUX.c -o device/sysdep_HPUX.o
> device/sysdep_HPUX.c: In function `device_mountpoint_sysdep':
> device/sysdep_HPUX.c:79: warning: implicit declaration of function
> `strcasecmp'
> device/sysdep_HPUX.c:82: warning: implicit declaration of function
> `strncpy'
> device/sysdep_HPUX.c: In function `device_usage_sysdep':
> device/sysdep_HPUX.c:110: warning: implicit declaration of function
> `strerror'
> gcc -c -DHPUX -I. -I./device -I./http -I./process -I./protocols -g -O2
> -Wall -D _REENTRANT  process/sysdep_HPUX.c -o process/sysdep_HPUX.o
> process/sysdep_HPUX.c: In function `initprocesstree_sysdep':
> process/sysdep_HPUX.c:195: error: `pst_status' undeclared (first use in
> this function)
> process/sysdep_HPUX.c:195: error: (Each undeclared identifier is
> reported only once
> process/sysdep_HPUX.c:195: error: for each function it appears in.)
> process/sysdep_HPUX.c:208: error: `tree_size' undeclared (first use in
> this function)
> process/sysdep_HPUX.c:208: error: `pp' undeclared (first use in this
> function)
> process/sysdep_HPUX.c:208: warning: left-hand operand of comma
> _expression_ has no effect
> process/sysdep_HPUX.c:210: error: invalid type argument of `->'
> process/sysdep_HPUX.c:211: error: invalid type argument of `->'
> process/sysdep_HPUX.c:221: error: invalid type argument of `->'
> process/sysdep_HPUX.c:221: error: invalid type argument of `->'
> process/sysdep_HPUX.c:222: error: invalid type argument of `->'
> process/sysdep_HPUX.c:227: error: invalid type argument of `->'
> process/sysdep_HPUX.c:208: warning: value computed is not used
> gmake: *** [process/sysdep_HPUX.o] Error 1
> address@hidden>
>
>
> ------------------------------------------------------------------------
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general



Index: device/sysdep_HPUX.c
===================================================================
RCS file: /sources/monit/monit/device/sysdep_HPUX.c,v
retrieving revision 1.11
diff -r1.11 sysdep_HPUX.c
48a49,56
> #ifdef HAVE_STRING_H
> #include <string.h>
> #endif
>
> #ifdef HAVE_STRINGS_H
> #include <strings.h>
> #endif
>
Index: process/sysdep_HPUX.c
===================================================================
RCS file: /sources/monit/monit/process/sysdep_HPUX.c,v
retrieving revision 1.15
diff -r1.15 sysdep_HPUX.c
185,188c185,187
<   int treesize;
<   int i;
<
<   ProcessTree_T *  pt;
---
>   int            i;
>   int            treesize;
>   ProcessTree_T *pt;
195c194
<                               (size_t) NPROCS* sizeof(pst_status),
---
>                               (size_t) NPROCS* sizeof(struct pst_status),
208c207
<   for (i = 0; i < tree_size; pp++, i++) {
---
>   for (i = 0; i < treesize; i++) {
210,211c209,210
<     pt[i].pid = psall[i]->pst_pid;
<     pt[i].ppid = psall[i]->pst_ppid;
---
>     pt[i].pid = psall[i].pst_pid;
>     pt[i].ppid = psall[i].pst_ppid;
221,222c220,221
<     pt[i].cputime =  ( psall[i]->pst_utime + psall[i]->pst_stime ) * 10 / HZ;
<     pt[i].mem_kbyte = (unsigned long)(((double)psall[i]->pst_rssize)/1024.0 *
---
>     pt[i].cputime =  ( psall[i].pst_utime + psall[i].pst_stime ) * 10 / HZ;
>     pt[i].mem_kbyte = (unsigned long)(((double)psall[i].pst_rssize)/1024.0 *
227c226
<     if ( psall[i]->pst_stat || PS_ZOMBIE ) {
---
>     if ( psall[i].pst_stat || PS_ZOMBIE ) {


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general



reply via email to

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