<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2/14/2017 12:41 PM, Matt Vander Werf
wrote:<br>
</div>
<blockquote
cite="mid:CAE6TTt6xUnX4=sGMfXQ1gx26d-iEW32GHMFkF+2Zz+3f7ck4Gw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Hello all,<br>
<br>
</div>
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.<br>
<br>
</div>
I'm just compiling the client, since that's all I need for
OpenBSD. So, I am first running:<br>
<br>
MAKE=gmake ./configure.client<br>
<br>
</div>
<div>I just selected all the defaults for the prompts for this
example.<br>
<br>
Then, when running 'gmake', I am getting a compile error when
it gets to the logfetch part:<br>
<br>
</div>
<div>
<div>...<br>
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<br>
logfetch.c: In function 'logdata':<br>
logfetch.c:210: error: 'intmax_t' undeclared (first use in
this function)<br>
logfetch.c:210: error: (Each undeclared identifier is
reported only once<br>
logfetch.c:210: error: for each function it appears in.)<br>
logfetch.c:210: error: expected ')' before 'bufsz'<br>
gmake[1]: *** [Makefile:41: logfetch] Error 1<br>
gmake[1]: Leaving directory '/root/xymon-4.3.28/client'<br>
gmake: *** [build/Makefile.rules:77: client] Error 2<br>
<br>
</div>
<div>(If anyone wants the full 'gmake' output, let me know!)<br>
<br>
</div>
<div>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)<wbr>.<br>
<br>
</div>
<div>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.<br>
<br>
</div>
<div>Has anyone run into this issue and/or know what needs to
be done to resolve it?<br>
<br>
</div>
<div>Thanks in advance for any assistance!!<br>
</div>
<br>
</div>
</div>
</blockquote>
<br>
Hmm. If you can send the full gmake output, I'd appreciate it.
Thanks.<br>
<br>
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?<br>
<br>
Regards,<br>
-jc<br>
</body>
</html>