From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.devel Subject: Re: Updated GnuTLS from MSYS2 and Emacs's `dynamic-library-alist' Date: Thu, 30 Apr 2015 18:05:55 +0200 Message-ID: References: <83twvxsntj.fsf@gnu.org> <83sibhsjmc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c365944846ec0514f345c7 X-Trace: ger.gmane.org 1430409978 4406 80.91.229.3 (30 Apr 2015 16:06:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2015 16:06:18 +0000 (UTC) Cc: andrewjmoreton@gmail.com, emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 30 18:06:05 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YnqyS-0003BY-Aa for ged-emacs-devel@m.gmane.org; Thu, 30 Apr 2015 18:06:04 +0200 Original-Received: from localhost ([::1]:44861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqyR-0007W2-Pt for ged-emacs-devel@m.gmane.org; Thu, 30 Apr 2015 12:06:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqyN-0007U5-9v for emacs-devel@gnu.org; Thu, 30 Apr 2015 12:06:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnqyM-00070S-0f for emacs-devel@gnu.org; Thu, 30 Apr 2015 12:05:59 -0400 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:34822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnqyK-0006zy-Db; Thu, 30 Apr 2015 12:05:56 -0400 Original-Received: by lbbuc2 with SMTP id uc2so48258413lbb.2; Thu, 30 Apr 2015 09:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Kl2VcQCWR56mk+yA8NjgFQfB50aUdlXk0NK5f73Wr58=; b=a7dfCBnhet9UdIY5zlxQiYgEMWbpJ7v4otmQaXB4nxRVgEoJINNwzzrrGL7bqxl86S qpQvHQysUWOHhl0NRqROnIQdQrDx1Ypb0EH9jKE9hyy1OmSeTExUlfKA0h3Z0DLvvTZ9 v+8GwwVTPBY6kuz2QO5BfgmtyG3YEvGdRJfONC5pu3H7vNXu2XDPLlIJK9kiqdqrjZ2o yAb2L2cztuqi11Ii6zwb+yfxywznRfnJOZG1D6QPSslSx62IRM1R9luTTzS8FFaNk8Z9 p5pI+5wyy2GRBuIUvgi4Go41LPkfLa4F5zt7NC0P61erm65VL39Q1XFQYsMADfdQSMKx i8Kw== X-Received: by 10.152.43.43 with SMTP id t11mr4386343lal.74.1430409955524; Thu, 30 Apr 2015 09:05:55 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Thu, 30 Apr 2015 09:05:55 -0700 (PDT) In-Reply-To: <83sibhsjmc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186065 Archived-At: --001a11c365944846ec0514f345c7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable OK, I see the relevant bit here [1], thanks. [1] https://github.com/emacs-mirror/emacs/commit/dc79845 On Thu, Apr 30, 2015 at 5:47 PM, Eli Zaretskii wrote: > > Date: Thu, 30 Apr 2015 17:06:51 +0200 > > From: Alexander Shukaev > > Cc: Andy Moreton , emacs-devel < > emacs-devel@gnu.org> > > > > =E2=80=8BAs I understand it=E2=80=8B > > > > (gnutls > > "libgnutls- > > =E2=80=8B30=E2=80=8B > > .dll" "libgnutls-28.dll" "libgnutls-26.dll") > > > > makes loading of GnuTLS 3.4 completely optional, i.e. people may still > have > > "libgnutls-28.dll" and use it instead. So why not backport this commit > then? > > That's not what needs to be done. Emacs compiled for GnuTLS versions > before 3.4.0 is incompatible with the GnuTLS DLL versions 3.4.0. The > new ABI introduces a binary incompatibility, so you need to recompile > Emacs with the newer GnuTLS headers to be able to load the 3.4.0 DLL. > And if you recompile Emacs like that, it will be incompatible with the > older DLLs. Trying to load incompatible DLLs will likely cause a > crash. > > So the change you need to do is more than just the one you show. > > Once again, I don't recommend that, if you are building a binary for > more than just your own consumption. But that's up to you. > --001a11c365944846ec0514f345c7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
OK, I see the relevant bit here [1], thanks.


On Thu, Apr 30, 2015 at 5:47 PM, Eli Zaretskii = <eliz@gnu.org><= /span> wrote:
> Date: Thu, 30 Apr 2015= 17:06:51 +0200
> From: Alexander Shukaev <haro= ogan@gmail.com>
> Cc: Andy Moreton <andre= wjmoreton@gmail.com>, emacs-devel <emacs-devel@gnu.org>
>
> =E2=80=8BAs I understand it=E2=80=8B
>
> (gnutls
> "libgnutls-
> =E2=80=8B30=E2=80=8B
> .dll" "libgnutls-28.dll" "libgnutls-26.dll")<= br> >
> makes loading of GnuTLS 3.4 completely optional, i.e. people may still= have
> "libgnutls-28.dll" and use it instead. So why not backport t= his commit then?

That's not what needs to be done.=C2=A0 Emacs compiled for GnuTL= S versions
before 3.4.0 is incompatible with the GnuTLS DLL versions 3.4.0.=C2=A0 The<= br> new ABI introduces a binary incompatibility, so you need to recompile
Emacs with the newer GnuTLS headers to be able to load the 3.4.0 DLL.
And if you recompile Emacs like that, it will be incompatible with the
older DLLs.=C2=A0 Trying to load incompatible DLLs will likely cause a
crash.

So the change you need to do is more than just the one you show.

Once again, I don't recommend that, if you are building a binary for more than just your own consumption.=C2=A0 But that's up to you.

--001a11c365944846ec0514f345c7--