From nobody Sun Oct 15 15:45:35 2023 X-Original-To: dev-commits-ports-all@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 4S7l273YJxz4x5ZX; Sun, 15 Oct 2023 15:45:35 +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 4S7l2731SPz4JdZ; Sun, 15 Oct 2023 15:45:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697384735; 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=spU4j+zXop/NBxg+3NGPszcy887+i+dNzUE8oRl9bfs=; b=ZVVkjCpmeQpdzKpiOl0p2yyrHHdoBN6rGbfW8cWt4S6QXvKZY5aAIfKwJxEpshcC6rH+sX andYYplVoqDq/104RT/gR1VEwC2LeRSRVN3SSNoHBgDvLvcC90JZlcu4sf6qR+efaXizwN yy6dzd0DySNuNvWhw9VEyi8j0DmlYVscsRV4XRv6A2zne/NCuFhFhBIigS4utSVR1mDHgr 5Ik67e2UP9S+81jDR9ANB/fQfswzoRYA2O7v8EgH9fNyKVqZb1WioqEXQ3PTA19lr7bX1/ hMkSZ8zq7LJvZdBE1JJv0+vSRsfV+KzCFgchipu+xhCclq334LajZNU1qqoH7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697384735; a=rsa-sha256; cv=none; b=Axtw8ou9LUa2Ip6RH/kqn6KOSLC3gdxNd9oC6G94rtBlCMtFGvgk3AbViGQTqyNd4LDELm 42Uinq4WBtiUROrxwS6/W8hI80t9ifNBC9FbZn/NGmx1+EuV6KlRB+RNyUoNGhVCrpmpyZ rxC6enYOfrx2DikQLwp9D5w5SyPJJ5Jv/PlJpwlUoS0IE6HNERfCYwBCauNEn+vYOsD1ei wGFYyziErCPavK5CG8AC+ZbW7mxWtlFWQ2NjH+95rZZebPZP1veErgxYeBH1KvyBLtHeNu 7T9zL9/47iFIjO3ikay5e9y84iG8yiM/jOm5oKxySCwimKSFWa3/NhhTP2RZAg== 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=1697384735; 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=spU4j+zXop/NBxg+3NGPszcy887+i+dNzUE8oRl9bfs=; b=UkepRtAE3CugrVRBIf4/Ux9Ww2wEAOVQ2/IEgD4CxzXPHKIcIXz1Evg7xbDqXK44kijOsK eyR0X0B0Uw4A12FC01Bt1XTrx+ZIUUoHbp065aqvt3PKEoeqev+/7n3QEP9k4TPAcbHQOj czRJP9FXnE4ZMNpyMdRQt8tX7NNrKEDsuzcbrzv4u+rysG+TkNOExpecSr5RbkgUvlBe5C DPpWDePHzPoTbWQpf6cA1cpX8h+/sKcHV/YX1rPCWKfqGd8LEiivmY5bXO+vegWcxvuoe2 9WIe4+bHFi3mhA5MofmmFqTDdFiaONXaxfJ++B3EkIlPVRzO47gHrZCr3pe9bQ== 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 4S7l2724k5z1Ht8; Sun, 15 Oct 2023 15:45:35 +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 39FFjZlk009209; Sun, 15 Oct 2023 15:45:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39FFjZPt009206; Sun, 15 Oct 2023 15:45:35 GMT (envelope-from git) Date: Sun, 15 Oct 2023 15:45:35 GMT Message-Id: <202310151545.39FFjZPt009206@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: bc9cbb7a3ac1 - main - databases/tdb: fix build with lld 17 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: bc9cbb7a3ac19cd58f0e910cc3438a786c173c93 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc9cbb7a3ac19cd58f0e910cc3438a786c173c93 commit bc9cbb7a3ac19cd58f0e910cc3438a786c173c93 Author: Dimitry Andric AuthorDate: 2023-09-28 17:07:19 +0000 Commit: Dimitry Andric CommitDate: 2023-10-15 15:44:41 +0000 databases/tdb: fix build with lld 17 Building databases/tdb with lld 17 results in the following link errors: 11:57:13 runner ['cc', '-Wl,--version-script=/wrkdirs/usr/ports/databases/tdb/work/tdb-1.4.7/bin/default/tdb.vscript', '-shared', '-Wl,-h,libtdb.so.1', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/xattr.c.2.o', 'common/check.c.1.o', 'common/error.c.1.o', 'common/tdb.c.1.o', 'common/traverse.c.1.o', 'common/freelistcheck.c.1.o', 'common/lock.c.1.o', 'common/dump.c.1.o', 'common/freelist.c.1.o', 'common/io.c.1.o', 'common/open.c.1.o', 'common/transaction.c.1.o', 'common/hash.c.1.o', 'common/summary.c.1.o', 'common/rescue.c.1.o', 'common/mutex.c.1.o', '-o/wrkdirs/usr/ports/databases/tdb/work/tdb-1.4.7/bin/default/libtdb.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-lpthread', '-fstack-protector-strong', '-Wl,-no-undefined'] ld: error: version script assignment of 'TDB_1.2.1' to symbol 'tdb_do_delete' failed: symbol not defined 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) Since the linker version scripts are generated dynamically, suppress errors with lld >= 17 due to these undefined symbols. PR: 274146 Approved by: maintainer timeout (2 weeks) MFH: 2023Q4 --- databases/tdb/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/databases/tdb/Makefile b/databases/tdb/Makefile index 7c96b97b87f1..e3d3ca3b047e 100644 --- a/databases/tdb/Makefile +++ b/databases/tdb/Makefile @@ -52,6 +52,10 @@ CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} CFLAGS_clang= -fno-color-diagnostics CONFIGURE_ENV+= NOCOLOR=yes MAKE_ENV+= NOCOLOR=yes +# Some symbols in tdb'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' \