unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: hx <silent2600@gmail.com>, emacs-devel@gnu.org
Subject: Re: emacs25 dynamic module dlopen flags
Date: Tue, 13 Sep 2016 06:25:54 +0000	[thread overview]
Message-ID: <CAArVCkQ_+TQX=qeoH58XG6oUX0Ud3aQ71rO2x8_N=2k3pzQUsw@mail.gmail.com> (raw)
In-Reply-To: <CAALPCHsaz2Cs0TkZviQXwU=Yd4bxx0sqibUh0hjL4RHi2kVO7Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

hx <silent2600@gmail.com> schrieb am Di., 13. Sep. 2016 um 02:17 Uhr:

> current dlopen flag is RTLD_LAZY,
> //src/dynlib.c
>
> dynlib_handle_ptr
> dynlib_open (const char *path)
> {
>   return dlopen (path, RTLD_LAZY);
> }
>
> my module will also load other shared libs, I got some error like symbol undefined,
>
> I found this article http://www.perlmonks.org/?node_id=673396 ,
>
> after I changed dlopen flags to RTLD_LAZY|RTLD_GLOBAL in src/dynlib.c, the problem is solved.
>
>
> could emacs developer consider to add the RTLD_GLOBAL flag in emacs's source code ?
>
>
>
Reading the manpage of dlopen, I don't think this flag should be added.
Emacs modules should typically export only two symbols
(plugin_is_GPL_compatible and emacs_module_init), which aren't useful
outside Emacs.

[-- Attachment #2: Type: text/html, Size: 2093 bytes --]

  reply	other threads:[~2016-09-13  6:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  0:16 emacs25 dynamic module dlopen flags hx
2016-09-13  6:25 ` Philipp Stephani [this message]
2016-09-13  8:44   ` hx
2017-02-26 15:43     ` Philipp Stephani
2017-03-06 21:24     ` Davis Herring

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='CAArVCkQ_+TQX=qeoH58XG6oUX0Ud3aQ71rO2x8_N=2k3pzQUsw@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=silent2600@gmail.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).