From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter" Date: Mon, 07 Aug 2023 15:02:43 +0200 Message-ID: References: <83tttbnhv4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20194"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65123@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 07 15:03:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qSztL-0004v3-Vp for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Aug 2023 15:03:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSzt2-0006NB-Df; Mon, 07 Aug 2023 09:03:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSzt0-0006Mm-HP for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 09:03:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSzt0-0007Jx-7h for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 09:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSzt0-0008Fp-2U for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Aug 2023 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65123 X-GNU-PR-Package: emacs Original-Received: via spool by 65123-submit@debbugs.gnu.org id=B65123.169141337731718 (code B ref 65123); Mon, 07 Aug 2023 13:03:02 +0000 Original-Received: (at 65123) by debbugs.gnu.org; 7 Aug 2023 13:02:57 +0000 Original-Received: from localhost ([127.0.0.1]:60805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzsv-0008FW-HB for submit@debbugs.gnu.org; Mon, 07 Aug 2023 09:02:57 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183]:47570 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzss-0008FG-5n for 65123@debbugs.gnu.org; Mon, 07 Aug 2023 09:02:56 -0400 In-Reply-To: <83tttbnhv4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 07 Aug 2023 15:42:55 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266885 Archived-At: >>>>> On Mon, 07 Aug 2023, Eli Zaretskii wrote: >> From: Ulrich Mueller >> Date: Mon, 07 Aug 2023 12:44:38 +0200 >> >> Forwarding downstream bug: https://bugs.gentoo.org/911826 >> >> Linking of temacs fails with undefined references to symbols >> dynlib_error, dynlib_open and dynlib_sym when using configure options >> --without-all --with-tree-sitter. To reproduce: > Thanks. Does the patch below fix this? > diff --git a/configure.ac b/configure.ac > index 5dd182a..ab401be 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -3254,6 +3254,7 @@ AC_DEFUN > [HAVE_TREE_SITTER=yes], [HAVE_TREE_SITTER=no]) > if test "${HAVE_TREE_SITTER}" = yes; then > AC_DEFINE(HAVE_TREE_SITTER, 1, [Define if using tree-sitter.]) > + NEED_DYNLIB=yes > else > EMACS_CHECK_MODULES([TREE_SITTER], [tree-sitter >= 0.6.3], > [HAVE_TREE_SITTER=yes], [HAVE_TREE_SITTER=no]) Thanks, this fixes the problem for me.