Xymon Mailing List Archive search

Compile 4.3.0-beta2 Solaris 8

list Roland Soderstrom
Fri, 09 Jul 2010 07:37:25 +1000
Message-Id: <user-ddbdf24add61@xymon.invalid>

Hi,

Had the same problem just a couple of days ago.
It seems that xymon is using a variable S_NONE that is already declared in signal.h.
I just comented the S_NONE in signal.h (that is /usr/include/sys/signal.h )
On Solaris 9 though but it should work on 8 as well.
Compiling went ok, I then removed the comment in signal.h.

I had sun's studio compiler installed as well and had to make sure PATH and LD_LIBRARY_PATH
pointed to /usr/local first, so it used the correct gcc and gmake.
/usr/ccs/bin has to be in the path so Makefile can find ar.

The correct fix would be to change all S_NONE to something else in the xymon code.

Best Regards,
Roland


On 9/07/10 02:26 AM, Shadow Azul wrote:
I can´t compile Xymon 4.3.0-beta2 in solaris8. I have the following error:

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS" RPATHOPT="-Wl,-R" PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="" BBTOPDIR="/usr/local/xymon/client" BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="127.0.0.1" BBHOSTOS="" LOCALCLIENT="no" make -C lib client
make[1]: Entering directory `/tmp/xymon-4.3.0-beta2/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I. -I/tmp/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -I. -I../include -c -o misc.o misc.c
In file included from /tmp/xymon-4.3.0-beta2/include/libbbgen.h:42,
from misc.c:34:
/tmp/xymon-4.3.0-beta2/lib/eventlog.h:38: error: parse error before numeric constant
make[1]: *** [misc.o] Error 1
make[1]: Leaving directory `/tmp/xymon-4.3.0-beta2/lib'
make: *** [lib-client] Error 2

I try with the 4.2.3 version (non beta) and compile perfectly (in solaris 8)...
I try to compile 4.3.0-beta2 in solaris 10 and works fine !

Anybody have an idea where is the problem, I need to compile the latest version of xymon?

Thanks a lot friends !