This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Monit Compilation Errors


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;


Thanks in advance, and have a new good year,

Regards.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]