<div dir="auto">Thanks, hit that snag too - it was fixed in my branch `if (MAYBEMACRO + 0 < SOMEVAL)` trick.<div dir="auto"><br></div><div dir="auto">For core files, Solaris has a nifty `pstack` others lack.</div><div dir="auto"><br></div><div dir="auto">Or you can call `gdb upsmon`, enter `run`, and if it coredumps - `bt` for backtrace (annotated in debug builds). There were some more complex ways to pass CLI args for tested program, see help or man page :)</div><div dir="auto"><br></div><div dir="auto">Jim</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 23, 2022, 02:36 vom513 via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">One other thing I should come clean on.  When compiling 2.8.x - it always dies with an error in common.c about left == operand (UINTPTR_MAX) has no value.  This seems to be a 32/64 bit check.  I know I’m 32 bit, so I’ve been commenting out the below block as shown.  Hopefully this isn't biting me in some other place (it seemed to compile fine after this - and my binaries came out of the oven as 32-bit sparc.)<br>
<br>
/* Know which bitness we were built for,<br>
 * to adjust the search paths for get_libname() */<br>
#include "nut_stdint.h"<br>
/*#if UINTPTR_MAX == 0xffffffffffffffffULL<br>
# define BUILD_64   1<br>
#else<br>
# ifdef BUILD_64<br>
#  undef BUILD_64<br>
# endif<br>
#endif */<br>
<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>