Missing declaration in devel/elfutils (elfutils/gelf.h), causes emulators/qemu to fail to build

Autumn Jolitz autumn.jolitz at gmail.com
Sat Mar 14 20:15:21 PDT 2026


Hi,

devel/elfutils is missing a declaration for Elf64_Lib in elfutils/gelf.h — this causes emulators/qemu to fail to build

Editing /usr/local/include/elfutils/gelf.h with the following made a difference:

-typedef Elf64_Lib GElf_Lib;
+typedef uint64_t Elf64_Lib;
+typedef Elf64_Lib GElf_Lib;

Also a patch for qemu dport:

diff --git a/emulators/qemu/Makefile.DragonFly b/emulators/qemu/Makefile.DragonFly
index 20af42e30a1..c273fcd5dd6 100644
--- a/emulators/qemu/Makefile.DragonFly
+++ b/emulators/qemu/Makefile.DragonFly
@@ -54,3 +54,6 @@ dfly-install:
                ${STAGEDIR}${PREFIX}/bin/qemu-arm
 .endif

+CFLAGS+=-I/usr/local/include -I/usr/local/include/elfutils
+LDFLAGS+=-L/usr/local/lib/elfutils -Wl,-rpath,/usr/local/lib/elfutils
+

Autumn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20260314/bd46c3bc/attachment.htm>


More information about the Users mailing list