The CSW packages are the same ones from Solaris Freeware,
just in a common directory we use here.
I would not know where that variable would be in other files.
Is there a code fix for this on Solaris platforms?
Thanks...James
-----Original Message-----
From: Dominique Frise [mailto:user-78ab6673b600@xymon.invalid]
Sent: Wednesday, May 27, 2009 2:35 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] xymon-4.3.0-beta2 Compile Errors
James Wade wrote:
Try commenting the definition of "S_NONE" in /usr/include/sys/signal.h
and
recompile.
You may get an other error while compiling setup-newfiles.c; see > >
http://www.hswn.dk/hobbiton/2009/05/msg00028.html
for a fix.
Tired it, but I get the same error.
James
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/home/hobbit/src/hobbit/xymon-4.3.0-beta2/include -I/usr/local/include
-I.
-I../include -I/usr/local/include -c -o matching.o matching.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/home/hobbit/src/hobbit/xymon-4.3.0-beta2/include -I/usr/local/include
-I.
-I../include -c -o md5.o md5.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/home/hobbit/src/hobbit/xymon-4.3.0-beta2/include -I/usr/local/include
-I.
-I../include -c -o memory.o memory.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/home/hobbit/src/hobbit/xymon-4.3.0-beta2/include -I/usr/local/include
-I.
-I../include -c -o misc.o misc.c
In file included from
/home/hobbit/src/hobbit/xymon-4.3.0-beta2/include/libbbgen.h:42,
from misc.c:34:
/home/hobbit/src/hobbit/xymon-4.3.0-beta2/include/../lib/eventlog.h:38:
error: syntax error before numeric constant
make[1]: *** [misc.o] Error 1
make[1]: Leaving directory `/home/hobbit/src/hobbit/xymon-4.3.0-beta2/lib'
make: *** [lib-build] Error 2
This solution worked for us when compiling on a Solaris 9 box with only
a few Solaris freeware packages installed. (we do not use CSW packages).
The problem is Xymon tries to define S_NONE as an enum in enventlog.h,
but this constant is already defined in /usr/include/sys/signal.h.
Maybe S_NONE is defined somewhere else in your environement?
Dominique