Xymon Mailing List Archive search

xymon-4.3.0-beta2 Compile Errors

7 messages in this thread

list James Wade · Wed, 27 May 2009 13:58:02 -0500 ·
Hello,

 
I've been using Hobbit here for about 3 years now, and I thought I'd

got ahead and try to compile and use xymon-4.3.0-beta2. It is not

compiling and I get errors. I thought I'd submit them to the list.

 
Let me know if you need additional information. 

 
Operating System: Solaris 9

GCC Version 3.4.6
openssl Version 0.9.8.e

openldap Version 2.3.35

pcre Version 7.7

 
When I do a configure I ter /bin/sh: ld: not found:

Checking for RRDtool ...

/bin/sh: ld: not found

/bin/sh: ld: not found

Found RRDtool include files in /usr/local/rrdtool-1.0.49/include

Found RRDtool libraries in /usr/local/rrdtool-1.0.49/lib

Linking RRD with PNG library: -L/usr/sfw/lib -lpng

/bin/sh: ld: not found

 
Checking for PCRE ...

/bin/sh: ld: not found

/bin/sh: ld: not found

Found PCRE include files in /usr/local/include

/bin/sh: ld: not found

Found PCRE libraries in /usr/local/lib

/bin/sh: ld: not found

 
Checking for OpenSSL ...

/bin/sh: ld: not found

/bin/sh: ld: not found

Found OpenSSL include files in /opt/csw/include

/bin/sh: ld: not found

Found OpenSSL libraries in /opt/csw/lib

/bin/sh: ld: not found

 
I then try to do a make and get the errors below:

 
$ make

/bin/sh: ld: not found

MAKE="make" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS
-I. -I`pwd`/include -I/usr/local/include" LDFLAGS=""
`pwd`/build/genconfig.sh

Checking for socklen_t

Checking for snprintf

Checking for vsnprintf

Checking for rpc/rpcent.h

Checking for sys/select.h

Checking for u_int32_t typedef

Checking for PATH_MAX definition

Checking for SHUT_RD/WR/RDWR definitions

Checking for strtoll()

config.h created

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I`pwd`/include -I/usr/local/include" LDFLAGS="" OSDEF="-DSunOS"
RPATHOPT="-Wl,-R/usr/local/rrdtool-1.0.49/lib -Wl,-R/usr/local/lib
-Wl,-R/opt/csw/lib -Wl,-R/opt/csw/lib" PCREINCDIR="-I/usr/local/include"
SSLFLAGS="-DHAVE_OPENSSL=1" SSLINCDIR="-I/opt/csw/include "
SSLLIBS="-L/opt/csw/lib -lssl -lcrypto" NETLIBS="-lresolv -lsocket -lnsl"
LIBRTDEF="" BBTOPDIR="/usr/local/apache2/htdocs/infra/xymon"
BBLOGDIR="/var/log/xymon" BBHOSTNAME="iedaiu003" BBHOSTIP="165.184.38.251"
BBHOSTOS="sunos" make -C lib all

make[1]: Entering directory `/home/hobbit/src/hobbit/xymon-4.3.0-beta2/lib'

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  -o test-endianness test-endianness.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 osdefs.o osdefs.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 acklog.o acklog.c

acklog.c: In function `do_acklog':

acklog.c:92: warning: unsigned int format, time_t arg (arg 3)

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 availability.o availability.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 calc.o calc.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 cgi.o cgi.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 cgiurls.o cgiurls.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 clientlocal.o clientlocal.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 color.o color.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 digest.o digest.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 encoding.o encoding.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  -DBBTOPDIR=\"/usr/local/apache2/htdocs/infra/xymon\"
-DBBLOGDIR=\"/var/log/xymon\" -DBBHOSTNAME=\"iedaiu003\"
-DBBHOSTIP=\"165.184.38.251\" -DBBHOSTOS=\"sunos\"
-DBUILD_HOME=\"/usr/local/apache2/htdocs/infra/xymon/server\" -c -o
environ.o environ.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 errormsg.o errormsg.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  -I/usr/local/include -c -o eventlog.o eventlog.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 files.o files.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  -I/usr/local/include -c -o headfoot.o headfoot.c

headfoot.c: In function `build_pagepath_dropdown':

headfoot.c:488: warning: dereferencing type-punned pointer will break
strict-aliasing rules

headfoot.c:488: warning: dereferencing type-punned pointer will break
strict-aliasing rules

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 hobbitrrd.o hobbitrrd.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 holidays.o holidays.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 htmllog.o htmllog.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 ipaccess.o ipaccess.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  -I/usr/local/include -c -o loadalerts.o loadalerts.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 loadhosts.o loadhosts.c

loadhosts.c: In function `bbh_find_item':

loadhosts.c:228: warning: return discards qualifiers from pointer target
type

loadhosts.c: In function `bbh_item_id':

loadhosts.c:619: warning: return discards qualifiers from pointer target
type

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 loadnkconf.o loadnkconf.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 locator.o locator.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 links.o links.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  -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

$ pwd

/home/hobbit/src/hobbit/xymon-4.3.0-beta2
list Dominique Frise · Wed, 27 May 2009 21:11:04 +0200 ·
quoted from James Wade
James Wade wrote:
Hello,

 
I’ve been using Hobbit here for about 3 years now, and I thought I’d

got ahead and try to compile and use xymon-4.3.0-beta2. It is not

compiling and I get errors. I thought I’d submit them to the list.

 
Let me know if you need additional information.

 
Operating System: Solaris 9

GCC Version 3.4.6
openssl Version 0.9.8.e

openldap Version 2.3.35

pcre Version 7.7

 
When I do a configure I ter /bin/sh: ld: not found:

Checking for RRDtool ...

/bin/sh: ld: not found

/bin/sh: ld: not found

Found RRDtool include files in /usr/local/rrdtool-1.0.49/include

Found RRDtool libraries in /usr/local/rrdtool-1.0.49/lib

Linking RRD with PNG library: -L/usr/sfw/lib -lpng

/bin/sh: ld: not found

 
Checking for PCRE ...

/bin/sh: ld: not found

/bin/sh: ld: not found

Found PCRE include files in /usr/local/include

/bin/sh: ld: not found

Found PCRE libraries in /usr/local/lib

/bin/sh: ld: not found

 
Checking for OpenSSL ...

/bin/sh: ld: not found

/bin/sh: ld: not found

Found OpenSSL include files in /opt/csw/include

/bin/sh: ld: not found

Found OpenSSL libraries in /opt/csw/lib

/bin/sh: ld: not found

 
I then try to do a make and get the errors below:

 
$ make

/bin/sh: ld: not found

MAKE="make" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" `pwd`/build/genconfig.sh

Checking for socklen_t

Checking for snprintf

Checking for vsnprintf

Checking for rpc/rpcent.h

Checking for sys/select.h

Checking for u_int32_t typedef

Checking for PATH_MAX definition

Checking for SHUT_RD/WR/RDWR definitions

Checking for strtoll()

config.h created

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" OSDEF="-DSunOS" RPATHOPT="-Wl,-R/usr/local/rrdtool-1.0.49/lib -Wl,-R/usr/local/lib -Wl,-R/opt/csw/lib -Wl,-R/opt/csw/lib" PCREINCDIR="-I/usr/local/include" SSLFLAGS="-DHAVE_OPENSSL=1" SSLINCDIR="-I/opt/csw/include " SSLLIBS="-L/opt/csw/lib -lssl -lcrypto" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="" BBTOPDIR="/usr/local/apache2/htdocs/infra/xymon" BBLOGDIR="/var/log/xymon" BBHOSTNAME="iedaiu003" BBHOSTIP="165.184.38.251" BBHOSTOS="sunos" make -C lib all

make[1]: Entering directory `/home/hobbit/src/hobbit/xymon-4.3.0-beta2/lib'

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  -o test-endianness test-endianness.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 osdefs.o osdefs.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 acklog.o acklog.c

acklog.c: In function `do_acklog':

acklog.c:92: warning: unsigned int format, time_t arg (arg 3)

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 availability.o availability.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 calc.o calc.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 cgi.o cgi.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 cgiurls.o cgiurls.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 clientlocal.o clientlocal.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 color.o color.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 digest.o digest.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 encoding.o encoding.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  -DBBTOPDIR=\"/usr/local/apache2/htdocs/infra/xymon\" -DBBLOGDIR=\"/var/log/xymon\" -DBBHOSTNAME=\"iedaiu003\" -DBBHOSTIP=\"165.184.38.251\" -DBBHOSTOS=\"sunos\" -DBUILD_HOME=\"/usr/local/apache2/htdocs/infra/xymon/server\" -c -o environ.o environ.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 errormsg.o errormsg.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  -I/usr/local/include -c -o eventlog.o eventlog.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 files.o files.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  -I/usr/local/include -c -o headfoot.o headfoot.c

headfoot.c: In function `build_pagepath_dropdown':

headfoot.c:488: warning: dereferencing type-punned pointer will break strict-aliasing rules

headfoot.c:488: warning: dereferencing type-punned pointer will break strict-aliasing rules

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 hobbitrrd.o hobbitrrd.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 holidays.o holidays.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 htmllog.o htmllog.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 ipaccess.o ipaccess.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  -I/usr/local/include -c -o loadalerts.o loadalerts.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 loadhosts.o loadhosts.c

loadhosts.c: In function `bbh_find_item':

loadhosts.c:228: warning: return discards qualifiers from pointer target type

loadhosts.c: In function `bbh_item_id':

loadhosts.c:619: warning: return discards qualifiers from pointer target type

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 loadnkconf.o loadnkconf.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 locator.o locator.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 links.o links.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  -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

$ pwd

/home/hobbit/src/hobbit/xymon-4.3.0-beta2

 
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.

Dominique
list James Wade · Wed, 27 May 2009 14:21:10 -0500 ·
quoted from Dominique Frise
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
quoted from Dominique Frise


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
list Dominique Frise · Wed, 27 May 2009 21:34:41 +0200 ·
quoted from James Wade
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
list James Wade · Wed, 27 May 2009 15:02:54 -0500 ·
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
quoted from Dominique Frise

-----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
list Dominique Frise · Thu, 28 May 2009 07:30:53 +0200 ·
quoted from James Wade
James Wade wrote:
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

Looking again at your all log, there are other weird error messages (ld not found) and configure settings.

We have:
Solaris 9 4/04 (fully recommended/security patched)
GNU Make 3.80
gcc version 3.3.2

After commenting out "S_NONE" define in /usr/include/sys/signal.h, here below the steps we used for building a client.

[super at uldns1 xymon-4.3.0-beta2]# MAKE=gmake ./configure.client

Configuration script for Xymon client
...
Configuration complete - now run gmake -s (GNU make) to build the tools

[super at uldns1 xymon-4.3.0-beta2]# gmake
MAKE="gmake" 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="" `pwd`/build/genconfig.sh
quoted from Dominique Frise
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
...

gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I. -I/soft/pub/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -Wl,-R setup-newfiles.c ../lib/hobbitclient.a  -lresolv -lsocket -lnsl
Undefined                       first referenced
  symbol                             in file
main /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crt1.o
ld: fatal: Symbol referencing errors. No output written to setup-newfiles
collect2: ld returned 1 exit status
gmake[1]: *** [setup-newfiles] Error 1
gmake[1]: Leaving directory `/soft/pub/xymon-4.3.0-beta2/build'
gmake: *** [build-build] Error 2

[super at uldns1 xymon-4.3.0-beta2]# cd build
[super at uldns1 build]# gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I. -I/soft/pub/xymon-4.3.0-beta2/include -DCLIENTONLY=1 setup-newfiles.c ../lib/hobbitclient.a  -lresolv -lsocket -lnsl

[super at uldns1 build]# cd ..
[super at uldns1 xymon-4.3.0-beta2]# gmake
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="/soft/pub/BB/hobbit" BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="130.223.27.23" BBHOSTOS="" LOCALCLIENT="no" gmake -C lib client
...
../build/bb-commands.sh >>hobbitclient.cfg
cat clientlaunch.cfg.DIST | sed -e 's!@CLIENTFLAGS@!!g' >clientlaunch.cfg
gmake[1]: Leaving directory `/soft/pub/xymon-4.3.0-beta2/client'

Build complete. Now run 'gmake install' as root

Hope this helps.

Dominique
list James Wade · Thu, 28 May 2009 09:13:48 -0500 ·
Thanks, but I still can't compile the server version.

I guess I'll just continue using my current Hobbit Version
and wait and see if a stable release of xymon comes out
that will compile on Solaris 9.

I'm not really a code developer, but I would recommend that
someone who's developing the next release of Hobbit/xymon
get Solaris 9, download the freeware packages, and insure
the compile works without having to edit other library
files (ie... having to edit /usr/include/sys/signal.h.), and
without all the numerous errors.

fyi... I've downloaded a compiled a multitude of other products
and normally it goes fairly smooth. The last time I compiled Hobbit
on Solaris (Version 4.2), it was a fairly smooth process. I just had to make sure that I had all the Libraries, for example, ldap or rrd, but this version seems to have several compile problems.

If xymon is going to continue being a useful open source
platform for monitoring, it needs to run on other Operating
Systems and for our organization Solaris is a key system.

If the development team doesn't have access to Solaris 9, I am more than happy to re-try compiles and feed the outputs
and failures of the compile to the team. Let me know if this
is an option.

Thanks again...James
quoted from Dominique Frise

-----Original Message-----
From: Dominique Frise [mailto:user-78ab6673b600@xymon.invalid] Sent: Thursday, May 28, 2009 12:31 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] xymon-4.3.0-beta2 Compile Errors

James Wade wrote:
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

Looking again at your all log, there are other weird error messages (ld not found) and configure settings.

We have:
Solaris 9 4/04 (fully recommended/security patched)
GNU Make 3.80
gcc version 3.3.2

After commenting out "S_NONE" define in /usr/include/sys/signal.h, here below the steps we used for building a client.

[super at uldns1 xymon-4.3.0-beta2]# MAKE=gmake ./configure.client

Configuration script for Xymon client
...
Configuration complete - now run gmake -s (GNU make) to build the tools

[super at uldns1 xymon-4.3.0-beta2]# gmake
MAKE="gmake" 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="" `pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
...
gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I. -I/soft/pub/xymon-4.3.0-beta2/include -DCLIENTONLY=1 -Wl,-R setup-newfiles.c ../lib/hobbitclient.a  -lresolv -lsocket -lnsl
Undefined                       first referenced
  symbol                             in file
main /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crt1.o
ld: fatal: Symbol referencing errors. No output written to setup-newfiles
collect2: ld returned 1 exit status
gmake[1]: *** [setup-newfiles] Error 1
gmake[1]: Leaving directory `/soft/pub/xymon-4.3.0-beta2/build'
gmake: *** [build-build] Error 2

[super at uldns1 xymon-4.3.0-beta2]# cd build
[super at uldns1 build]# gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I. -I/soft/pub/xymon-4.3.0-beta2/include -DCLIENTONLY=1 setup-newfiles.c ../lib/hobbitclient.a  -lresolv -lsocket -lnsl

[super at uldns1 build]# cd ..
[super at uldns1 xymon-4.3.0-beta2]# gmake
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="/soft/pub/BB/hobbit" BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="130.223.27.23" BBHOSTOS="" LOCALCLIENT="no" gmake -C lib client
...
../build/bb-commands.sh >>hobbitclient.cfg
cat clientlaunch.cfg.DIST | sed -e 's!@CLIENTFLAGS@!!g' >clientlaunch.cfg
gmake[1]: Leaving directory `/soft/pub/xymon-4.3.0-beta2/client'

Build complete. Now run 'gmake install' as root

Hope this helps.

Dominique