delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/18/09:48:52

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=VcO3VnfyMVo9/vN8eFNF02wU0JIEfwAAa1Pa+jeMGoq
PHzPo++fg21bAzdpIBTYdXKCiQL3zGAySb1P4d4X2CIKuFciT0vuSVHrdirpNgRh
nLGAeHVxQYnGcBKd7mAifkX0dvyQzPjCX8qV2RGO54mA8QqnF17rvs/wm/RnOfSg
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=Cn49rnwtMa7Iade+V8aisGJSsqU=; b=jSyYGBSLtwYKsPEVA
T8YhyJ/8v04jNLS6HkHqjH4tQ3ettYpl2gn+VS4hW9vwbsZhpMHwxRqT/afbmydn
MCq3jzStvZ8044Zh/LJFbySz50NyWOm83ot05TSuIoWtbJAszr78JWIW2v3aq6xz
X3bG+S6HgHKxoiTz/qhPl0qmwc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=5.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT autolearn=no version=3.3.2 spammy=szgyg, D*hu, D*elte.hu, U*szgyg
X-HELO: mail-it0-f54.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=xEHLADt/EcKalF/Sf0micGwui2J1VKRpB0sUcAwbSYA=; b=eF2j/uA2FJsvEzXRL1pPUUWsyGqNVk1EPzpf/LIq4jABEjKI5i+LbCAMxFvE43J2nE MP+sU97rLNSEZRwoIS+HwhqYcxwQ603S7Vt+3aKGW/HOle8eRcUy4p7/FUpgsX1IsjyQ AlLnewoYnBmoQpY/s5oRYNCy7270Kd10Rx6x8Dqu5IfKGGTE8Co2JFi1fTpxSM6Ko1h7 PAyGvQsbmSHTexcKIGI61Js9lgP3QIbC9JezrrjpPNVGjb43O7RCBlKKRFNtdbeLNnys mOGenl/eZxrBNV4JxuB8ojw+Qa9nPF8H3WGjr4rQ6x53klq/ESoQhXYVDzyaIw/Jz65o 3yJg==
X-Gm-Message-State: AKwxytfevXhm8YLRiCdxGpO5JZ6cXe03rZpS/twQP5wF8kV7bLMiPKNh ZWAeH37MHIdxBHS485u2PanhobNpxYrKRs2I+448iA==
X-Google-Smtp-Source: ACJfBot4mkJPV7tV0nsLfV0WfBhmZ3tTFTL3z8FLgy7GE4TQkmB6Lo+F+gXoHFA7vYNmUqlleG9tuq2pqhn+fI+Yv0E=
X-Received: by 10.36.134.7 with SMTP id u7mr26258264itd.141.1516286888594; Thu, 18 Jan 2018 06:48:08 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <p3o76k$3va$1@blaine.gmane.org>
References: <CAO2ddnbkToGBYwZuUGfaxr1_NO1qcPzwS+j=tO5C_+jxCos4qA AT mail DOT gmail DOT com> <p3j4h9$q4p$1 AT blaine DOT gmane DOT org> <3ad2549d-a6b3-e00b-c6f7-0a0a402602c0 AT SystematicSw DOT ab DOT ca> <p3o76k$3va$1 AT blaine DOT gmane DOT org>
From: BGINFO4X <bginfo4x AT kztsoftware DOT com>
Date: Thu, 18 Jan 2018 15:48:08 +0100
Message-ID: <CAO2ddnbptM-ruOF+jBeHZ5TeuPWKCYgDhbB80KuM_5h2T4wdgg@mail.gmail.com>
Subject: Re: Monit Compilation Errors
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w0IEmofC009091

Hello again,

Yes, you are right, --ansi have undesirable effects like:

In file included from src/net.h:30:0,
                 from src/p.y:120:
src/monit.h:124:1: error: C++ style comments are not allowed in ISO C90
 //FIXME: we can export this type in libmonit
 ^
etc ...

Finally, fter switching to the 32bits cygwin version (-m32 in cygwin64
generated more errors), and modifying Lync.c , monit has been compiled
again for this version.

$ ./monit.exe --version
This is Monit version 5.25.1
Built without ssl, without ipv6, with compression, without pam and without
large                                                        files
Copyright (C) 2001-2017 Tildeslash Ltd. All Rights Reserved.

And the http service works:

http://localhost:2812
user: admin, pwd: monit
Monit Service Manager Running

What are the next steps? Try to compile for the 64bits version? Both
packages are required or only one? In that case, the 64bits cygwin
installer can install the 32 bits monit version?

Thanks a lot for your time.
Regards.

2018-01-17 20:12 GMT+01:00 szgyg <szgyg AT ludens DOT elte DOT hu>:

> On 2018-01-15, Brian Inglis wrote:
> > On 2018-01-15 13:56, szgyg wrote:
> >> On 2018-01-15, Kizito Porta Balanyà wrote:
> >>> I'm trying to compile the last version of MONIT and I get some errors
> that
> >>> I can not solve.
> >>> <command-line>:0:6: error: expected identifier or ‘(’ before numeric
> >>> constant
> >>> src/monit.h:581:19: note: in expansion of macro ‘unix’
> >>>                  } unix;
> >>>                    ^~~~
> >>
> >> From https://gcc.gnu.org/onlinedocs/cpp/System-
> specific-Predefined-Macros.html
> >> "historically system-specific macros have had names with no special
> >> prefix; for instance, it is common to find unix defined on Unix systems.
> >> [...] When the -ansi option, or any -std option that requests strict
> >> conformance, is given to the compiler, all the system-specific
> predefined
> >> macros outside the reserved namespace are suppressed."
> >> You can see the predefined macros with `cpp -dD /dev/null'.
> >> [...]
> >> You can undefine the unix macro or rename the unix struct.
> >
> > Looks like -std=c99 without -ansi does not suppress those symbols so add
> -ansi
> > to CFLAGS, use equivalent configure options, or autoconf/automake
> changes.
>
> I'd go with the minimally intrusive `CFLAGS=-Uunix'. -ansi can have
> undesirable
> side effects.
>
> s
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019