public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: Monit Compilation Errors
Date: Mon, 15 Jan 2018 14:27:00 -0000	[thread overview]
Message-ID: <ef0018b6-ffc0-56c3-9ae2-3a85302da7b5@cornell.edu> (raw)
In-Reply-To: <CAO2ddnbkToGBYwZuUGfaxr1_NO1qcPzwS+j=tO5C_+jxCos4qA@mail.gmail.com>

On 1/15/2018 7:22 AM, Kizito Porta Balanyà wrote:
> Hello all,
> 
> I'm trying to compile the last version of MONIT and I get some errors that
> I can not solve.
> 
> Basically I get errors like: expected identifier or ‘(’ before numeric
> constant, but reviewing the code I don't see any wrong, beside that the
> sources compile correctly with Linux, AIX, etc ...
> 
> Can you help me? Do you have any clue?
> 
> I show you the errors obtained:
> 
> gcc -DHAVE_CONFIG_H -I. -I./src    -DCYGWIN
> -DSYSCONFDIR="\"/usr/local/etc\"" -I./src -I./src/device -I./src/http
> -I./src/process -I./src/protocols -I./src/ssl -I./libmonit/src
> -Wno-address -Wno-pointer-sign -g -O2 -Wall -Wunused -Wno-unused-label
> -funsigned-char -D_GNU_SOURCE -std=c99 -D _REENTRANT -c -o src/y.tab.o
> src/y.tab.c
> <command-line>:0:6: error: expected identifier or ‘(’ before numeric
> constant
> src/monit.h:581:19: note: in expansion of macro ‘unix’
>                   } unix;
>                     ^~~~
> <command-line>:0:6: error: expected identifier or ‘(’ before numeric
> constant
> src/monit.h:1129:27: note: in expansion of macro ‘unix’
>                           } unix;
>                             ^~~~
> In file included from src/net.h:30:0,
>                   from src/p.y:116:
> src/monit.h:1130:17: warning: no semicolon at end of struct or union
>                   } socket;
>                   ^
> src/p.y: In function ‘yyparse’:
> <command-line>:0:6: error: expected identifier before numeric constant
> src/p.y:740:42: note: in expansion of macro ‘unix’
>                           Run.httpd.socket.unix.path = $4;
>                                            ^~~~
> <command-line>:0:6: error: expected identifier before numeric constant
> src/p.y:1154:40: note: in expansion of macro ‘unix’
>                           portset.target.unix.pathname = $2;
>                                          ^~~~
> src/p.y: In function ‘addport’:
> <command-line>:0:6: error: expected identifier before numeric constant
> src/p.y:2765:27: note: in expansion of macro ‘unix’
>                   p->target.unix.pathname = port->target.unix.pathname;

I tried to reproduce the problem, but I think you must be using 
different sources than what I found.  I downloaded monit-5.25.1.tar.gz 
from https://mmonit.com/monit/ and found that I couldn't configure it:

$ ./bootstrap
[...]

$ ./configure --without-pam
[...]
configure: error: Architecture not supported: CYGWIN_NT-10.0-WOW
configure: error: ./configure failed for libmonit

Also, the line numbers in my sources differ from those in your error 
messages.  Could you say where you got your sources and how you tried to 
build?

Ken

--
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

  reply	other threads:[~2018-01-15 14:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-15 12:22 Kizito Porta Balanyà
2018-01-15 14:27 ` Ken Brown [this message]
2018-01-15 16:33   ` BGINFO4X
2018-01-15 21:07 ` szgyg
2018-01-15 22:19   ` Brian Inglis
2018-01-17 19:15     ` szgyg
2018-01-18 14:48       ` BGINFO4X
2018-01-18 18:49         ` szgyg
2018-01-23 11:43           ` Kizito Porta Balanyà
2018-01-23 13:17             ` Marco Atzeri
2018-01-23 13:25               ` BGINFO4X
2018-01-23 14:16                 ` Marco Atzeri
2018-01-23 18:28                 ` Achim Gratz
2018-01-23 18:24             ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef0018b6-ffc0-56c3-9ae2-3a85302da7b5@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).