HomePhabricator

build: libevent 2.1.12-stable

Description

build: libevent 2.1.12-stable

Summary:

Start using libevent 2.1.12-stable in depends. Changelog is available here: https://raw.githubusercontent.com/libevent/libevent/release-2.1.12-stable/ChangeLog. This release basically only contains bug fixes.

Upgrading will also prevent some oss-fuzz reports which are coming from libevent code

While working on the GUIX build, I got the following error message:

FAILED: src/bitcoin-cli
: && /home/pierre/.guix-profile/bin/g++ -m64 -m64 -g -O2 -Wl,--exclude-libs,libstdc++ -static-libstdc++ -Wl,-z,relro -Wl,-z,now -Wl,--wrap=__divmoddi4 -Wl,--wrap=log2f -Wl,--wrap=exp -Wl,--wrap=log -Wl,--wrap=pow -fPIE -pie src/CMakeFiles/bitcoin-cli.dir/bitcoin-cli.cpp.o -o src/bitcoin-cli  ../depends/x86_64-linux-gnu/lib/libjemalloc_pic.a  src/libcommon.a  src/librpcclient.a  ../depends/x86_64-linux-gnu/lib/libevent.a  src/libbitcoinconsensus.a  src/libscript.a  src/libcommon.a  src/libbitcoinconsensus.a  src/libscript.a  src/secp256k1/libsecp256k1.a  src/libutil.a  ../depends/x86_64-linux-gnu/lib/libevent.a  src/crypto/libcrypto.a  src/crypto/libcrypto_sse4.1.a  src/crypto/libcrypto_avx2.a  src/crypto/libcrypto_shani.a  ../depends/x86_64-linux-gnu/lib/libboost_filesystem-mt-x64.a  ../depends/x86_64-linux-gnu/lib/libboost_thread-mt-x64.a  src/univalue/libunivalue.a  ../depends/x86_64-linux-gnu/lib/libjemalloc_pic.a  -lm  -pthread && :
ld: ../depends/x86_64-linux-gnu/lib/libevent.a(evutil_rand.o): in function `arc4_stir':
evutil_rand.c:(.text+0x2d2): undefined reference to `sysctl'
collect2: error: ld returned 1 exit status

This is a backport of core#21991

Test Plan: run CI builds

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13453

Details

Provenance
fanquake <fanquake@gmail.com>Authored on May 17 2021, 01:31
PiRKCommitted on Mar 31 2023, 11:49
PiRKPushed on Mar 31 2023, 11:49
Reviewer
Restricted Project
Differential Revision
D13453: build: libevent 2.1.12-stable
Parents
rABC3b8e47581649: [alias-server] Rename secrets.js.sample so that it can be linted and formatted
Branches
Unknown
Tags
Unknown