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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Sep 2023 07:39:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273845

            Bug ID: 273845
           Summary: emulators/qemu-user-static: ld: error: undefined
                    symbol: elf_getphnum
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: emulation@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(emulation@FreeBSD.org)
          Assignee: emulation@FreeBSD.org

On recent CURRENT (FreeBSD 15.0-CURRENT #29 main-n265348-03bfee175269: Fri Sep
15 07:01:12 CEST 2023 amd64) port

emulators/qemu-user-static

fails to build due to the following linker error:


[...]
ld: error: undefined symbol: elf_getphnum
>>> referenced by core.c
>>>               core.o:(procstat_core_open) in archive /usr/lib/libprocstat.a
>>> did you mean: elf_getshnum
>>> defined in: /usr/local/lib/libelf.a(elf_getshdrnum.o)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:201: qemu-i386] Error 1
gmake[2]: Leaving directory
'/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-527096e0c8/i386-bsd-user'
gmake[1]: *** [Makefile:483: subdir-i386-bsd-user] Error 2
ld: error: undefined symbol: elf_getphnum
>>> referenced by core.c
>>>               core.o:(procstat_core_open) in archive /usr/lib/libprocstat.a
>>> did you mean: elf_getshnum
>>> defined in: /usr/local/lib/libelf.a(elf_getshdrnum.o)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:201: qemu-arm] Error 1
gmake[2]: Leaving directory
'/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-527096e0c8/arm-bsd-user'
gmake[1]: *** [Makefile:483: subdir-arm-bsd-user] Error 2

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