From nobody Tue Jun 18 16:29:14 2024 X-Original-To: current@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 4W3XJl6RPQz5P4gF for ; Tue, 18 Jun 2024 16:29:27 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W3XJl2JmGz4pfD; Tue, 18 Jun 2024 16:29:27 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C159B8D4A126; Tue, 18 Jun 2024 16:29:17 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id D19F92D029D8; Tue, 18 Jun 2024 16:29:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id uADf_EQNHbEM; Tue, 18 Jun 2024 16:29:15 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A05542D029D2; Tue, 18 Jun 2024 16:29:15 +0000 (UTC) Date: Tue, 18 Jun 2024 16:29:14 +0000 (UTC) From: "Bjoern A. Zeeb" To: Moin Rahman cc: "current@freebsd.org" , Baptiste Daroussin Subject: Re: ncurses /usr vs. /usr/local vs. undefined symbols In-Reply-To: Message-ID: References: <3q7s965n-8o40-sqr5-o1o3-7np391o86on8@yvfgf.mnoonqbm.arg> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE] X-Rspamd-Queue-Id: 4W3XJl2JmGz4pfD On Tue, 18 Jun 2024, Moin Rahman wrote: >> On Jun 18, 2024, at 5:41 PM, Bjoern A. Zeeb wrote: >> >> Hi, >> >> I have no idea where to start but I know if I uninstall the ncruses port >> the problem goes away. >> >> I am trying to build a few packages on main/arm64 (from the last 24h) >> and this is like the 5th port I run into this problem now: >> >> ld: error: undefined symbol: newterm >>>>> referenced by clamdtop.c >>>>> clamdtop/CMakeFiles/clamdtop.dir/clamdtop.c.o:(main) >> >> ld: error: undefined symbol: start_color >>>>> referenced by clamdtop.c >>>>> clamdtop/CMakeFiles/clamdtop.dir/clamdtop.c.o:(main) >> >> ld: error: undefined symbol: nonl >>>>> referenced by clamdtop.c >>>>> clamdtop/CMakeFiles/clamdtop.dir/clamdtop.c.o:(main) >> >> ld: error: undefined symbol: noecho >>>>> referenced by clamdtop.c >>>>> clamdtop/CMakeFiles/clamdtop.dir/clamdtop.c.o:(main) >> >> ..... >> >> >> # ldconfig -r | grep curses >> 62:-lncursesw.9 => /lib/libncursesw.so.9 >> 289:-lncurses.6 => /usr/local/lib/libncurses.so.6 >> >> >> Something tells me something has changed but I don't even know where to >> start digging. I didn't see this the last time I did in March. >> Is this a src or a ports problem, ncurses or even linker? >> >> /bz >> >> -- >> Bjoern A. Zeeb r15:7 > > Hi, > > I did update ncurses sometimes in April or May. Can you confirm whether > if this is happening after that? Last update git log tells me: commit 6b02dcbe6709c95d01d3b83056fe2dcddc34f543 Author: Muhammad Moinur Rahman AuthorDate: Mon Apr 29 22:08:38 2024 +0200 Commit: Muhammad Moinur Rahman CommitDate: Mon Apr 29 23:55:02 2024 +0200 devel/ncurses: Update version 6.4=>6.5 - Remove ftp MASTER_SITES Changelog: https://invisible-island.net/ncurses/NEWS.html#index-t20240427 My last build was around March 31. Back then it did not build the ncurses package at all. And I can confirm I still do have: -r--r--r-- 1 root wheel 49 Jun 17 19:09 /usr/lib/libncursesw.so that Mk/Uses/ncurses.mk checks for. Maybe a dependency changes and pull in the port now forcefully which makes this visible? And the winner is: commit 5a77b3ff4c0e9fed2b3dab55023735008cff1e73 Author: Koichiro Iwao AuthorDate: Sat May 25 03:15:51 2024 +0900 Commit: Koichiro Iwao CommitDate: Fri Jun 14 17:31:54 2024 +0900 sysutils/tmux: Fix crash when text selection using mouse I re-ported a patch originally ported to 3.2a by Tobias Brick, a Microsoft employee to 3.3a. The patch depends on ncurses 6.4-20230423 or later so I bind this port to ncurses:port. See commit message of the patch for detail [1] [1] https://github.com/microsoft/azurelinux/blob/a1f78f2/SPECS/tmux/manual-patch-to-fix-crash-due-to-change-to-ncurses.patch PR: 279276 Approved by: maintainer timeout Obtained from: https://github.com/microsoft/azurelinux/issues/6598 Obtained from: https://github.com/microsoft/azurelinux/pull/6766 But also reveals a problem elesewhere in the system... likely ncurses.mk logic? -- Bjoern A. Zeeb r15:7