unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs25 dynamic module dlopen flags
@ 2016-09-13  0:16 hx
  2016-09-13  6:25 ` Philipp Stephani
  0 siblings, 1 reply; 5+ messages in thread
From: hx @ 2016-09-13  0:16 UTC (permalink / raw)
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-06 21:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-13  0:16 emacs25 dynamic module dlopen flags hx
2016-09-13  6:25 ` Philipp Stephani
2016-09-13  8:44   ` hx
2017-02-26 15:43     ` Philipp Stephani
2017-03-06 21:24     ` Davis Herring

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).