[Top][All Lists]

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

Re: monit-4.4 for HP/UX Make Error

From: Gabriel Medrano
Subject: Re: monit-4.4 for HP/UX Make Error
Date: Fri, 11 Feb 2005 11:43:06 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:1.6) Gecko/20040113

I have installed "gnu m4" and it solves de problem. Now, the output of the make command is the following:

# make
bison -y -dt p.y
flex -i l.l
gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols alert.c -o alert.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols control.c -o control.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols daemonize.c -o daemonize.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols env.c -o env.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols event.c -o event.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols files.c -o files.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols gc.c -o gc.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols 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 -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols http.c -o http.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols log.c -o log.o
log.c:94: warning: missing braces around initializer
log.c:94: warning: (near initialization for `log_mutex.m_short')
gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols md5.c -o md5.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols monitor.c -o monitor.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols net.c -o net.o
net.c: In function `icmp_echo':
net.c:673: warning: passing arg 6 of `recvfrom' from incompatible pointer type gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols process.c -o process.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols sendmail.c -o sendmail.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols sha.c -o sha.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols signal.c -o signal.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols socket.c -o socket.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols spawn.c -o spawn.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols ssl.c -o ssl.o
ssl.c:106: warning: missing braces around initializer
ssl.c:106: warning: (near initialization for `ssl_mutex.m_short')
gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols state.c -o state.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols status.c -o status.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols util.c -o util.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols validate.c -o validate.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols xmalloc.c -o xmalloc.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols device/device_common.c -o device/device_common.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols http/base64.c -o http/base64.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols http/cervlet.c -o http/cervlet.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols http/engine.c -o http/engine.o
http/engine.c:119: warning: missing braces around initializer
http/engine.c:119: warning: (near initialization for `hostlist_mutex.m_short') gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols http/processor.c -o http/processor.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols process/process_common.c -o process/process_common.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/default.c -o protocols/default.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/dwp.c -o protocols/dwp.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/ftp.c -o protocols/ftp.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/generic.c -o protocols/generic.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/http.c -o protocols/http.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/imap.c -o protocols/imap.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/ldap2.c -o protocols/ldap2.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/ldap3.c -o protocols/ldap3.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/nntp.c -o protocols/nntp.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/pop.c -o protocols/pop.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/protocol.c -o protocols/protocol.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/rdate.c -o protocols/rdate.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/rsync.c -o protocols/rsync.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/smtp.c -o protocols/smtp.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols protocols/ssh.c -o protocols/ssh.o gcc -c -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols 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 -g -O2 -Wall -D _REENTRANT -I/usr/local/include -DHPUX -I. -I./device -I./http -I./process -I./protocols 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
make: *** [process/sysdep_HPUX.o] Error 1

Any idea about the error?


Gabriel Medrano escribió:

I have installed gmake on my system and I am not able to do make correctly, the error is the following:

   # make
   bison -y -dt p.y
   make: *** [] Broken pipe

I have tried to put yacc instead of bison but the result is the same,

   # make
   yacc -y -dt p.y
   make: *** [] Broken pipe

Any idea?, I dont have to mach experience with this things but I am very interested in monit, I have installed under linux-ubuntu and I think it is great!


Jan-Henrik Haukeland escribió:

You need to use GNU make to build monit. If you have gmake on your system try that one, otherwise I'm afraid you have to download GNU make from Note, there may (or may not) be other build problems on HP/UX since we do not officially support that platform - no one in the project has access to an HP/UX system AFAIK. If you get monit to work on this platform, please let us know :)

On Feb 10, 2005, at 17:04, Gabriel Medrano wrote:

I´m traying to compile monit-4.4 on HP/UX-11.11, I execute "configure" correctly but "make" doesn´t work. The error is "Make: line 79: syntax error. Stop". I have attached Makefile. Any idea?

   monit has been configured with the following options:
                   Architecture: HPUX
                    SSL support: enabled
          SSL include directory: /usr/local/include
          SSL library directory: /usr/local/lib
            resource monitoring: enabled
    accurate memory calculation: enabled
                  resource code: sysdep_HPUX.c
                 Compiler flags: -g -O2 -Wall -D _REENTRANT
                   Linker flags: -lcrypt -lnsl  -L/usr/local/lib -lssl
              pid file location: /var/run
   # make
   Make: line 79: syntax error.  Stop.

Excuse me my written English...

# Copyright (C), 2000-2004 by the monit project group.
# All Rights Reserved.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# ---------------------------------------------------------------------
#     make {all|install|clean|uninstall|distclean|devclean}
#     Jan-Henrik Haukeland, <address@hidden>
#     $Id:,v 1.20 2004/01/29 17:52:11 martinp Exp $

# Programs (with common options):
SHELL           = /bin/sh
RM        = /bin/rm -fr
ETAGS           = etags

# Install modes
MODE_PROGS      = 555
MODE_FILES      = 444
MODE_DIRS       = 755

INSTALL         = ./install-sh -c

DESTDIR         =

# ------------------------------------------------------------------- #

prefix = /usr/local
exec_prefix = /usr/local

BINDIR     = ${exec_prefix}/bin
MANDIR     = ${prefix}/man/man1

# ------------------------------------------------------------------- #

# Name of program to build
PROG        = monit

INCDIR        = -I. -I./device -I./http -I./process -I./protocols
LIB         = -lfl -lcrypt -lnsl  -L/usr/local/lib -lssl -lcrypto

# ------------------------------------------------------------------- #

CC        = gcc
LEX         = flex
YACC         = bison -y

CFLAGS = -g -O2 -Wall -D _REENTRANT -I/usr/local/include $(DEFINES) $(INCDIR)
LEXFLAGS    = -i
YACCFLAGS     = -dt

# ------------------------------------------------------------------- #

# Grammar files
GRAMMAR     := lex.yy.c

# Filter out platform spesific files
FILTER          := $(wildcard device/sysdep_*.c process/sysdep_*.c\

EXTERNALS    :=  external/strftime.c

# Source files
SOURCE          := $(filter-out $(GRAMMAR) $(FILTER), \
                   $(wildcard *.c) $(wildcard */*.c)) \
                   $(GRAMMAR) $(EXTERNALS)

# Object files
OBJECTS     := $(SOURCE:.c=.o)

# Man files
MAN_OBJS      := $(wildcard *.1)

# Header files
HEADERS     := $(wildcard *.h)\
           $(wildcard device/*.h)\
                   $(wildcard http/*.h)\
                   $(wildcard process/*.h)\
                   $(wildcard protocols/*.h)

# ------------------------------------------------------------------- #

define check-exit
|| exit 1


# -----
# Rules
# -----
%.o: %.c
    $(CC) -c $(CFLAGS) $< -o $@

# -------
# Targets
# -------
.PHONY: all clean install uninstall distclean devclean

all : $(PROG)

    $(CC) $(LINKFLAGS) $(OBJECTS) $(LIB) -o $(PROG)

    $(RM) *~ \#* $(PROG) core $(OBJECTS) $(GRAMMAR)

# remove configure files
distclean:: clean
    $(RM) config.cache config.log config.status Makefile config.h \

devclean:: clean distclean
    $(RM) configure aclocal.m4

install:: $(PROG)
    $(INSTALL_DIR) $(DESTDIR)$(BINDIR) $(check-exit)
    $(INSTALL_DIR) $(DESTDIR)$(MANDIR) $(check-exit)
    $(INSTALL_PROG) $(PROG) $(DESTDIR)$(BINDIR) $(check-exit)
    $(foreach file, $(MAN_OBJS), \
        $(INSTALL_FILE) $(file) $(DESTDIR)$(MANDIR)/$(file) \

    $(RM) $(DESTDIR)$(BINDIR)/$(PROG) $(check-exit)
    $(foreach file, $(MAN_OBJS), \
        $(RM) $(DESTDIR)$(MANDIR)/$(file) \

    doxygen doxygen.cfg

    $(ETAGS) $(filter-out $(GRAMMAR), $(FILTER) $(SOURCE)) p.y l.l

# ---
# Dep
# ---

# -------------
# Grammar rules
# ------------- p.y
    $(YACC) $(YACCFLAGS) $<

lex.yy.c: l.l
    $(LEX) $(LEXFLAGS) $<

To unsubscribe:

Jan-Henrik Haukeland
Mobil +47 97141255

To unsubscribe:

reply via email to

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