From: hx <silent2600@gmail.com>
To: emacs-devel@gnu.org
Subject: emacs25 dynamic module dlopen flags
Date: Tue, 13 Sep 2016 08:16:21 +0800 [thread overview]
Message-ID: <CAALPCHsaz2Cs0TkZviQXwU=Yd4bxx0sqibUh0hjL4RHi2kVO7Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
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 ?
thanks!
[-- Attachment #2: Type: text/html, Size: 1132 bytes --]
next reply other threads:[~2016-09-13 0:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 0:16 hx [this message]
2016-09-13 6:25 ` emacs25 dynamic module dlopen flags Philipp Stephani
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAALPCHsaz2Cs0TkZviQXwU=Yd4bxx0sqibUh0hjL4RHi2kVO7Q@mail.gmail.com' \
--to=silent2600@gmail.com \
--cc=emacs-devel@gnu.org \
/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.