The new libevent doesn't include the evutil_secure_rng_add_bytes(), although this function is still used by tor and thus fails to start with the new libevent.
ld-elf.so.1: /usr/local/bin/tor: Undefined symbol "evutil_secure_rng_add_bytes"
/usr/local/etc/rc.d/tor: WARNING: failed to start tor
(In reply to Dries Michiels from comment #0)
Thanks for reporting this problem. This is at least a bug in the libevent release (they didn't update the library SONAME).
I've reported this to
* libevent: https://github.com/libevent/libevent/issues/831
* Tor: https://trac.torproject.org/projects/tor/ticket/30813
A commit references this bug:
Date: Sun Jun 9 11:26:27 UTC 2019
New revision: 503811
security/tor: force rebuild after r503790
evutil_secure_rng_add_bytes became nop in r478104 on all FreeBSD
releases due to a bug in arc4random_addrandom ifdef. libevent 2.1.10
hidden it based on configure check. Looks like there were consumers.
Reported by: yuri
evutil_secure_rng_add_bytes still exists on FreeBSD 11 but not on FreeBSD 12 or later. security/tor detects evutil_secure_rng_add_bytes during configure and disables if not found, so a simple rebuild should suffice. The failure was due to an ABI quirk from how bug 230764 was fixed.