[Bug 273845] emulators/qemu-user-static: ld: error: undefined symbol: elf_getphnum

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Sep 2023 11:56:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273845

--- Comment #3 from John Hein <jcfyecrayz@liamekaens.com> ---
This seems to be a problem if ports devel/elfutils is installed.  It is not a
dependency of qemu-user-static (nor any of ITS dependencies), so in a single
port build of qemu-user-static in poudriere, it would not show up as a failure.

Simple patch that leaps to mind would be to use "/usr/lib/libelf.so" in the
LIBS specification for FreeBSD in the 'configure' script (instead of "-lelf").

devel/elfutils is two releases behind (0.187 April 2022 vs 0.189 in March
2023).  I have not checked to see if that would help yet.

-- 
You are receiving this mail because:
You are the assignee for the bug.