[hobbit] xymon-4.3.0-beta2 Compile Errors
Dominique Frise
Dominique.Frise at unil.ch
Wed May 27 21:11:04 CEST 2009
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
More information about the Xymon
mailing list