From unknown Mon Jun 23 04:14:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter" Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Aug 2023 10:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 65123@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16914051047386 (code B ref -1); Mon, 07 Aug 2023 10:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 10:45:04 +0000 Received: from localhost ([127.0.0.1]:60684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSxjU-0001v4-78 for submit@debbugs.gnu.org; Mon, 07 Aug 2023 06:45:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSxjQ-0001uB-CD for submit@debbugs.gnu.org; Mon, 07 Aug 2023 06:45:02 -0400 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 1qSxjK-0007U0-Ma for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:44:54 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qSxjI-0007j8-PD for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:44:54 -0400 From: Ulrich Mueller Date: Mon, 07 Aug 2023 12:44:38 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) 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: emacs-29.1 $ ./configure --without-all --without-x --with-tree-sitter [...] emacs-29.1 $ make V=1 [...] gcc -o temacs.tmp \ -Demacs -I. -I. -I../lib -I../lib -MMD -MF deps/.d -MP -g3 -O2 \ dispnew.o frame.o scroll.o xdisp.o menu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o emacs.o keyboard.o macros.o keymap.o sysdep.o bignum.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex-emacs.o undo.o alloc.o pdumper.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o sort.o font.o print.o lread.o syntax.o bytecode.o comp.o process.o gnutls.o callproc.o region-cache.o sound.o timefns.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o lcms.o profiler.o decompress.o thread.o systhread.o sqlite.o treesit.o itree.o json.o terminfo.o lastfile.o ../lib/libgnu.a -ltinfo -lanl -lm -ljansson -lgmp -ltree-sitter /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: treesit.o: in function `treesit_load_language': /local/home/ulm/emacs-29.1/src/treesit.c:617:(.text+0x4a6a): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:618:(.text+0x4a72): undefined reference to `dynlib_open' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:619:(.text+0x4a7a): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:634:(.text+0x4d41): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:644:(.text+0x4d68): undefined reference to `dynlib_sym' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:646:(.text+0x4d78): undefined reference to `dynlib_error' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:704: temacs] Error 1 make[2]: Leaving directory '/local/home/ulm/emacs-29.1/src' make[1]: *** [Makefile:544: src] Error 2 make[1]: Leaving directory '/local/home/ulm/emacs-29.1' make[1]: Entering directory '/local/home/ulm/emacs-29.1' *** *** "make all" failed with exit status 2. *** *** You could try to: *** - run "make bootstrap", which might fix the problem *** - run "make V=1", which displays the full commands invoked by make, *** to further investigate the problem *** make[1]: *** [Makefile:414: advice-on-failure] Error 2 make[1]: Leaving directory '/local/home/ulm/emacs-29.1' make: *** [Makefile:370: all] Error 2 emacs-29.1 $ Looks like configure.ac should set NEED_DYNLIB=yes when tree-sitter is requested. It already does so in one code path, but it doesn't for tree-sitter >= 0.20.2. $ pkg-config --modversion tree-sitter 0.20.9 (The above build failure will also occur with a simple "configure --without-all", because it leaves both json and tree-sitter enabled. Is this intentional? I'd have expected --without-all to turn these features off.) From unknown Mon Jun 23 04:14:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter" Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Aug 2023 12:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65123 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ulrich Mueller Cc: 65123@debbugs.gnu.org Received: via spool by 65123-submit@debbugs.gnu.org id=B65123.169141216429478 (code B ref 65123); Mon, 07 Aug 2023 12:43:02 +0000 Received: (at 65123) by debbugs.gnu.org; 7 Aug 2023 12:42:44 +0000 Received: from localhost ([127.0.0.1]:60793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzZM-0007fO-5v for submit@debbugs.gnu.org; Mon, 07 Aug 2023 08:42:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzZK-0007f8-7U for 65123@debbugs.gnu.org; Mon, 07 Aug 2023 08:42:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSzZE-0001fW-Cr; Mon, 07 Aug 2023 08:42:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=K0eFAqdM5eKTMCWxl0iQjIFsl0ulozabywGoczn7iiM=; b=qjQjgvE+8CHQ devWvNzc2vXxuYgo+mGAN6NMAAmy/aXv+1B+2VHj1eSfGD0UL1plR0OdJi/GmcJoQcvrDaUispGPI NpLrjohetiv1vISrJusEn5KiCYzaepHt6JARAEL27FadZ+ioeeTyu/H16rKQ0UwsemiCEsluYn15y fw/TZ73rDRQTxmvrTfrDeAXdANUmKxA2jDtKbEBLoabT6aGj+CTClivWG5EFiWB0F1GTRWmx3Cuqz NW2hdVKS45uP5sdzoWrsjRLd5Oe71A2GZhZEbEWcOXaFpL0+8UehJVcH39bPSR0sCmXVymt7HBtyU knxEbYm7L2mQX2rUTyP69g==; Date: Mon, 07 Aug 2023 15:42:55 +0300 Message-Id: <83tttbnhv4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Ulrich Mueller on Mon, 07 Aug 2023 12:44:38 +0200) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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]) From unknown Mon Jun 23 04:14:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter" 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 65123@debbugs.gnu.org Received: via spool by 65123-submit@debbugs.gnu.org id=B65123.169141337731718 (code B ref 65123); Mon, 07 Aug 2023 13:03:02 +0000 Received: (at 65123) by debbugs.gnu.org; 7 Aug 2023 13:02:57 +0000 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 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 From: Ulrich Mueller In-Reply-To: <83tttbnhv4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 07 Aug 2023 15:42:55 +0300") References: <83tttbnhv4.fsf@gnu.org> Date: Mon, 07 Aug 2023 15:02:43 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >>>>> 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. From unknown Mon Jun 23 04:14:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ulrich Mueller Subject: bug#65123: closed (Re: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter") Message-ID: References: <83pm3zng38.fsf@gnu.org> X-Gnu-PR-Message: they-closed 65123 X-Gnu-PR-Package: emacs Reply-To: 65123@debbugs.gnu.org Date: Mon, 07 Aug 2023 13:22:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1691414521-1174-1" This is a multi-part message in MIME format... ------------=_1691414521-1174-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65123: 29.1; Build fails with "configure --without-all --with-tree-sitter"= =20 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65123@debbugs.gnu.org. --=20 65123: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65123 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1691414521-1174-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65123-done) by debbugs.gnu.org; 7 Aug 2023 13:21:04 +0000 Received: from localhost ([127.0.0.1]:60844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qT0AS-0000Hh-A2 for submit@debbugs.gnu.org; Mon, 07 Aug 2023 09:21:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qT0AR-0000Gu-8z for 65123-done@debbugs.gnu.org; Mon, 07 Aug 2023 09:21:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qT0AM-0002rq-2F; Mon, 07 Aug 2023 09:20:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ehOdUO1Nkt6vSKyKsNZZJ5DQQRJ6Cjz5ibm4r5Y+TeA=; b=TtIKI+vVrBPh SmloEiSaVsVw4l2CDIYfuKmpzW5kjotUiMs3A+GkgiH2UAztDRAjGiA4Ci0YbQEiK+LyHEwbGInGL ZTuk2tUjjFrdAxQS/ENMbMlZd/8BVpxWx89on890+y7sWrmOiVwpWbx69tshQ9WWaRp6RINjcNUWY 0W/xy9LUzseTkrJlqE2lMnQ3QVEjXGNK2nf+/gPU0urclW5CM3WEUNTblLM8ZVtHu/u4EWzDoCpxg hU6BuOzsE85uTGKoMrNv6daVy5JGpKnOBrmw2nBOVjFHnLpbwlBldrpG4sZso2HCHvkUoJM7jOFos yRFPhCaArSPrJnHbKBxy+Q==; Date: Mon, 07 Aug 2023 16:21:15 +0300 Message-Id: <83pm3zng38.fsf@gnu.org> From: Eli Zaretskii To: Ulrich Mueller In-Reply-To: (message from Ulrich Mueller on Mon, 07 Aug 2023 15:02:43 +0200) Subject: Re: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter" References: <83tttbnhv4.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65123-done Cc: 65123-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ulrich Mueller > Cc: 65123@debbugs.gnu.org > Date: Mon, 07 Aug 2023 15:02:43 +0200 > > >>>>> On Mon, 07 Aug 2023, Eli Zaretskii wrote: > > > 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. Thanks, installed on the emacs-29 branch, and closing the bug. ------------=_1691414521-1174-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 10:45:04 +0000 Received: from localhost ([127.0.0.1]:60684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSxjU-0001v4-78 for submit@debbugs.gnu.org; Mon, 07 Aug 2023 06:45:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSxjQ-0001uB-CD for submit@debbugs.gnu.org; Mon, 07 Aug 2023 06:45:02 -0400 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 1qSxjK-0007U0-Ma for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:44:54 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qSxjI-0007j8-PD for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:44:54 -0400 From: Ulrich Mueller To: bug-gnu-emacs@gnu.org Subject: 29.1; Build fails with "configure --without-all --with-tree-sitter" Date: Mon, 07 Aug 2023 12:44:38 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) 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: emacs-29.1 $ ./configure --without-all --without-x --with-tree-sitter [...] emacs-29.1 $ make V=1 [...] gcc -o temacs.tmp \ -Demacs -I. -I. -I../lib -I../lib -MMD -MF deps/.d -MP -g3 -O2 \ dispnew.o frame.o scroll.o xdisp.o menu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o emacs.o keyboard.o macros.o keymap.o sysdep.o bignum.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex-emacs.o undo.o alloc.o pdumper.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o sort.o font.o print.o lread.o syntax.o bytecode.o comp.o process.o gnutls.o callproc.o region-cache.o sound.o timefns.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o lcms.o profiler.o decompress.o thread.o systhread.o sqlite.o treesit.o itree.o json.o terminfo.o lastfile.o ../lib/libgnu.a -ltinfo -lanl -lm -ljansson -lgmp -ltree-sitter /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: treesit.o: in function `treesit_load_language': /local/home/ulm/emacs-29.1/src/treesit.c:617:(.text+0x4a6a): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:618:(.text+0x4a72): undefined reference to `dynlib_open' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:619:(.text+0x4a7a): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:634:(.text+0x4d41): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:644:(.text+0x4d68): undefined reference to `dynlib_sym' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:646:(.text+0x4d78): undefined reference to `dynlib_error' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:704: temacs] Error 1 make[2]: Leaving directory '/local/home/ulm/emacs-29.1/src' make[1]: *** [Makefile:544: src] Error 2 make[1]: Leaving directory '/local/home/ulm/emacs-29.1' make[1]: Entering directory '/local/home/ulm/emacs-29.1' *** *** "make all" failed with exit status 2. *** *** You could try to: *** - run "make bootstrap", which might fix the problem *** - run "make V=1", which displays the full commands invoked by make, *** to further investigate the problem *** make[1]: *** [Makefile:414: advice-on-failure] Error 2 make[1]: Leaving directory '/local/home/ulm/emacs-29.1' make: *** [Makefile:370: all] Error 2 emacs-29.1 $ Looks like configure.ac should set NEED_DYNLIB=yes when tree-sitter is requested. It already does so in one code path, but it doesn't for tree-sitter >= 0.20.2. $ pkg-config --modversion tree-sitter 0.20.9 (The above build failure will also occur with a simple "configure --without-all", because it leaves both json and tree-sitter enabled. Is this intentional? I'd have expected --without-all to turn these features off.) ------------=_1691414521-1174-1--