help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 25 modules


From: Joey Ezechiels
Subject: Re: Emacs 25 modules
Date: Mon, 7 Nov 2016 21:51:10 +0100

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 <address@hidden> 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 <address@hidden>
> 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
>>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]