From 080a61b592d8ffef8dbb497926d55a17c269d1dd Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 1 Jul 2026 12:49:31 +0000 Subject: [PATCH] fuzzing: fix honggfuzz build by linking libzstd libbfd now requires libzstd, causing undefined references to ZSTD_isError, ZSTD_compress and ZSTD_decompress when building honggfuzz. Install libzstd-devel and patch the honggfuzz Makefile to add -lzstd to LDFLAGS. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Giuseppe Scrivano --- tests/fuzzing/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/fuzzing/Dockerfile b/tests/fuzzing/Dockerfile index 4174bbb5..c1fbb2b1 100644 --- a/tests/fuzzing/Dockerfile +++ b/tests/fuzzing/Dockerfile @@ -1,9 +1,10 @@ FROM quay.io/fedora/fedora:latest RUN dnf install -y python3 automake autoconf libtool make git pkg-config clang \ - glibc-static libunwind-devel binutils-devel xz-devel libatomic json-c-devel + glibc-static libunwind-devel binutils-devel xz-devel libatomic json-c-devel \ + libzstd-devel -RUN git clone --depth 1 https://github.com/google/honggfuzz.git && cd honggfuzz && make -j $(nproc) && make install PREFIX=/usr +RUN git clone --depth 1 https://github.com/google/honggfuzz.git && cd honggfuzz && sed -i 's/LDFLAGS\s*+=/LDFLAGS += -lzstd/' Makefile && make -j $(nproc) && make install PREFIX=/usr COPY run-tests.sh /usr/local/bin