Hi Jerry,
On 2018-10-18 12:29, Jerry Swan wrote:
I'm attempting to compile under cygwin.
[...]
The problem would appear to be the absence of
'secure_getenv', though
FWIW
the generated makefile contains 'HAVE_SECURE_GETENV = 0'.
We supply a replacement implementation of secure_getenv() that should
be used on systems where this function is not available. That
replacement
is defined in lib/stdlib.h, but I see that spot/misc/tmpfile.c
includes <cstdlib> instead.
I'd expect <cstdlib> to include <stdlib.h> and the compiler to prefer
our
version of that header over the standard one, but probably it's the
standard
one that gets used in your case.
Can you try to edit spot/misc/tmpfile.c and replace <cstdlib> by
<stdlib.h> on line 23?
Best regards,
PS: in case it can be of any help, we have statically compiled binaries
using MinGW at
https://gitlab.lrde.epita.fr/spot/spot/-/jobs/artifacts/stable/browse?job=m…
(Those are built using a cross-compiler and not tested, as we don't have
any Windows
system around.)
--
Alexandre Duret-Lutz