Closed wilkart closed 1 week ago
@jamescowens @div72 Dear collegues, maybe you could review my changes and advice how to pass the test-linux-minimal.
I am trying to solve problem of building on FreeBSD 14. I am running 2 instances now for verification, built with gmake on amd64 and with cmake on arm64.
@wilkart Was the <linux/random.h>
include causing problems for FreeBSD? If so, did you check if it was CMake-only or reproducable with automake? I remember CMake setting some HAVE_*
flags to 0 when it shouldn't have been defined in the first place.
@div72 I confirm it is CMake-only error.
[ 75%] Building CXX object src/CMakeFiles/gridcoin_util.dir/random.cpp.o
/root/Gridcoin-Research/src/random.cpp:34:10: fatal error: 'linux/random.h' file not found
#include <linux/random.h>
^~~~~~~~~~~~~~~~
1 error generated.
Solution, I simply took from bitcoin repository as upstream.
Fix building on FreeBSD.
Additionally remove #include <linux/random.h> according to upstream.