unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jean Louis <bugs@gnu.support>
Cc: 60061@debbugs.gnu.org
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	[thread overview]
Message-ID: <83fsd8a5xb.fsf@gnu.org> (raw)
In-Reply-To: <Y6NVGIWKp/+FRf98@protected.localdomain> (message from Jean Louis on Wed, 21 Dec 2022 21:48:56 +0300)

> Date: Wed, 21 Dec 2022 21:48:56 +0300
> From: Jean Louis <bugs@gnu.support>
> 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}"
 





  reply	other threads:[~2022-12-21 19:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-14  7:45 bug#60061: 30.0.50; Build fails in separate directory for ../configure --without-all --with-mailutils Jean Louis
2022-12-14 12:39 ` Eli Zaretskii
2022-12-20 16:03   ` Jean Louis
2022-12-20 17:29     ` Eli Zaretskii
2022-12-20 17:42       ` Jean Louis
2022-12-20 18:40         ` Eli Zaretskii
2022-12-21  9:41           ` Jean Louis
2022-12-21  9:42           ` Jean Louis
2022-12-21 12:59             ` Eli Zaretskii
2022-12-21 18:48               ` Jean Louis
2022-12-21 19:54                 ` Eli Zaretskii [this message]
2022-12-22  8:03                   ` Jean Louis
2022-12-23 16:14   ` Jean Louis
2022-12-23 16:37     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fsd8a5xb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=60061@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).