Compiling port devel/elfutils within poudriere jail (13-STABLE) on 14-CURRENT host fails with the error shown below. =>> Building devel/elfutils build started at Fri Aug 27 07:51:23 UTC 2021 port directory: /usr/ports/devel/elfutils package name: elfutils-0.179 building for: FreeBSD poudrieregdr.de 13.0-STABLE FreeBSD 13.0-STABLE 1300512 amd64 maintained by: cem@FreeBSD.org Makefile ident: Poudriere version: 3.3.7 Host OSVERSION: 1400032 Jail OSVERSION: 1300513 Job Id: 02 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1300512 UNAME_v=FreeBSD 13.0-STABLE 1300512 UNAME_r=13.0-STABLE BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin LOCALBASE=/usr/local USER=root LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.3.7 MAKEOBJDIRPREFIX=/pool/sources/13-STABLE/obj/ MASTERMNT=/pool/poudriere/data/.m/13-amd64-head-default/ref POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen PWD=/pool/poudriere/data/.m/13-amd64-head-default/ref/.p/pool P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS MASTERNAME=13-amd64-head-default SCRIPTPREFIX=/usr/local/share/poudriere OLDPWD=/pool/poudriere/data/.m/13-amd64-head-default/ref/.p SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= DEPENDS_ARGS= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for elfutils-0.179: MANPAGES=on: Build and/or install manual pages NLS=on: Native Language Support ===> Use 'make config' to modify these settings ---End OPTIONS List--- [...] gcc10 -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/local/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -I./../libelf -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -Wno-null-dereference -Wno-unused-value -Wno-cast-function-type -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing -MT xstrndup.o -MD -MP -MF .deps/xstrndup.Tpo -c -o xstrndup.o xstrndup.c gcc10 -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/local/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -I./../libelf -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused -Wextra -Wstack-usage=262144 -ffunction-sections -fPIC -D_FORTIFY_SOURCE=2 -O2 -pipe -Wno-null-dereference -Wno-unused-value -Wno-cast-function-type -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing -MT xmalloc.o -MD -MP -MF .deps/xmalloc.Tpo -c -o xmalloc.o xmalloc.c In file included from ../config.h:140, from xstrndup.c:30: ./eu-config.h:199:1: error: static declaration of 'mempcpy' follows non-static declaration 199 | mempcpy(void * restrict dst, const void * restrict src, size_t len) | ^~~~~~~
Fix committed.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=06a7ac65bd3efb5eb1a1705a55f11acc812d941d commit 06a7ac65bd3efb5eb1a1705a55f11acc812d941d Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-11-07 23:42:46 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-11-07 23:43:55 +0000 devel/elfutils: Fix build after mempcpy(3) and wmempcpy(3) were added PR: 258092 devel/elfutils/Makefile | 6 ++++++ devel/elfutils/files/patch-lib_eu-config.h | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-)
A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d33e4c76bdc723c7059c841dc4ad14be6a30d8ac commit d33e4c76bdc723c7059c841dc4ad14be6a30d8ac Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-11-07 23:42:46 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-11-08 09:06:43 +0000 devel/elfutils: Fix build after mempcpy(3) and wmempcpy(3) were added PR: 258092 (cherry picked from commit 06a7ac65bd3efb5eb1a1705a55f11acc812d941d) devel/elfutils/Makefile | 6 ++++++ devel/elfutils/files/patch-lib_eu-config.h | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-)