Closed jaapb closed 4 years ago
I'm not able to reproduce this with a 4.10 opam switch
All right, then it probably is something NetBSD-specific, thanks for checking. I'll investigate further.
So, it turns out that calling variables stdout
and/or stderr
leads to problems on NetBSD (they are #defined in stdio.h). If I modify expect_test_collector_stubs.c so that the variables are called something else, everything compiles correctly. Would you like me to put in a pull request?
A PR would be welcome. Thanks for the investigation.
This is also being discussed in https://github.com/ocaml/ocaml/pull/9483#issuecomment-620531237 upstream. A fix to avoid the use of stdout/stderr in ppx_expect would be very useful.
When trying to compile ppx_expect (either the latest release or the latest commit) with OCaml 4.10, I get the following error: