Closed seanm closed 8 months ago
Thanks for reporting. Does it work when building by GNU autotools?
Seems like yes, and I'm able to run the tests (many fail, but whatever).
I added FreeBSD OS by Cirrus CI and cannot reproduce with current master: https://cirrus-ci.com/build/5653130858725376
OK, closing then.
Did you fix it? Or is one expected to use autotools and not CMake?
No, cannot fix as I do not have a patch if I cannot repoduce.
Looks like there is no OpenBSD option with Cirrus CI? I reproed in a VM with a very vanilla OpenBSD installation. That's a fair bit of work of course, which I'm not expecting you to do...
PR is welcome.
I'm also able to solve the link error explicitly adding -lc
, to link against libc, which contains malloc.
The OpenBSD docs say "it is not necessary to supply the loader flag -lc", so that's a bit surprising, but maybe that general statement does not apply when --no-undefined
is also supplied.
In any case, adding -lc
explicitly should be harmless, and seems a good way to fix this. But I'm not sure where's the best place to add it...
That worked! Thanks!
Thanks for confirmation!
Using cmake on OpenBSD 7.0.
make VERBOSE=1
gives:Running that line manually without the
-Wl,--no-undefined
results in a successful linking.I'm not familiar with what that is, or why it's there...