From nobody Fri Oct 06 17:50:53 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S2GDs3s9Jz4w0SZ; Fri, 6 Oct 2023 17:50:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S2GDs375Kz4cYL; Fri, 6 Oct 2023 17:50:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696614653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CsnKElt3OAi8th6xtw3mW/Q5EbSRGInte9M9edxLYJk=; b=Jh3dmWgC2tWnxmpm+5bUgdQTYT6AmqkiTybM1uGI7fZVSUw7NQ2PYdtw9pMwO4do7O+xWT HSymHFap6K0M3fS+BuqDp8mdP/Cxbg9p57cOtqrTiuSpXbTOOdWijBynLOVGxDmlTRYtq0 CbeEFlnJso1NFR1/Jfk5NwWNcamjM1uRkl3799wmKozdIN1Ez5YdWL2Fr2C1LQTj4UMyxM jfzRDQwoItJlqJaYSIkXmDnTM9N7YGuLEd0sYKVQuQ9YAInQ04+54w3rTzwJTzLG+OQxUi umoc6cOvB0xpN+KoZZcDgrsW4ShFtOUNjyIMevTsOdDVxil5j+oTUm656aNADg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696614653; a=rsa-sha256; cv=none; b=OFQD//RxIk/+T1sc9Nf3RhVbjT0CtMxFzQomH9eInJFC17Wdl9FrkJr0vA+5115uYOqeOG VdQX6r3uP+jvlsKjdZ2Ibu4qItz46s3mCyQStQ5GkhN7pXnt1NaE9voTTOAJmmb3hXZLhS 4rDQmiRtsl+GUxCrkyoyz9CsRUEx0cpRVnMf1sX4/RAgu9fP9e9mRdPwAvdc//NN7QV8xW HoYtta6Oqcrz+z0jFdNapD2cpLICrYy+p49XQeLDdDTEpUCOM9RehlXG8pBbIhJ1vcPMVy BL3aO2AwLXewRmuECkNfHOFfzXRKzlDZxgS1kvhFbXpcvGs+zxSgvN3UO/YVIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696614653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CsnKElt3OAi8th6xtw3mW/Q5EbSRGInte9M9edxLYJk=; b=JUZqlajHqByBtKRXgTPCNU+Uj6wk8/TyiFBjKcvQo4AwVCIJTDpxTkMkez/BUYFt5651pe Pu9LnQ4Ycvftk6jS0iM5ikWykm8IsmkffhLpMrK0WyI7iw8hKDoIZNk/KhvuM2B9QGPiX6 EHYRs0u+wTlwBq2MYhqvKIUinp5qiASW4rIUvp0749IUZf6ehy/SfdDFkTdq6GJJaZT+pz uUqWOdN9riS1HkcVhHdrd7U6DIVJ/sr/XIRbi0yuzXbVASXAr7yguKWNqHpe35/R2t44YP n8npry7xszt6r6i9aBdHCz96+pP91stCswJNwrZ+jUhEi5bA+9JpgiaLVjEoqw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S2GDs28kGzxf5; Fri, 6 Oct 2023 17:50:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 396Hor72039073; Fri, 6 Oct 2023 17:50:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 396HorXI039070; Fri, 6 Oct 2023 17:50:53 GMT (envelope-from git) Date: Fri, 6 Oct 2023 17:50:53 GMT Message-Id: <202310061750.396HorXI039070@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 641e12af41cd - main - devel/talloc: fix build with lld 17 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 641e12af41cd9fe92a41a83d59626a43d84e94d2 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=641e12af41cd9fe92a41a83d59626a43d84e94d2 commit 641e12af41cd9fe92a41a83d59626a43d84e94d2 Author: Dimitry Andric AuthorDate: 2023-09-21 16:41:39 +0000 Commit: Dimitry Andric CommitDate: 2023-10-06 17:48:52 +0000 devel/talloc: fix build with lld 17 Building devel/talloc with lld 17 results in the following link error: 08:58:52 runner ['cc', '-Wl,--version-script=/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/talloc.vscript', '-shared', '-Wl,-h,libtalloc.so.2', 'talloc.c.6.o', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/xattr.c.2.o', '-o/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/libtalloc.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-fstack-protector-strong', '-Wl,-no-undefined'] ld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined ld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined ld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined cc: error: linker command failed with exit code 1 (use -v to see invocation) script file to fix the error. Since the linker version scripts are generated dynamically, suppress errors with lld >= 17 due to these undefined symbols. PR: 274000 Approved by: maintainer timeout (2 weeks) MFH: 2023Q4 --- devel/talloc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devel/talloc/Makefile b/devel/talloc/Makefile index e90c895d26e9..336d9a923b9c 100644 --- a/devel/talloc/Makefile +++ b/devel/talloc/Makefile @@ -50,6 +50,10 @@ CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} CFLAGS_clang= -fno-color-diagnostics CONFIGURE_ENV+= NOCOLOR=yes MAKE_ENV+= NOCOLOR=yes +# Some symbols in talloc's linker version scripts are not defined, but since the +# scripts are generated dynamically, suppress errors with lld >= 17 due to these +# undefined symbols. +LDFLAGS+= -Wl,--undefined-version post-patch: @${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \