unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 54378@debbugs.gnu.org, nuil@foxmail.com
Subject: bug#54378: Subject: 29.0 Build failed
Date: Mon, 14 Mar 2022 16:11:23 +0200	[thread overview]
Message-ID: <83ee34k4j8.fsf@gnu.org> (raw)
In-Reply-To: <87lexcvg4t.fsf@yahoo.com> (message from Po Lu on Mon, 14 Mar 2022 21:05:22 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: nuil@foxmail.com,  54378@debbugs.gnu.org
> Date: Mon, 14 Mar 2022 21:05:22 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Then please explain what exactly is missing from the build that
> > requires dynlib to fix it, because I don't think I understand what
> > does the original problem have to do with modules or with dynamic
> > loading in general (I don't use PGTK).
> 
> It needs to load some functions dynamically using the dynlib mechanism.
> 
> These functions cannot be directly linked into the Emacs binary, since
> doing that will prevent the binary from functioning on systems that have
> GTK, but not both Xlib and libwayland-client.  They return the file
> descriptor of a display connection, so that we can initialize SIGIO for
> it and use interrupt-based input.

But why does it need dynlib?  This is only for Posix platforms, so
just use the dynamic loading functions (dlopen, dlsym etc.) directly.
There should be no need to go through dynlib.c, which is an
abstraction layer implemented specifically for modules, so that Fload
and friends could be blissfully unaware of the platform
idiosyncrasies.

When we need to dynamically load stuff in the w32-specific code, we
just call LoadLibrary and GetProcAddress directly, we don't use
dynlib.  How is this case different?





  reply	other threads:[~2022-03-14 14:11 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 [this message]
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
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

  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=83ee34k4j8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=54378@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --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 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).