From: Joey Ezechiels <joey.ezechiels@gmail.com>
To: Zhang Jun <gb2313@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Emacs 25 modules
Date: Mon, 7 Nov 2016 21:51:10 +0100 [thread overview]
Message-ID: <CAPHE4DOc9BJMKS-S78LVy=pe+es_o0WJN5RJyksEAomaFbgPGg@mail.gmail.com> (raw)
In-Reply-To: <CACbameFXMb7mgMKaxUc8gjXTyDS=tQdxwkvjq55Z3yfy34Bz9g@mail.gmail.com>
Hi Zhang,
Thank you for your response. I have tried adding the RTLD_GLOBAL flag to
the only call to dlopen() in the file you mentioned, but unfortunately that
turns out not to work: I still get the same garbage output as before.
What's odd about this whole situation is that I'm trying to accomplish
something conceptually very simple: Using ZeroMQ from an Emacs
module. Since it is most easily accessed as a dynlib when working
multi-platform, that's the way I want to link the module and zmq.
Met vriendelijke groet / Best regards,
Joey Ezechiëls
On Wed, Nov 2, 2016 at 8:32 AM, Zhang Jun <gb2313@gmail.com> wrote:
> don't know rust and OSx, if your module also load other .so file at
> runtime, it may have problem,
> then need to change emacs src/dynlib.c, add RTLD_GLOBAL flag to dlopen()
>
> On Thu, Oct 27, 2016 at 1:34 AM, Joey Ezechiels <joey.ezechiels@gmail.com>
> wrote:
>
>> Yes, the module code is located here
>> <https://github.com/jjpe/spoofax-mode/tree/master/module.rs>, and the
>> Elisp
>> code that loads the module is located here
>> <https://github.com/jjpe/spoofax-mode/blob/master/spoofax.el#L112>.
>>
>> The module is written in Rust, but an earlier prototype of the module was
>> written in C and exhibited the same loading issues under Linux.
>>
>>
>> Best regards / Met vriendelijke groet
>> Joey Ezechiëls
>>
>
>
next prev parent reply other threads:[~2016-11-07 20:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 17:34 Emacs 25 modules Joey Ezechiels
2016-11-02 7:32 ` Zhang Jun
2016-11-07 20:51 ` Joey Ezechiels [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-10-25 21:06 Joey Ezechiels
2016-10-26 2:39 ` Eli Zaretskii
2016-10-26 11:33 ` Aurélien Aptel
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='CAPHE4DOc9BJMKS-S78LVy=pe+es_o0WJN5RJyksEAomaFbgPGg@mail.gmail.com' \
--to=joey.ezechiels@gmail.com \
--cc=gb2313@gmail.com \
--cc=help-gnu-emacs@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.
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).