From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mambo Levis Newsgroups: gmane.emacs.bugs Subject: bug#24574: emacs-module is not GPL compatible (Windows) Date: Wed, 5 Oct 2016 16:51:18 +0000 (UTC) Message-ID: <1721463445.452969.1475686278575@mail.yahoo.com> References: <1261593588.2422705.1475266631400.ref@mail.yahoo.com> <1261593588.2422705.1475266631400@mail.yahoo.com> <86oa3433p1.fsf@realize.ch> <1337000014.3620747.1475325086234@mail.yahoo.com> <83mviokrgr.fsf@gnu.org> <628247655.3797718.1475353695862@mail.yahoo.com> <837f9rl14q.fsf@gnu.org> <732813402.3896868.1475423601606@mail.yahoo.com> <8737kby0hi.fsf@users.sourceforge.net> Reply-To: Mambo Levis NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_452968_127910435.1475686278575" X-Trace: blaine.gmane.org 1475686370 9162 195.159.176.226 (5 Oct 2016 16:52:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2016 16:52:50 +0000 (UTC) Cc: "ofv@wanadoo.es" , "24574@debbugs.gnu.org" <24574@debbugs.gnu.org>, "a.s@realize.ch" To: "npostavs@users.sourceforge.net" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 18:52:45 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brpQj-0008W1-70 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2016 18:52:29 +0200 Original-Received: from localhost ([::1]:50333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brpQk-0005me-Ph for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2016 12:52:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brpQM-0005W8-SW for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 12:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brpQH-0003QB-Ro for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 12:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brpQH-0003Q7-OQ for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 12:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1brpQH-00029l-Jb for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 12:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mambo Levis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2016 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24574-submit@debbugs.gnu.org id=B24574.14756862888231 (code B ref 24574); Wed, 05 Oct 2016 16:52:01 +0000 Original-Received: (at 24574) by debbugs.gnu.org; 5 Oct 2016 16:51:28 +0000 Original-Received: from localhost ([127.0.0.1]:45991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brpPk-00028h-FS for submit@debbugs.gnu.org; Wed, 05 Oct 2016 12:51:28 -0400 Original-Received: from mail-oi0-f48.google.com ([209.85.218.48]:34784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brpPi-00028S-SY for 24574@debbugs.gnu.org; Wed, 05 Oct 2016 12:51:27 -0400 Original-Received: by mail-oi0-f48.google.com with SMTP id n132so215477438oih.1 for <24574@debbugs.gnu.org>; Wed, 05 Oct 2016 09:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:reply-to:to:cc:message-id:in-reply-to:references:subject :mime-version:content-length; bh=ke1jNJncyXDLm/i/TGZJWFP+w+MlCdI4rOTgaDKs3yA=; b=fMedkd7dQSTeVE8x+shYGJSahhrQxldyF9aP1FGojxLeaVxgWLPc+ywj5AsxqC+hod 2yyTeOWaSu48uOSRdoYrAo6qMUhVvbZ53BPjEXsGoy18AHon1OXS/or+e9nZi3yh2kzS h6iBgxlR2e5aqgiJAZ6287GK/JbIAoJBLzaXKfuO5iSlrooZGhbeYt5SwG9Hf6fz8XV4 vQma6seoEHMHcX/yVnNKGUC7hPH0WrgGCwPDLa5MHHMMiHDo4wSkaVC+bbM5lZ5thKSZ 2ytOOj6xZhPjsOx3x4XedzHy0JnjMWjp/xmNbY+bsDtZqr3/pt0bklWW8Z/NUuwG2dN/ FkJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:reply-to:to:cc:message-id:in-reply-to :references:subject:mime-version:content-length; bh=ke1jNJncyXDLm/i/TGZJWFP+w+MlCdI4rOTgaDKs3yA=; b=lF3pJUkHFo+Cn3X+5Ap1nfQBMoEGMPISr+3RR73ZZWuotoKXQ6AdhayoGgiqSJUZEc Ld9xzQGLUikhosoIa4TsIJ5kZO19oLSw9HVaXMyZTUna6D4/YC/bT7FOLIoGUe2pYMb0 ReFOHVwYOEttxTRrneye5QgLwG0yWCOVTRqEFhBwK5yTYnYh2buxLC+Ic7MFrY+OUreO KORjOdDevw8vbTDWAO2RTzC8vU4pVULgwlvG44dGqkvCJJ5En9QRXWmOrDow2m98QH2I o5gUpw/5b09KIQq44E8NlRl589z+UN0fR1K96f4qtGTnIxUHVd2bzOs6QlPk2lOemHEg 38Dw== X-Gm-Message-State: AA6/9RmsaOEDdvOw2sAeA7tQFg9VjtIY5QVay+A65pa3IdTCOF/vpfmn0cz9NGIOW8mw8A== X-Received: by 10.107.200.3 with SMTP id y3mr10758061iof.73.1475686281155; Wed, 05 Oct 2016 09:51:21 -0700 (PDT) Original-Received: from smtpsendws102.mail.ne1.yahoo.com (smtpsendws102.mail.ne1.yahoo.com. [98.138.101.179]) by smtp.gmail.com with ESMTPSA id 140sm11983421itl.4.2016.10.05.09.51.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Oct 2016 09:51:20 -0700 (PDT) X-YMail-OSG: wViIrW0VM1kEz9yFd4xDtgP7Dm_E_bT9_GHH2T4xLwceSAEyXEkMzMQBtbJw6RW 3mAyQwdoc3B7cjipV9OcJD5XAEfTju0K5sICKjdtbNi_tTMWWMdHouxUW6lGDmuO84qGfmoFes.i GvClS9rldGZ1RNT6MgwkUCVPTz_GUH_W_W9g1KyMIYIlivtlbvrCYePxMRcjpLmVffvM177ZVZZJ F.gO84_U2bwpA_ukYYhNRa3pQ.vVZP.GF8LgxjcYQF6eFjtrlKUdPc3lHZS2sTCaJzm5h8pxvBXH x52myiKV5CbqO03WuU7HI.my_e0idyOgTZ0.LX9pq8V.mxszql5EUm8HOcRAEDWpBcN75pq7ameV WLRCJ._nhmkj5tCXTtulwaOAjU75dQo9837JIdbuP.6O0Ni_oMqbMfzNFe95qx0ph3.0CWRcAjVm xtecr.PFR0d0awOcomV26WNk6mej1JSvRHUGc6ftL2raxjFJP3yxo_ASf0mFTTC0THBt1Ys4v6E4 00YOUD4bYN1tWcSHpvbTQrCpvbA-- Original-Received: from jws10088.mail.ne1.yahoo.com by smtpsendws102.mail.ne1.yahoo.com; Wed, 05 Oct 2016 16:51:19 +0000; 1475686279.155 In-Reply-To: <8737kby0hi.fsf@users.sourceforge.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124105 Archived-At: ------=_Part_452968_127910435.1475686278575 Content-Type: multipart/alternative; boundary="----=_Part_452966_392968685.1475686278570" ------=_Part_452966_392968685.1475686278570 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Yes, in summary there is no bug after all, yes you can close it. Recommendations for windows users: Problem 1: "The module is not GPL compatible".=C2=A0My suggestion is to pro= vide a more generic Makefile able to link external libraries such Sqlite. A= ttached you can find the final version of the Makefile I used to build the = module.=C2=A0Another recommendation is to test if DLL symbols are exported = using tools such=C2=A0pexports or Dependecy walker.=C2=A0 Problem 2: "The emacs module can't be found".=C2=A0This is easy to handle b= y adding the path to sqlite3.dll to windows environment variables. Other so= lution is put the=C2=A0sqlite3.dll in the same folder where the emacs.exe i= s located.=C2=A0In case that someone add the path to=C2=A0sqlite3.dll in em= acs init file, it should be located before calling the emacs module. In my = case, I move my windows path setup in emacsto the top of the init file. I think the most important was the support I receive from you, thank you. Levis =20 On Wednesday, October 5, 2016 4:48 AM, "npostavs@users.sourceforge.net"= wrote: =20 Mambo Levis writes: > Please, notice that this time the plugin_is_GPL_compatible. The > problem is now that the module can't be found when a sqlite3.dll > symbol is used. What was the difference between this time and the previous time? > > The only thing left to do was to put sqlite.dll in the emacs\bin > folder and Voil=C3=A0, now it works. In fact I had already added the path > and used to sqlite3.dll in my emacs init file, but the location was > wrong; after my emacs-modules collection. So there is no bug after all?=C2=A0 Should we just close this report, or is there perhaps some guidance we should add to the documentation about how to build modules on Windows? =20 ------=_Part_452966_392968685.1475686278570 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

<= /div>
Yes, in summary there= is no bug after all, yes you can close it.

Recommendations for windows users:

Problem= 1: "The module is not GPL compatible". 
My suggestion is to provide a more= generic Makefile able to link external libraries such Sqlite. Attached you= can find the final version of the Makefile I used to build the module.&nbs= p;
Anothe= r recommendation is to test if DLL symbols are exported using tools such&nb= sp;pexports or Dependecy walker. 
Problem 2: "The emacs module can't be found". 
This is easy to handl= e by adding the path to sqli= te3.dll to windows environment variables. Other solution is put the&nbs= p;sqlite3.dll in the sam= e folder where the emacs.exe= is located. 
In case that someone add the path to sqlite3.dll in emacs init file, it should b= e located before calling the emacs module. In my case, I move my windows pa= th setup in emacs
to the top of the init file.

I think the most important was the support I recei= ve from you, thank you.

Levis




On Wednesday, October 5, 2016 4:48 AM,= "npostavs@users.sourceforge.net" <npostavs@users.sourceforge.net> wr= ote:


Mambo Levis = <mambo.levis@gmail.com> writes:

> Please, notice that this time the plugin_is_= GPL_compatible. The
> problem is now that the module c= an't be found when a sqlite3.dll
> symbol is used.

What was the difference between this time= and the previous time?


>
> The only thing= left to do was to put sqlite.dll in the emacs\bin
> f= older and Voil=C3=A0, now it works. In fact I had already added the path> and used to sqlite3.dll in my emacs init file, but the= location was
> wrong; after my emacs-modules collecti= on.


So there is no bug after all= ?  Should we just close this report, or is
there per= haps some guidance we should add to the documentation about how
to build modules on Windows?

------=_Part_452966_392968685.1475686278570-- ------=_Part_452968_127910435.1475686278575 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=Makefile Content-ID: <455db5fc-b117-4773-4c50-cd9779af98ea@yahoo.com> IyBNYWtlZmlsZSBWMwoKIyBUZXN0IEdOVSBFbWFjcyBtb2R1bGVzLgoKIyBDb3B5cmlnaHQgMjAx NS0yMDE2IEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgSW5jLgoKIyBUaGlzIGZpbGUgaXMgcGFy dCBvZiBHTlUgRW1hY3MuCgojIEdOVSBFbWFjcyBpcyBmcmVlIHNvZnR3YXJlO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