From nobody Sun Oct 15 15:45: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 4S7l284Dhwz4x5qC; Sun, 15 Oct 2023 15:45: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 4S7l283pCYz4K1h; Sun, 15 Oct 2023 15:45:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697384736; 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=0OcW4f0TdKgWEA0Vo575AtZ5GSYhs/DyabmLZjChiLQ=; b=tgdpFgFg6SvRhayJ6/mTbJDDMaHrSg2ewRWpkC4YqMFXKrnZAxwFymQMIk/ZNxs0WEfDfi C9VSYDVWFfwLgZ0QBvk0vBcs/Wu67ktibtF/Q5BjgQGJy1/KaoKaMmSQ8CTM1WywDAomsV Ec/OQYPXl3c0a350yoNXQM1z36exic3KDJeo6KsZPbr6T381iJV91KoMnMmpjfuwjOq29v kFdRLNtgRzKEfPxWw7djAiLWfatYkXeIn2lMch6o3FVCVrV2RcHh7mBEwfrGqywHa4YXX7 YJlJ0KQAgmQPootkLG9IYlaNeHlxwmZBJ8gBqtbDIhba5Nrob1QJGvtDZ5ssPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697384736; a=rsa-sha256; cv=none; b=taDfgROkC2+pSmV57Birxfp6RDMS//BRSodHWXAduw0FIOlP2FE5RYllTPgVrsF0eVtglk ZHH+/N4Q1cA4DUUEf2e5S90qkCUE6O1BoS2/+/sSSQbCvNWEr0Eeix5hc4HaPbsiV6vUZS kFwcqtAUWyOzLO7+fGzQFN9beQU9VVjRYcRV0S+DQvT/P/LTMosWCyggtyJxG2TAodsLoo 3qFssLV6yolBjTOR93bomytV6wi6rHO92bjuZCrx+TpIJ3jk0q1FblPeat9qpzeSvnYxtT LHQzJNYvdfwHSAtM7j5e1qHjtBz1gRIntvpNAb9pvL6Icz6c5DWLM3tyYJMAIQ== 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=1697384736; 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=0OcW4f0TdKgWEA0Vo575AtZ5GSYhs/DyabmLZjChiLQ=; b=iLSvReWwef3IYY4WVykMljYFQKlNq70ZJKlFDrgds/tew5vcBZqw/kxzX0NCDWmWq0RLK8 BiN0vZIiSwzNb/am+89ROQKiKaXD29J1UMQxaHhpi73xDb7dAnwFFTT8lhz4nr9GceeKtD aTpZp3/dd+tygkGjlbd2L90hoK56Whr/P0pgJO5r08LEVR90Wums+URWJNA5FiiQpkPHC6 ycM2od/iUL9hiMoYyJk36Eh6IkwJlIhqK3jXvIgpogTY4zyU1jRKW7x0YItJe14ohHBDcq siAW2V0R9Agk3kDDdzfMg4SrMiOlIoUIb/JvtUI0DdvE4dtlhLDEg7q+1mY0XQ== 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 4S7l282tLJz1Hvs; Sun, 15 Oct 2023 15:45: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 39FFjaKn009258; Sun, 15 Oct 2023 15:45:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39FFjaYU009255; Sun, 15 Oct 2023 15:45:36 GMT (envelope-from git) Date: Sun, 15 Oct 2023 15:45:36 GMT Message-Id: <202310151545.39FFjaYU009255@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: fb389b02e81f - main - devel/tevent: 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: fb389b02e81f0500376d29bbd80fa61ba4bb6e40 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=fb389b02e81f0500376d29bbd80fa61ba4bb6e40 commit fb389b02e81f0500376d29bbd80fa61ba4bb6e40 Author: Dimitry Andric AuthorDate: 2023-09-28 17:23:16 +0000 Commit: Dimitry Andric CommitDate: 2023-10-15 15:44:42 +0000 devel/tevent: fix build with lld 17 Building devel/tevent with lld 17 results in the following link errors: 11:57:46 runner ['cc', '-Wl,--version-script=/wrkdirs/usr/ports/devel/tevent/work/tevent-0.13.0/bin/default/tevent.vscript', '-shared', '-Wl,-h,libtevent.so.0', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/xattr.c.2.o', 'tevent.c.1.o', 'tevent_debug.c.1.o', 'tevent_fd.c.1.o', 'tevent_immediate.c.1.o', 'tevent_queue.c.1.o', 'tevent_req.c.1.o', 'tevent_wrapper.c.1.o', 'tevent_poll.c.1.o', 'tevent_threads.c.1.o', 'tevent_signal.c.1.o', 'tevent_standard.c.1.o', 'tevent_timed.c.1.o', 'tevent_util.c.1.o', 'tevent_wakeup.c.1.o', '-o/wrkdirs/usr/ports/devel/tevent/work/tevent-0.13.0/bin/default/libtevent.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-ltalloc', '-lpthread', '-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) Since the linker version scripts are generated dynamically, suppress errors with lld >= 17 due to these undefined symbols. PR: 274147 Approved by: maintainer timeout (2 weeks) MFH: 2023Q4 --- devel/tevent/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devel/tevent/Makefile b/devel/tevent/Makefile index e9f08adf4ef0..b270fe5d1203 100644 --- a/devel/tevent/Makefile +++ b/devel/tevent/Makefile @@ -55,6 +55,10 @@ CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} CFLAGS_clang= -fno-color-diagnostics CONFIGURE_ENV+= NOCOLOR=yes MAKE_ENV+= NOCOLOR=yes +# Some symbols in tevent'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' \