From: "Óscar Fuentes" <ofv@wanadoo.es>
To: Mambo Levis <mambo.levis@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: emacs-module is not GPL compatible (Windows)
Date: Sat, 01 Oct 2016 03:14:59 +0200 [thread overview]
Message-ID: <87fuoghnu4.fsf@wanadoo.es> (raw)
In-Reply-To: <1261593588.2422705.1475266631400@mail.yahoo.com> (Mambo Levis's message of "Fri, 30 Sep 2016 20:17:11 +0000 (UTC)")
Mambo Levis <mambo.levis@gmail.com> writes:
First of all, please don't send usage questions to bug-gnu-emacs. That
list is for reporting defects, suggesting enhancements and submitting
patches.
> I build the emacs-sqlite3 project in Windows using MINGW
> (mingw64_shell.bat) and the following message appears whenI requiere
> the module: sqlite3-core.dll is not GPL compatible
>
> Questions:
> 1. Have anybody tried to build this project in windows using MINGW or
> Visual Studio?
Which project?
> 2. Do you have any idea about the error message: sqlite3-core.dll is
> not GPL compatible?
Most likely the module does not define and export the symbol
plugin_is_GPL_compatible, as described here:
http://diobla.info/blog-archive/modules-tut.html#sec-2-2
> I found this project (sqlite3-core) more interesting/valuable for
> testing the new emacs-module than the default provided (mod-test) in
> emacs-25.1-src/modules
> Repository: https://github.com/syohex/emacs-sqlite3
Ah, *that* project :-)
> I also found and build a similar
> project https://github.com/thom-jenks/emacs-sqlite but unfortunately
> with the same problem: it is not GPL compatible
The problem is that the code does not export the symbol
plugin_is_GPL_compatible. On GNU/Linux symbols are exported by default
when you build the shared library, but that's not the case of Windows
where you must export them explicitly.
Try changing
int plugin_is_GPL_compatible;
to
__declspec(dllimport) int plugin_is_GPL_compatible;
Probably you will also need to change
int
emacs_module_init(struct emacs_runtime *ert)
to
int __declspec(dllimport)
emacs_module_init(struct emacs_runtime *ert)
Hope this helps.
next prev parent reply other threads:[~2016-10-01 1:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1261593588.2422705.1475266631400.ref@mail.yahoo.com>
2016-09-30 20:17 ` emacs-module is not GPL compatible (Windows) Mambo Levis
2016-10-01 1:14 ` Óscar Fuentes [this message]
2016-10-01 1:21 ` Óscar Fuentes
2016-10-01 4:37 ` bug#24574: " Robert Cochran
2016-10-01 7:53 ` Alain Schneble
2016-10-01 12:31 ` Mambo Levis
2016-10-01 15:40 ` bug#24574: " Eli Zaretskii
2016-10-01 20:28 ` Mambo Levis
2016-10-02 6:24 ` Eli Zaretskii
2016-10-02 15:53 ` Mambo Levis
2016-10-05 2:48 ` npostavs
2016-10-05 16:51 ` Mambo Levis
2021-10-23 2:47 ` Stefan Kangas
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=87fuoghnu4.fsf@wanadoo.es \
--to=ofv@wanadoo.es \
--cc=help-gnu-emacs@gnu.org \
--cc=mambo.levis@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 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.