[MacPorts] #54503: expat : compilation fails on Mac OS X 10.6 / lib/xmlparse.c high quality entropy
MacPorts
noreply at macports.org
Wed Jul 19 21:20:30 UTC 2017
#54503: expat : compilation fails on Mac OS X 10.6 / lib/xmlparse.c high quality
entropy
------------------------------------------+-------------------
Reporter: rossduncan | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Keywords: expat xmlparse entropy build | Port: expat
------------------------------------------+-------------------
Trying to update expat -- or rather, something else that requires expat --
but it repeatedly fails while building expat. Looking in the log, the
following looks like the most likely culprit:
{{{
:info:build lib/xmlparse.c:56:3: error: #error You do not have support for
any sources of high quality entropy enabled. For end user security, that
is probably not what you want. Your options include: * Linux + glibc
>=2.25 (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall
SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf):
HAVE_ARC4RANDOM_BUF, * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF +
HAVE_LIBBSD, * Windows (RtlGenRandom): _WIN32. If insist on not using any
of these, bypass this error by defining XML_POOR_ENTROPY; you have been
warned. For CMake, one way to pass the define is: cmake
-DCMAKE_C_FLAGS="-pipe -O2 -DHAVE_SYSCALL_GETRANDOM" . If you have reaso
ns to patch this detection code away or need changes to the build system,
please open a bug. Thank you!
}}}
I don't care about having high quality entropy. I just want to build the
(other) thing I want to build. (Why does an XML Parser care about this
anyway?!)
--
Ticket URL: <https://trac.macports.org/ticket/54503>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list