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: Sun, 2 Oct 2016 15:53:21 +0000 (UTC) Message-ID: <732813402.3896868.1475423601606@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> Reply-To: Mambo Levis NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3896867_1414249849.1475423601600" X-Trace: blaine.gmane.org 1475423722 24390 195.159.176.226 (2 Oct 2016 15:55:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2016 15:55:22 +0000 (UTC) Cc: "ofv@wanadoo.es" , "24574@debbugs.gnu.org" <24574@debbugs.gnu.org>, "a.s@realize.ch" To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 02 17:55:18 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 1bqj6g-0005Bj-Lm for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Oct 2016 17:55:14 +0200 Original-Received: from localhost ([::1]:59855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqj6f-0001ZD-Ay for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Oct 2016 11:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqj6Y-0001WX-5u for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 11:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqj6T-0000qQ-VY for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 11:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqj6T-0000qK-Rt for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 11:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqj6T-0001qD-KI for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 11:55: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: Sun, 02 Oct 2016 15:55: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.14754236607007 (code B ref 24574); Sun, 02 Oct 2016 15:55:01 +0000 Original-Received: (at 24574) by debbugs.gnu.org; 2 Oct 2016 15:54:20 +0000 Original-Received: from localhost ([127.0.0.1]:42085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqj5o-0001ox-Av for submit@debbugs.gnu.org; Sun, 02 Oct 2016 11:54:20 -0400 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:33997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqj5m-0001oh-Ua for 24574@debbugs.gnu.org; Sun, 02 Oct 2016 11:54:19 -0400 Original-Received: by mail-it0-f42.google.com with SMTP id 189so1398306ity.1 for <24574@debbugs.gnu.org>; Sun, 02 Oct 2016 08:54:18 -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=DUIRBL6hUHj14GyunvQvEExewAicj08RmzjD20q6nGk=; b=i0Mofay04p5Q2GbQ3O7aElg8WU6oV0UZ0CHr1A7UHAusTbFQ2CQY1SvXxaXUNmLSwU KcD+xcovJYydWmS9hM0lsw6Uy2y/7ae1YWOyeAycA8vbvZwmN4rfhN/9ikAkaMEMNGgh 6cYFsgWzkNlUtHArWQJXFLNcvpIVJyQdrhIqSYJoE4dzwD2T6mzIiSLp1b/psD6/W2b4 TIR580anrogZJUeJYemfocmTCKOv9QrSS4B3gJsneH7YItWkKW5BCTgeUFNOmMw79ZQA lh53eSAWkp+w+1x3fTvCMTfeq7wK0T7YFIms98yQwNnDkCT6vBjbRrTKjuD+IxLQzH41 RSYA== 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=DUIRBL6hUHj14GyunvQvEExewAicj08RmzjD20q6nGk=; b=QpF3KGLjnoaAmOHzts2EASlj4SYztU4qd+xbfM8SZmv1QUGvEhVHX138N1MPry6Jm4 qOPE40B8Nf8tS9d+9vUOiyp5x+K7EFliAoMgoQJlgcDSkx/WVRf5zEw2PsUBEuGbJoyq W0BuCa+YLIHjGRKW3nJBdPxDa/L1LlakDyjoe8Da0pW4VwYSIx+UzJtAdkxNRcvTbQ+t leSzX+lCYclQpYiwhqT7mGVg5JJvIXwCyDhBrUYF8azlyGr3slyF1RAkHSx38uPymxfB 07BYGgfZepKM6DeFYzA25gDjnlC1tXXPxfQdxi8ln89cH78+KVlVnCf4YOzbpXjCttAU qKbQ== X-Gm-Message-State: AA6/9Rl3+8eRJQAYxjQu5+xLujPqiVcosIub9e6jQ6ivHSzrAkDIOp/utX+Y+gKgqt7cfw== X-Received: by 10.36.222.137 with SMTP id d131mr12839540itg.1.1475423651692; Sun, 02 Oct 2016 08:54:11 -0700 (PDT) Original-Received: from smtpsendws104.mail.ne1.yahoo.com (smtpsendws104.mail.ne1.yahoo.com. [98.138.101.181]) by smtp.gmail.com with ESMTPSA id b137sm11558812ioe.40.2016.10.02.08.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2016 08:54:11 -0700 (PDT) X-YMail-OSG: H40EKv0VM1lXFhNAJVKNnxA89Ky0rNlygSHJZvn06bo3Dbhx7JE0yFDPlSKrR3U .UvSdNVpwm07.ENDyW.Xt0eY_S_TTCx9.saJ3u.DGcdSqXuUW.YNLul_gABc853RZG07t4H8BR.x WM43jVu49uf0Jzp39PgJZ8k3QyCacwOqRUfBe.Z6k008rajvLVPFuEwix9WJOT.PN9CL58VIt3JZ dKUlS8AMwVzlpV94TG_WPeGz4TWy3XRWqkUOdjgmQWhw.M_ybJgPmBAhc21rVbHHujYwG1iW03ps oSjWWrahNCLS7_iWBrwHzOfsZNKvgHZ8P8_wzb05YCqADsMHmtutaIXyu9q4CqIk8i1dbR0vh075 LtSeFLh1crOSqZ4VNJwpzG2.n7xEmUtIHGeIltBoo4osyOAKjoOfQPi1PSK7gsvXIWfYBQ.8JMRm W662hPfg188fqGwscx.i.ZK6VDIVhpZdq7jiQn9IGa91W33NMthtXc3hwuXSr9gTulLbqjf4prRN Mb0Qv3AVMNTWkhDLwTRJ2bhsptGR6AvY45m5s8WZDj82q0Bk4ndFmm5DPcImaqxoydQipfulNejs hNqvf.LpVAG1R6USMrUHrS8Bx_o_YzoGw7TbcYChbZVyzS0_otknswsqPGAsJW9IqRg8vxbMBjg_ XuSvVmPcpZA-- Original-Received: from jws100250.mail.ne1.yahoo.com by smtpsendws104.mail.ne1.yahoo.com; Sun, 02 Oct 2016 15:54:09 +0000; 1475423649.846 In-Reply-To: <837f9rl14q.fsf@gnu.org> 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:123899 Archived-At: ------=_Part_3896867_1414249849.1475423601600 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I found the problem: I checked everything again using the tool=C2=A0pexports,=C2=A0and both=C2= =A0sqlite3-core.dll and sqlite3.dll were exporting all symbols. I compare a= ll with the following article:http://gernotklingler.com/blog/creating-using= -shared-libraries-different-compilers-different-operating-systems/=C2=A0 an= d I couldn't find any problem.=C2=A0 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 = =C2=A0to sqlite3.dll in my emacs init file,=C2=A0but the location was wrong= ; after my emacs-modules collection.=C2=A0 Thank you for your feedback and support.=C2=A0 Muchas gracias Oscar Fuentes por tu colaboraci=C3=B3n. Levis =20 On Sunday, October 2, 2016 8:24 AM, Eli Zaretskii wrote: =20 > Date: Sat, 1 Oct 2016 20:28:15 +0000 (UTC) > From: Mambo Levis > Cc: "a.s@realize.ch" ,=20 > =C2=A0=C2=A0=C2=A0 "24574@debbugs.gnu.org" <24574@debbugs.gnu.org> >=20 > %.$(SO): %.o > $(LD) -shared $(LDFLAGS) -o $@ $< sqlite3.lib > [...] > Please, notice that this time the plugin_is_GPL_compatible. The problem i= s now that the module can't be > found when a sqlite3.dll symbol is used. >=20 > Any Idea or suggestion? Add -Wl,-export-all-symbols to LDFLAGS. =20 ------=_Part_3896867_1414249849.1475423601600 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

=
I found the problem:

I checked everything ag= ain using the tool p= exports, and both sqlite3-core.dll and sqlite3.dll were exporting all symb= ols. I compare all with the following article:
<= div dir=3D"ltr" id=3D"yiv4643766693yui_3_16_0_ym19_1_1475395206854_29633" s= tyle=3D"color: rgb(0, 0, 0);">

The onl= y thing left to do was to put sqlite.dll in the emacs\bin folder and Voil=C3=A0, now it wor= ks. In fact I had already added the path and used  to sqlite3.dll in my emacs init f= ile, but the location was wrong; after my emacs-modules collection= . 

Thank you for your feedback and support. 

Muchas gracias Oscar Fuentes por tu colaboraci=C3=B3n.
=

Lev= is





On Sunday, October 2, 2016 8:2= 4 AM, Eli Zaretskii <eliz@gnu.org> wrote:


>= ; Date: Sat, 1 Oct 2016 20:28:15 +0000 (UTC)

> From: Mam= bo Levis <mambo.levis@gmail.com<= /a>>
> Cc: "
a.s@realize.ch" <a.s@realize.ch>= ;,
>     "24574@debbugs.gnu.org" <24574@debbugs.gnu.org>
>
> %.$(SO): %.o
> $(LD) -shared $(LDFLAGS) -o $= @ $< sqlite3.lib
> [...]
> Ple= ase, notice that this time the plugin_is_GPL_compatible. The problem is now= that the module can't be
> found when a sqlite3.dll s= ymbol is used.
>
> Any Idea or s= uggestion?


Add -Wl,-export-all-s= ymbols to LDFLAGS.



------=_Part_3896867_1414249849.1475423601600--