From nobody Sun Nov 19 20:10: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 4SYMFl6q98z51GvW; Sun, 19 Nov 2023 20:10: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 4SYMFl4nRcz4fcg; Sun, 19 Nov 2023 20:10:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700424635; 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=CgQvr4+KnFZPCX2t+w00hWJLpwCMPQerDvw7QAVsbHg=; b=R6z8exgYeepnTuBD/sOCjGfihyxvHloj+FXGS85XLbsq8XTWBwjhK/pCWF6uGyHOw7dvie SqDuPBeUR/4zcYVHpN4dOH0oOQjiPmj81gciydj/2vF+ecfvZvd9acjAWF1O5vJACt4e26 z2kLrHCJogSlktvO6VzSIZjH/ApA5a1Oot9aRJ+3ZrcMm82ZQ3faplte2YkJGeN/zay1/z Z9ZE1ZRKnngsqL1964jFZJTtAJf6MLSkdQ3nDW+jCZ/c1WiTk7z4hvpRKtXYzFeCEtgODx VRvZCH+z0zXpkwhCPK0P1xIkSVfhmhw4b0qtvy2yiQbEI/3PJDwf1GkBO5Ie2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700424635; 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=CgQvr4+KnFZPCX2t+w00hWJLpwCMPQerDvw7QAVsbHg=; b=GRwPCqzK39cJlz93NQVWMkBMjJOvkY/bfV8GZesS7lVu7yIH5ulTCcPODGUdLweOrEFYH5 YrCktsweXYfMasDJEYrpzQDHWiOIzE0nu5KXvPmnLqbzxEfi+hGLzEkkythFl0SuksXzQF KvaSgPsXLJsxBe/5UTOjZ4tm3DWoByiR3AWpWtZOEwKnKHtYSPzt586M/Jz1x/yBzSsv3O UoxkQgb0hNB3mDw/sf8SDKmR/T68yTD96g3PP3bv3m+Trq7sFqjoPR5DG4Hmc5x0PA4pr9 KdlsBHvsM4wwrH+LEqwpHYcXvlB+6LoLJeDuZxQsAzFYuy+Dc70fHaeSsGE+qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700424635; a=rsa-sha256; cv=none; b=npdKf4eH2TDOsjTze1wedqZynpQtsL4ABljYqmNcN3VOTT6nUs2Aqp6x140VksrNjsjrtx aWTLqaccoY2hTg8TvxRLw1iKEu3JAlryei1LacZvJ/+9JAxadt+kh2Y7/pm31TyxX2wLoU Fqu1a95jk1LNxbYOuonEmoUr7V3Jsv3PB35wZRfnrqgOtc+rATKWk3NHtom+S1d/QqpFJj EON76COfW7XvtTW6q93xR8uDmtQO02KdZicVEr+NaN/soIDfnhJs9fFwH4cr6aqQ9M5QLO YzlUFAQcwPcO6wOtP5lj3SlUpxap+V3S23u7vhQEo1twVzFcIk6j82JsPczOGg== 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 4SYMFl3pSfz7sX; Sun, 19 Nov 2023 20:10: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 3AJKAZ31094700; Sun, 19 Nov 2023 20:10:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AJKAZMQ094697; Sun, 19 Nov 2023 20:10:35 GMT (envelope-from git) Date: Sun, 19 Nov 2023 20:10:35 GMT Message-Id: <202311192010.3AJKAZMQ094697@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: 15d19c74ba1a - main - databases/ldb20: 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: 15d19c74ba1a393fb74ec983c06b61cce329cc8a Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=15d19c74ba1a393fb74ec983c06b61cce329cc8a commit 15d19c74ba1a393fb74ec983c06b61cce329cc8a Author: Dimitry Andric AuthorDate: 2023-11-19 20:05:41 +0000 Commit: Dimitry Andric CommitDate: 2023-11-19 20:10:10 +0000 databases/ldb20: fix build with lld 17 Building databases/ldb20 with lld 17 results in the following link errors: ld: error: version script assignment of 'LDB_0.9.10' to symbol 'ldb_connect_backend' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.10' to symbol 'ldb_init_module_chain' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.10' to symbol 'ldb_load_modules_list' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_asq_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_paged_results_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_paged_searches_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_rdn_name_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_sample_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_server_sort_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_skel_init' failed: symbol not defined ld: error: version script assignment of 'LDB_0.9.18' to symbol 'ldb_tdb_init' failed: symbol not defined ld: error: version script assignment of 'LDB_1.1.25' to symbol 'ldb_unpack_data_only_attr_list' failed: symbol not defined ld: error: version script assignment of 'LDB_1.1.27' to symbol 'ldb_unpack_data_only_attr_list_flags' 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 Since the linker version scripts are generated dynamically, suppress errors with lld >= 17 due to these undefined symbols. PR: 273753 MFH: 2023Q4 --- databases/ldb20/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/databases/ldb20/Makefile b/databases/ldb20/Makefile index 3b0940130908..8ab39ba4fa56 100644 --- a/databases/ldb20/Makefile +++ b/databases/ldb20/Makefile @@ -90,7 +90,13 @@ PLIST_FILES= include/ldb_version.h \ .include -CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +# Some symbols in ldb'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 .if ! ${PORT_OPTIONS:MMANPAGES} CONFIGURE_ENV+= XSLTPROC="true"