From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60061: 30.0.50; Build fails in separate directory for ../configure --without-all --with-mailutils Date: Wed, 21 Dec 2022 21:54:40 +0200 Message-ID: <83fsd8a5xb.fsf@gnu.org> References: <86cz8mbf98.fsf@protected.rcdrun.com> <835yeenoqn.fsf@gnu.org> <83mt7iasqj.fsf@gnu.org> <83len1c41o.fsf@gnu.org> <833598c3pj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19177"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60061@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 21 20:55:24 2022 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 1p85BT-0004oH-Lu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Dec 2022 20:55:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p85BA-000478-DG; Wed, 21 Dec 2022 14:55:04 -0500 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 1p85B9-00046K-50 for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 14:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p85B8-0006ZE-RH for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 14:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p85B8-0001lw-Ag for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 14:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Dec 2022 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60061 X-GNU-PR-Package: emacs Original-Received: via spool by 60061-submit@debbugs.gnu.org id=B60061.16716525006803 (code B ref 60061); Wed, 21 Dec 2022 19:55:02 +0000 Original-Received: (at 60061) by debbugs.gnu.org; 21 Dec 2022 19:55:00 +0000 Original-Received: from localhost ([127.0.0.1]:53657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p85B6-0001lf-4r for submit@debbugs.gnu.org; Wed, 21 Dec 2022 14:55:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p85B4-0001lW-5o for 60061@debbugs.gnu.org; Wed, 21 Dec 2022 14:54:58 -0500 Original-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 1p85Ay-0006Ue-OU; Wed, 21 Dec 2022 14:54:52 -0500 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=8EoZws+ISeGdUyP0s3Ij7h62qazNAM3XFfb1mOGyDfg=; b=Onh/a5P5TbYZ k4fkQYI2u3hvC1lUMudzi2WCEq2RlsS6eNHRwBN3/pmCIZ174rUD7/6SlFN8iuscST8QcEpqSi53t Q1TDWeESLMUDjIek0e0q4cW6Mxo20FYmF4icrxRXJsl8EeLwkJNPhEGLxgYAZ6Bqe6O3l+uQAODyB mYQWiFnARSufehnjEf5Dffpwu1DZezx5SpU0W5XmdSrooTYPgiuOdbAqF1eJhgnvvylGawozOK110 j4fdWMWz+FnoLUiIbHu0tWUBlVxlGjTqGoY87Wk+BMRLIUPEB6yIJsTcECzPyPMT6HlwI6rqtM+zJ I6vnXbq6U0Jo+WWGiyjg2g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p85Ax-0002Wv-M2; Wed, 21 Dec 2022 14:54:52 -0500 In-Reply-To: (message from Jean Louis on Wed, 21 Dec 2022 21:48:56 +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:251618 Archived-At: > Date: Wed, 21 Dec 2022 21:48:56 +0300 > From: Jean Louis > Cc: 60061@debbugs.gnu.org > > /usr/bin/ld: treesit.o: in function `treesit_load_language': > /home/data1/protected/Programming/Software/emacs/without-all/src/../../src/treesit.c:577: undefined reference to `dynlib_error' > /usr/bin/ld: /home/data1/protected/Programming/Software/emacs/without-all/src/../../src/treesit.c:578: undefined reference to `dynlib_open' > /usr/bin/ld: /home/data1/protected/Programming/Software/emacs/without-all/src/../../src/treesit.c:579: undefined reference to `dynlib_error' > /usr/bin/ld: /home/data1/protected/Programming/Software/emacs/without-all/src/../../src/treesit.c:594: undefined reference to `dynlib_error' > /usr/bin/ld: /home/data1/protected/Programming/Software/emacs/without-all/src/../../src/treesit.c:600: undefined reference to `dynlib_sym' > /usr/bin/ld: /home/data1/protected/Programming/Software/emacs/without-all/src/../../src/treesit.c:602: undefined reference to `dynlib_error' > collect2: error: ld returned 1 exit status > make[2]: *** [Makefile:704: temacs] Error 1 This is a completely different error message, and it points out a real problem, which has nothing to do with building in a separate directory. The problem is triggered by --without-all, which includes --without-modules, and that causes us not to compile dynlib.c, which is needed by the tree-sitter support. I installed a fix on the emacs-29 branch. The patch is below if you want to try it before it gets merged to master. diff --git a/configure.ac b/configure.ac index 432638f..ac29f35 100644 --- a/configure.ac +++ b/configure.ac @@ -3220,6 +3220,7 @@ AC_DEFUN HAVE_TREE_SITTER=no TREE_SITTER_OBJ= +NEED_DYNLIB=no if test "${with_tree_sitter}" != "no"; then dnl Tree-sitter 0.20.2 added support to change the malloc it uses @@ -3245,6 +3246,7 @@ AC_DEFUN LIBS=$OLD_LIBS if test "$ac_cv_func_ts_set_allocator" = yes; then AC_DEFINE(HAVE_TREE_SITTER, 1, [Define if using tree-sitter.]) + NEED_DYNLIB=yes else AC_MSG_ERROR([Tree-sitter library exists but its version is too old]); TREE_SITTER_CFLAGS= @@ -4154,7 +4156,6 @@ AC_DEFUN LIBMODULES= HAVE_MODULES=no MODULES_OBJ= -NEED_DYNLIB=no MODULES_SUFFIX="${DYNAMIC_LIB_SUFFIX}" MODULES_SECONDARY_SUFFIX="${DYNAMIC_LIB_SECONDARY_SUFFIX}"