[Xymon] OpenBSD Compile Issue with logfetch
Japheth Cleaver
cleaver at terabithia.org
Wed Feb 15 17:17:25 CET 2017
Hi,
It'll definitely be in .29; I'm collecting patches in prep at the
moment. Wrapping is usually safest when a specific OS needs it, to help
minimize the chances of unintentional effects elsewhere.
That was a specific output/formatting change to help deal with some of
the more obscure type manipulation that has to happen around there.
Regards,
-jc
On 2/14/2017 2:54 PM, Matt Vander Werf wrote:
> Hi J.C.,
>
> I tried adding in '#include <stdint.h>' in logfetch.c and that seems
> to have fixed things. I was able to do a gmake with no issues! Is this
> something that can be added to the source possibly? Or would it cause
> issues for other OS's? Or is this something I should do so that adding
> this isn't necessary?
>
> Just in case you'd still like to see it, I've included the full gmake
> output below (this is without adding that #include in).
>
> Thanks.
>
> # gmake
> MAKE="gmake" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused
> -Wno-pointer-sign -D_REENTRANT -I/usr/local/include -L/usr/local/lib
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBSD -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()
> Checking for uname
> Checking for setenv
> config.h created
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I`pwd`/include -DCLIENTONLY=1"
> LDFLAGS="" OSDEF="-DBSD" RPATHOPT="" PCREINCDIR="" ZLIBINCDIR=""
> SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="" LIBRTDEF=""
> XYMONTOPDIR="/home/xymon" XYMONHOME="/home/xymon"
> XYMONCLIENTHOME=/home/xymon XYMONLOGDIR="" XYMONHOSTNAME=""
> XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="" LOCALCLIENT="no" gmake -C lib
> client
> gmake[1]: Entering directory '/root/xymon-4.3.28/lib'
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -o test-endianness test-endianness.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o osdefs.o osdefs.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o cgiurls.o cgiurls.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -DCLIENTONLY -c -o color-client.o color.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o crondate.o crondate.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o digest.o digest.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o encoding.o encoding.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -DXYMONTOPDIR=\"/home/xymon\"
> -DXYMONLOGDIR=\"\" -DXYMONHOSTNAME=\"\" -DXYMONHOSTIP=\"127.0.0.1\"
> -DXYMONHOSTOS=\"\" -DXYMONHOME=\"/home/xymon\" -c -o environ-client.o
> environ.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o errormsg.o errormsg.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o holidays.o holidays.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o ipaccess.o ipaccess.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o md5.o md5.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o memory.o memory.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o misc.o misc.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o msort.o msort.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include `./test-endianness` -c -o rmd160c.o rmd160c.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include `./test-endianness` -c -o sha1.o sha1.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o sha2.o sha2.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o sig.o sig.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o stackio.o stackio.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o strfunc.o strfunc.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o suid.o suid.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -DCLIENTONLY -c -o timefunc-client.o
> timefunc.c
> timefunc.c: In function 'agestring':
> timefunc.c:507: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'time_t'
> timefunc.c:511: warning: format '%02ld' expects type 'long int', but
> argument 3 has type 'time_t'
> timefunc.c:511: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'time_t'
> timefunc.c:515: warning: format '%02ld' expects type 'long int', but
> argument 3 has type 'time_t'
> timefunc.c:515: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'time_t'
> timefunc.c:520: warning: format '%02ld' expects type 'long int', but
> argument 3 has type 'time_t'
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o tree.o tree.c
> ar cr libxymonclient.a osdefs.o cgiurls.o color-client.o crondate.o
> digest.o encoding.o environ-client.o errormsg.o holidays.o ipaccess.o
> md5.o memory.o misc.o msort.o rmd160c.o sha1.o sha2.o sig.o stackio.o
> strfunc.o suid.o timefunc-client.o tree.o
> ranlib libxymonclient.a || echo ""
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o locator.o locator.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o loadhosts.o loadhosts.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o sendmsg.o sendmsg.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o xymond_ipc.o xymond_ipc.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o xymond_buffer.o xymond_buffer.c
> ar cr libxymonclientcomm.a locator.o loadhosts.o sendmsg.o
> xymond_ipc.o xymond_buffer.o
> ranlib libxymonclientcomm.a || echo ""
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o run.o run.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -I../include -c -o timing.o timing.c
> ar cr libxymontime.a run.o timing.o
> ranlib libxymontime.a || echo ""
> gmake[1]: Leaving directory '/root/xymon-4.3.28/lib'
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I`pwd`/include -DCLIENTONLY=1"
> LDFLAGS="" RPATHOPT="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS=""
> ZLIBLIBS="" LIBRTDEF="" XYMONHOME="/home/xymon" gmake -C common client
> gmake[1]: Entering directory '/root/xymon-4.3.28/common'
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -c -o xymon.o xymon.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o ../client/xymon xymon.o
> ../lib/libxymonclientcomm.a ../lib/libxymonclient.a
> ../lib/libxymonclientcomm.a(sendmsg.o): In function `sendtoxymond':
> /root/xymon-4.3.28/lib/sendmsg.c:249: warning: warning: sprintf() is
> often misused, please use snprintf()
> /root/xymon-4.3.28/lib/sendmsg.c:280: warning: warning: strcpy() is
> almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> ../lib/libxymonclient.a(environ-client.o): In function `expand_env':
> /root/xymon-4.3.28/lib/environ.c:375: warning: warning: strcat() is
> almost always misused, please use strlcat()
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -c -o xymonlaunch.o xymonlaunch.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o ../client/xymonlaunch xymonlaunch.o
> ../lib/libxymontime.a ../lib/libxymonclient.a
> xymonlaunch.o: In function `main':
> /root/xymon-4.3.28/common/xymonlaunch.c:548: warning: warning:
> sprintf() is often misused, please use snprintf()
> xymonlaunch.o: In function `load_config':
> /root/xymon-4.3.28/common/xymonlaunch.c:114: warning: warning:
> strcpy() is almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> ../lib/libxymontime.a(timing.o): In function `show_timestamps':
> /root/xymon-4.3.28/lib/timing.c:136: warning: warning: strcat() is
> almost always misused, please use strlcat()
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -c -o xymoncmd.o xymoncmd.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o ../client/xymoncmd xymoncmd.o ../lib/libxymonclient.a
> xymoncmd.o: In function `xymon_default_envs':
> /root/xymon-4.3.28/common/xymoncmd.c:69: warning: warning: sprintf()
> is often misused, please use snprintf()
> /root/xymon-4.3.28/common/xymoncmd.c:79: warning: warning: strcpy() is
> almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> ../lib/libxymonclient.a(environ-client.o): In function `expand_env':
> /root/xymon-4.3.28/lib/environ.c:375: warning: warning: strcat() is
> almost always misused, please use strlcat()
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -c -o xymongrep.o xymongrep.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o ../client/xymongrep xymongrep.o
> ../lib/libxymonclientcomm.a ../lib/libxymonclient.a
> xymongrep.o: In function `downok':
> /root/xymon-4.3.28/common/xymongrep.c:76: warning: warning: sprintf()
> is often misused, please use snprintf()
> ../lib/libxymonclientcomm.a(loadhosts.o): In function `localhostinfo':
> /root/xymon-4.3.28/lib/loadhosts.c:476: warning: warning: strcpy() is
> almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> ../lib/libxymonclientcomm.a(loadhosts.o): In function `load_hostnames':
> /root/xymon-4.3.28/lib/loadhosts_file.c:278: warning: warning:
> strcat() is almost always misused, please use strlcat()
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -c -o xymoncfg.o xymoncfg.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o ../client/xymoncfg xymoncfg.o ../lib/libxymonclient.a
> ../lib/libxymonclient.a(errormsg.o): In function `redirect_cgilog':
> /root/xymon-4.3.28/lib/errormsg.c:186: warning: warning: sprintf() is
> often misused, please use snprintf()
> ../lib/libxymonclient.a(misc.o): In function `commafy':
> /root/xymon-4.3.28/lib/misc.c:173: warning: warning: strcpy() is
> almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> ../lib/libxymonclient.a(errormsg.o): In function `errprintf':
> /root/xymon-4.3.28/lib/errormsg.c:73: warning: warning: strcat() is
> almost always misused, please use strlcat()
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -c -o xymondigest.o xymondigest.c
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o ../client/xymondigest xymondigest.o
> ../lib/libxymonclientcomm.a ../lib/libxymonclient.a
> ../lib/libxymonclient.a(digest.o): In function `digest_done':
> /root/xymon-4.3.28/lib/digest.c:210: warning: warning: sprintf() is
> often misused, please use snprintf()
> ../lib/libxymonclient.a(memory.o): In function `xstrcpy':
> /root/xymon-4.3.28/lib/memory.c:282: warning: warning: strcpy() is
> almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> ../lib/libxymonclient.a(errormsg.o): In function `errprintf':
> /root/xymon-4.3.28/lib/errormsg.c:73: warning: warning: strcat() is
> almost always misused, please use strlcat()
> gmake[1]: Leaving directory '/root/xymon-4.3.28/common'
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I`pwd`/include -DCLIENTONLY=1"
> LDFLAGS="" RPATHOPT="" SSLLIBS="" NETLIBS="" LIBRTDEF=""
> XYMONHOME="/home/xymon" gmake -C build all
> gmake[1]: Entering directory '/root/xymon-4.3.28/build'
> gcc -o merge-lines -g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 merge-lines.c
> /tmp//ccLPhBko.o: In function `main':
> /root/xymon-4.3.28/build/merge-lines.c:62: warning: warning: sprintf()
> is often misused, please use snprintf()
> /root/xymon-4.3.28/build/merge-lines.c:66: warning: warning: strcpy()
> is almost always misused, please use strlcpy()
> /root/xymon-4.3.28/build/merge-lines.c:90: warning: warning: strcat()
> is almost always misused, please use strlcat()
> gcc -o merge-sects -g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 merge-sects.c
> /tmp//cc9cfGpI.o: In function `main':
> /root/xymon-4.3.28/build/merge-sects.c:64: warning: warning: sprintf()
> is often misused, please use snprintf()
> /root/xymon-4.3.28/build/merge-sects.c:109: warning: warning: strcat()
> is almost always misused, please use strlcat()
> gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 setup-newfiles.c ../lib/libxymonclient.a
> ../lib/libxymonclient.a(digest.o): In function `digest_done':
> /root/xymon-4.3.28/lib/digest.c:210: warning: warning: sprintf() is
> often misused, please use snprintf()
> /tmp//ccs6wY8Z.o: In function `main':
> /root/xymon-4.3.28/build/setup-newfiles.c:54: warning: warning:
> strcpy() is almost always misused, please use strlcpy()
> ../lib/libxymonclient.a(memory.o): In function `xsprintf':
> /root/xymon-4.3.28/lib/memory.c:355: warning: warning: vsprintf() is
> often misused, please use vsnprintf()
> /tmp//ccs6wY8Z.o: In function `main':
> /root/xymon-4.3.28/build/setup-newfiles.c:58: warning: warning:
> strcat() is almost always misused, please use strlcat()
> gcc -o renamevars -g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 renamevars.c
> gcc -o renametasks -g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 renametasks.c
> gmake[1]: Leaving directory '/root/xymon-4.3.28/build'
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -Wno-pointer-sign
> -D_REENTRANT -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I`pwd`/include -DCLIENTONLY=1"
> XYMONHOME="/home/xymon" XYMONHOSTIP="127.0.0.1" LOCALCLIENT="no"
> SSLLIBS="" NETLIBS="" LIBRTDEF="" gmake -C client all
> gmake[1]: Entering directory '/root/xymon-4.3.28/client'
> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
> -DCLIENTONLY=1 -o logfetch logfetch.c ../lib/libxymonclient.a
> logfetch.c: In function 'logdata':
> logfetch.c:210: error: 'intmax_t' undeclared (first use in this function)
> logfetch.c:210: error: (Each undeclared identifier is reported only once
> logfetch.c:210: error: for each function it appears in.)
> logfetch.c:210: error: expected ')' before 'bufsz'
> gmake[1]: *** [Makefile:41: logfetch] Error 1
> gmake[1]: Leaving directory '/root/xymon-4.3.28/client'
> gmake: *** [build/Makefile.rules:77: client] Error 2
>
> --
> Matt Vander Werf
>
> On Tue, Feb 14, 2017 at 5:43 PM, Japheth Cleaver
> <cleaver at terabithia.org <mailto:cleaver at terabithia.org>> wrote:
>
> On 2/14/2017 12:41 PM, Matt Vander Werf wrote:
>> Hello all,
>>
>> Not sure if anyone else has come across this or not, but I'm
>> running into an issue compiling the latest Xymon client (4.3.28)
>> on OpenBSD 6.0.
>>
>> I'm just compiling the client, since that's all I need for
>> OpenBSD. So, I am first running:
>>
>> MAKE=gmake ./configure.client
>>
>> I just selected all the defaults for the prompts for this example.
>>
>> Then, when running 'gmake', I am getting a compile error when it
>> gets to the logfetch part:
>>
>> ...
>> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT
>> -I/usr/local/include -L/usr/local/lib -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -DBSD -I/root/xymon-4.3.28/include
>> -DCLIENTONLY=1 -o logfetch logfetch.c ../lib/libxymonclient.a
>> logfetch.c: In function 'logdata':
>> logfetch.c:210: error: 'intmax_t' undeclared (first use in this
>> function)
>> logfetch.c:210: error: (Each undeclared identifier is reported
>> only once
>> logfetch.c:210: error: for each function it appears in.)
>> logfetch.c:210: error: expected ')' before 'bufsz'
>> gmake[1]: *** [Makefile:41: logfetch] Error 1
>> gmake[1]: Leaving directory '/root/xymon-4.3.28/client'
>> gmake: *** [build/Makefile.rules:77: client] Error 2
>>
>> (If anyone wants the full 'gmake' output, let me know!)
>>
>> If I go and comment out all the lines with logfetch in them in
>> client/Makefile, then everything compiles successfully and I can
>> even do a 'gmake install' and everything works just fine (but
>> only after commenting out the logfetch lines in
>> $XYMONHOME/bin/xymonclient.sh).
>>
>> Honestly, this works fine for my case since I don't really need
>> any logfetch functionality working for this particular client
>> anyways. But it'd be nice if I didn't have to do all this
>> commenting every time I want to compile a new version of the
>> Xymon client on OpenBSD.
>>
>> Has anyone run into this issue and/or know what needs to be done
>> to resolve it?
>>
>> Thanks in advance for any assistance!!
>>
>
> Hmm. If you can send the full gmake output, I'd appreciate it. Thanks.
>
> It seems like an '#include <stdint.h>' in logfetch.c (in the
> normal section) might resolve this; it's the only place I believe
> we're doing an intmax_t conversion like this. Do you think you'd
> be able to test that?
>
> Regards,
> -jc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170215/79351929/attachment.html>
More information about the Xymon
mailing list