monit-general
[Top][All Lists]
Advanced

[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 09:53:05 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:1.6) Gecko/20040113

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: *** [y.tab.c] Broken pipe

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

   # make
   yacc -y -dt p.y
   make: *** [y.tab.c] 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!

Thanks


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 gnu.org. 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:

Hi,
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
   -I/usr/local/include
                   Linker flags: -lcrypt -lnsl  -L/usr/local/lib -lssl
   -lcrypto
              pid file location: /var/run
   # make
   Make: line 79: syntax error.  Stop.

Excuse me my written English...
Regards,
    Gabriel

# 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
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# 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
#
# ---------------------------------------------------------------------
#
#  SYNOPSIS
#     make {all|install|clean|uninstall|distclean|devclean}
#
# AUTHOR:
#     Jan-Henrik Haukeland, <address@hidden>
#
# CVS INFO
#     $Id: Makefile.in,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
INSTALL_PROG    = $(INSTALL) -m $(MODE_PROGS) -s
INSTALL_FILE    = $(INSTALL) -m $(MODE_FILES)
INSTALL_DIR     = $(INSTALL) -m $(MODE_DIRS) -d

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
DEFINES        = -DHPUX

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

CC        = gcc
LEX         = flex
YACC         = bison -y

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

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

# Grammar files
GRAMMAR     := y.tab.c lex.yy.c

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

EXTERNALS    :=  external/strftime.c

# Source files
SOURCE          := $(filter-out $(GRAMMAR) $(FILTER), \
                   $(wildcard *.c) $(wildcard */*.c)) \
                   device/sysdep_HPUX.c\
                   process/sysdep_HPUX.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

endef

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

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

all : $(PROG)

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

clean::
    $(RM) *~ \#* $(PROG) core $(OBJECTS) $(GRAMMAR) y.tab.h

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

devclean:: clean distclean
    $(RM) configure config.h.in 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) \
    $(check-exit))

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

doc::
    doxygen doxygen.cfg

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


# ---
# Dep
# ---
$(OBJECTS): $(HEADERS)

# -------------
# Grammar rules
# -------------

y.tab.c y.tab.h: p.y
    $(YACC) $(YACCFLAGS) $<

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


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

--
Jan-Henrik Haukeland
Mobil +47 97141255



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







reply via email to

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