From nobody Sun Nov 19 20:10:36 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 4SYMFm6SYQz51Gpn; Sun, 19 Nov 2023 20:10:36 +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 4SYMFm5m18z4fjZ; Sun, 19 Nov 2023 20:10:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700424636; 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=8jS9j120xBQuegl+Ow0ycubDECh6nSvqCr4dai/vzzg=; b=wPnWNIpdECIJCAhOQBi/FmaNvOM00KtSE2fFO2gHKBtsYECpbJlkF54247XzNgaIN0IyAT n+zN7o29lDJoFcA4kvRW0wX+WqNFmnnvPgCDp6VDnNst1sqLkFF8C0i9n7epG93nY9BSTE efLR77P+oTvfvNkmLVpwUxkZUK55RjOsCInSIS0dDERdd5d/WbUSzZmQbVv2Y0E+PO7WUQ 79ueXx/XcS5Aa9poCLdjgoCLrywgVcuX6hpXllyZ2/bPm/63fgHcORgPUJ1uOEiJ4R4uSM GH5n5MppPr19lKqDTS9xH9jTOShfBrmE7AEgao0u+zsFQ9Uqqb852YaJQRnDsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700424636; 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=8jS9j120xBQuegl+Ow0ycubDECh6nSvqCr4dai/vzzg=; b=egKIzLxTkj4UbyatwMATuE3Wej7aQ2yUruLhpBv3XuEA0LAWvYNR/0MKmxpfwjtDg2BMLJ t9yQ9Sby8vEd9DDe5Yjq0fIOQ7lT/Y93If0Mw7BvPxFLtEyx//BemLYwYC8MDueuCig8Tl NUlCSN7xJwjThNzTLX2mXTxtVWfdGacD8zbykdeMpPn21qaEzYVHERYGNNQd6UVJ9dKKzg JWZjzVGRBg6iYq3BZ7nPePbKgcPj66qgBmniORinGLWtyY2xxIjZ8JlNHejtEc7jH8Ff2D 0gMGjYa2hrBTKPeWtBlLV8or7HZfacpymKKH02wZDzrdF8ltr2PVEB7rUWH85w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700424636; a=rsa-sha256; cv=none; b=Xabx8WfD88B0RYMYSAWHD4670m2pXXgIseSD4IFO5ypt/IpAV/Iztn3H1Ccf5BGnytlHZP 1Cx+Sz6T1lSqKGIt5Wvw6R0ZTI3j/M4FxXFziyt5qa3v3SWX2O6/7qRkE/2F/ZMwGTfthg o0JaPiSXq/xkLVpINMurW1m42P5CU2B3EEhxvbI4DEccLQHe10QTq48NrhvPTbsD4PouZh cQp0gzgvPZRIa/TM5smwIYCXmdBnnwehXRnews2VZoM9ooY1FBcD5IBQ/ztj2n5VaLrLzD uNy2oJ9e4YZPM5VEGIxbf4kWTz0lo6V3zzxZqKKJP5qV8Xs/D/0ifm8cEEDztw== 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 4SYMFm4r0Gz7yW; Sun, 19 Nov 2023 20:10:36 +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 3AJKAatM094745; Sun, 19 Nov 2023 20:10:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AJKAa6l094742; Sun, 19 Nov 2023 20:10:36 GMT (envelope-from git) Date: Sun, 19 Nov 2023 20:10:36 GMT Message-Id: <202311192010.3AJKAa6l094742@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: 242979f142ce - main - databases/ldb15: 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: 242979f142ce076beb442e76560495e0c8a2031f Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=242979f142ce076beb442e76560495e0c8a2031f commit 242979f142ce076beb442e76560495e0c8a2031f Author: Dimitry Andric AuthorDate: 2023-11-19 20:06:14 +0000 Commit: Dimitry Andric CommitDate: 2023-11-19 20:10:10 +0000 databases/ldb15: fix build with lld 17 Building databases/ldb15 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 '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/ldb15/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/databases/ldb15/Makefile b/databases/ldb15/Makefile index 45ab23c06f82..5ec63c0bdcc0 100644 --- a/databases/ldb15/Makefile +++ b/databases/ldb15/Makefile @@ -109,13 +109,20 @@ PLIST_FILES+= include/pyldb.h \ .include +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" .else BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \ xsltproc:textproc/libxslt .endif -CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib # No fancy color error messages .if ${COMPILER_TYPE} == "clang"