From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Updated GnuTLS from MSYS2 and Emacs's `dynamic-library-alist' Date: Thu, 30 Apr 2015 18:47:55 +0300 Message-ID: <83sibhsjmc.fsf@gnu.org> References: <83twvxsntj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1430409150 21812 80.91.229.3 (30 Apr 2015 15:52:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2015 15:52:30 +0000 (UTC) Cc: andrewjmoreton@gmail.com, emacs-devel@gnu.org To: Alexander Shukaev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 30 17:52:15 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 1Ynql2-000805-U9 for ged-emacs-devel@m.gmane.org; Thu, 30 Apr 2015 17:52:13 +0200 Original-Received: from localhost ([::1]:44646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynql2-0007SQ-1m for ged-emacs-devel@m.gmane.org; Thu, 30 Apr 2015 11:52:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynqh1-0000Pc-Ht for emacs-devel@gnu.org; Thu, 30 Apr 2015 11:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ynqgw-0007qC-KM for emacs-devel@gnu.org; Thu, 30 Apr 2015 11:48:03 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:51841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynqgw-0007py-CV for emacs-devel@gnu.org; Thu, 30 Apr 2015 11:47:58 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NNM00C00M724300@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Thu, 30 Apr 2015 18:47:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNM00C9UMJV4O00@a-mtaout21.012.net.il>; Thu, 30 Apr 2015 18:47:56 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:186064 Archived-At: > Date: Thu, 30 Apr 2015 17:06:51 +0200 > From: Alexander Shukaev > Cc: Andy Moreton , emacs-devel >=20 > =E2=80=8BAs I understand it=E2=80=8B >=20 > (gnutls=20 > "libgnutls- > =E2=80=8B30=E2=80=8B > .dll" "libgnutls-28.dll" "libgnutls-26.dll") >=20 > makes loading of GnuTLS 3.4 completely optional, i.e. people may st= ill have > "libgnutls-28.dll" and use it instead. So why not backport this com= mit 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 th= e 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.