From nobody Sun Oct 15 15:45:37 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 4S7l295LMBz4x5Nm; Sun, 15 Oct 2023 15:45:37 +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 4S7l294wS9z4K8s; Sun, 15 Oct 2023 15:45:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697384737; 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=0qPPPEWBzZ5YxKD3aaJITnfPgn4b+g1djQ+bDm+1YnM=; b=PFgPgich262cfGmCfrnLJg3G51fdgypyg2f0Ke+Fu+bgQofxtYNdWGHPRNxId9mxZybeDb 1enKsZD6GUdIpjyfjoCY8oCgZspSUzSegzvDaiJRevc8woKqLDddGd+wRgLn4Qb8z5qae0 icJPeiauRkZfeV2Y8qbg2xODJWI+gZbTOP2XJAX0SKv+llcmL7AD786sqY6HiKO9zvzzoW Up8VkY4F/KDuuGwE73kYRw/SuGvaqqOKwmlVDoQDxb2gSgtTc+IG+GeVPkNat5wtf5SGpJ kJ3EuahL/s65ReNkxvnYS9ca1RTpxGSX/sVtFfQH8q86R2vxLAw4kJxABCU3gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697384737; a=rsa-sha256; cv=none; b=IwJesrdtV2SQpiYiUDz2bplLo6AvOUGlfIKloL91uWtX4ZB/xKb22zVTMJflKgyqEORaJJ SHoYOqg/1e2GvxDBz9L8P+KWkqz3LaxToD744wusNsHicmjozKRj2S7UzKc6vQW9zGaQgr SsJpSVq0pht9mpenK0SmmIr5yuA4/lZhD+rRWIToNeCaZ2fWbprKw4nYcUyBv+tPYTJ8aL pVI+YsOttDgvh22Ep5Aofk9dMBVXfgNMBqFDTrYtU2C0/qJFBhAVXsGsL3Kx3dcDdQDA5H g0yqYd0u6lQIXpJc7pkxG0F4HYDBknZ+VvlXuNyzJTNTbfjEIpeMtbSiRne2ww== 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=1697384737; 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=0qPPPEWBzZ5YxKD3aaJITnfPgn4b+g1djQ+bDm+1YnM=; b=CrbAc6FZSnIEWhOk7PDXik9b7PcH3+Oxcyf5pi4kOmnhLCgs8bsLGR7DzpS4RNvje4UxYP /Ax7gJ4fS1LvwgxTZ4eM7p0ALsrT7f1O4eq7vAlHkuFIhwYipjhvlwPUTUGtgGWoOGtd6U meg1T84luQHlmBhOygK4Uyqbx3GOibe5Q0zpcjuXcCYP3pih6u9KZGdAman/NduMxHMIqX 4UT57WcRX9FSSkBW+s/4boT1gQTORgfOXoFZUmD19NIyaqbY0sVjC/5bGlsSVEkPF1Myh6 d3LaXtz4POLXdwakchYMSHooe030a6w7WwZRrnLKJzC0x05ye4a/ZUv0J2wfDQ== 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 4S7l293tnpz1J1W; Sun, 15 Oct 2023 15:45:37 +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 39FFjb3c009303; Sun, 15 Oct 2023 15:45:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39FFjb79009300; Sun, 15 Oct 2023 15:45:37 GMT (envelope-from git) Date: Sun, 15 Oct 2023 15:45:37 GMT Message-Id: <202310151545.39FFjb79009300@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: 8bc0f1e6d3d1 - main - net/samba413: 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: 8bc0f1e6d3d18811c33a876273d591c04b2a8b44 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=8bc0f1e6d3d18811c33a876273d591c04b2a8b44 commit 8bc0f1e6d3d18811c33a876273d591c04b2a8b44 Author: Dimitry Andric AuthorDate: 2023-09-29 10:29:25 +0000 Commit: Dimitry Andric CommitDate: 2023-10-15 15:44:42 +0000 net/samba413: fix build with lld 17 Building net/samba413 with lld 17 results in the following link errors: runner ['cc', '-Wl,--as-needed', '-Wl,--version-script=/wrkdirs/share/dim/ports/net/samba413/work/samba-4.13.17/bin/default/lib/replace/replace.vscript', '-shared', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/cwrap.c.2.o', 'lib/replace/xattr.c.2.o', '-o/wrkdirs/share/dim/ports/net/samba413/work/samba-4.13.17/bin/default/lib/replace/libreplace-samba4.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-L/usr/local/lib', '-fstack-protector-strong', '-L/usr/local/lib', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic'] 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: 274313 Approved by: maintainer timeout (2 weeks) MFH: 2023Q4 --- net/samba413/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/samba413/Makefile b/net/samba413/Makefile index 7207ba3a7a46..4847973cf78d 100644 --- a/net/samba413/Makefile +++ b/net/samba413/Makefile @@ -567,6 +567,10 @@ MAKE_ENV+= RPCGEN_CPP="${CPP}" #.if ${readline_ARGS} == port #CFLAGS+= -D_FUNCTION_DEF #.endif +# Some symbols in samba'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 # Make sure that the right version of Python is used by the tools # https://bugzilla.samba.org/show_bug.cgi?id=7305