From: Robert Pluim <rpluim@gmail.com>
To: "nuil" <nuil@foxmail.com>
Cc: 54378@debbugs.gnu.org
Subject: bug#54378: Still build failed with USE='gtk -X gui'
Date: Tue, 15 Mar 2022 19:59:13 +0100 [thread overview]
Message-ID: <87zglravpa.fsf@gmail.com> (raw)
In-Reply-To: <874k3zceyl.fsf@gmail.com> (Robert Pluim's message of "Tue, 15 Mar 2022 18:17:54 +0100")
>>>>> On Tue, 15 Mar 2022 18:17:54 +0100, Robert Pluim <rpluim@gmail.com> said:
>>>>> On Tue, 15 Mar 2022 18:58:40 +0200, Eli Zaretskii <eliz@gnu.org> said:
>>> This is the error I got:
>>> /usr/bin/x86_64-pc-linux-gnu-ld: pgtkterm.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
>>> /usr/bin/x86_64-pc-linux-gnu-ld: /lib64/libdl.so.2: error adding symbols: DSO missing from command line
>>> clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
Eli> I guess this means that configuration needs a configure-time test for
Eli> linking against libdl, as some systems do need that separate library
Eli> to have dlopen/dlsym/etc.
Robert> dlsym is part of glibc, so thereʼs something else going on.
Eli's right and Iʼm wrong: itʼs part of glibc, but requires libdl (but
only on Gnu/Linux).
Robert> The complete link line would be useful, can you run 'make V=1' and
Robert> show the error log?
so I can reproduce this with
configure --with-pgtk --without-modules
and this fixes it:
diff --git a/configure.ac b/configure.ac
index a315eeb6bd..df00c98e36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3940,10 +3940,16 @@ AC_DEFUN
darwin) MODULES_SECONDARY_SUFFIX='.so' ;;
*) MODULES_SECONDARY_SUFFIX='' ;;
esac
+
+case $opsys in
+ gnu|gnu-linux)
+ LIBMODULES="-ldl"
+ ;;
+esac
+
if test "${with_modules}" != "no"; then
case $opsys in
gnu|gnu-linux)
- LIBMODULES="-ldl"
HAVE_MODULES=yes
;;
cygwin|mingw32|darwin)
next prev parent reply other threads:[~2022-03-15 18:59 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-13 17:11 bug#54378: Subject: 29.0 Build failed nuil
2022-03-14 0:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-14 3:37 ` Eli Zaretskii
2022-03-14 5:03 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-14 12:50 ` Eli Zaretskii
2022-03-14 13:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-14 14:11 ` Eli Zaretskii
2022-03-15 0:32 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-15 0:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-15 6:21 ` bug#54378: Still build failed with USE='gtk -X gui' nuil
2022-03-15 16:58 ` Eli Zaretskii
2022-03-15 17:17 ` Robert Pluim
2022-03-15 18:59 ` Robert Pluim [this message]
2022-03-16 4:45 ` bug#54378: Subject: 29.0 Build failed Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-16 7:34 ` Robert Pluim
2022-03-16 7:53 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-16 9:00 ` Robert Pluim
2022-03-16 10:02 ` Robert Pluim
2022-03-16 10:22 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-16 14:33 ` Robert Pluim
2022-03-15 18:21 ` bug#54378: Build log of 'make V=1' nuil
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zglravpa.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=54378@debbugs.gnu.org \
--cc=nuil@foxmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.