[MacPorts] #54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf

MacPorts noreply at macports.org
Fri Jul 14 18:13:05 UTC 2017


#54474: expat 2.2.2 fails to build on Snow Leopard -- missing arc4random_buf
--------------------+-------------------
 Reporter:  gnw3    |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.4.1
 Keywords:          |       Port:  expat
--------------------+-------------------
 {{{
 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 reasons to patch this detection code away or need changes to the
 build system, please open a bug. Thank you!
 }}}

 A workaround is to append {{{-DXML_POOR_ENTROPY}}} to {{{CPPFLAGS}}} in
 the generated Makefile.

--
Ticket URL: <https://trac.macports.org/ticket/54474>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list