From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: vincent.belaiche@gmail.com (Vincent =?UTF-8?Q?Bela=C3=AFche?=) Newsgroups: gmane.emacs.bugs Subject: bug#27516: 25.2.50; Building master branch on MSW fails because of gnutls and other reasons... Date: Tue, 11 Jul 2017 07:20:27 +0200 Message-ID: <84eftnsg6c.fsf@AigleRoyal> References: <84zics73hk.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499750492 28056 195.159.176.226 (11 Jul 2017 05:21:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 05:21:32 +0000 (UTC) Cc: 27516@debbugs.gnu.org, Vincent =?UTF-8?Q?Bela=C3=AFche?= , npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 11 07:21:24 2017 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 1dUnbu-0006oO-Nm for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 07:21:22 +0200 Original-Received: from localhost ([::1]:44283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUnbz-0001i6-Qw for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 01:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUnbj-0001gI-4r for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:21:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUnba-0000fT-9h for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:21:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUnba-0000eK-2J for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUnbZ-0004l1-NN for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: vincent.belaiche@gmail.com (Vincent =?UTF-8?Q?Bela=C3=AFche?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2017 05:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27516-submit@debbugs.gnu.org id=B27516.149975042918234 (code B ref 27516); Tue, 11 Jul 2017 05:21:01 +0000 Original-Received: (at 27516) by debbugs.gnu.org; 11 Jul 2017 05:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:33246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUnb2-0004k2-Je for submit@debbugs.gnu.org; Tue, 11 Jul 2017 01:20:28 -0400 Original-Received: from mail-wr0-f194.google.com ([209.85.128.194]:34398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUnb1-0004jp-2b for 27516@debbugs.gnu.org; Tue, 11 Jul 2017 01:20:27 -0400 Original-Received: by mail-wr0-f194.google.com with SMTP id k67so29453871wrc.1 for <27516@debbugs.gnu.org>; Mon, 10 Jul 2017 22:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-transfer-encoding; bh=Guyy6KPxZlqEM9UnyYd9JNue38YpGwDmx/JXzY+ymiM=; b=s7l+C51rUZpxb/HOYJJ4BvQuzJc6ldazJOY2MMfpU7Zm07RAOy9412FddiLDXaoLDF wuEeUagjv6fRTIwUVmjZhBV1UPi2+0ZQXajl63xRzhr9MQrY45wuOVZxe8gptgghM4xc /weqZV6tZPwuUItlxSZPw17AZ9Fa/ZswCNEc4dQSJ3TgOMRcDtyjYYdIAzyVEo9Ueso3 PP2CbxBN1U4AkhqEnXAJBsOxhC2HPSNjCrjKNBmHYhniT1u2P/2LSaeNdF9o/+4L9Qb9 VhcN+HaehMfsTwsbf/nSPDTVTL4BGrkvRKM5eYvwCEMWdEPNBu0Gi134Msb8A/elVi1j YqsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-transfer-encoding; bh=Guyy6KPxZlqEM9UnyYd9JNue38YpGwDmx/JXzY+ymiM=; b=rrckDDmjIGOyaNfj7GLghhctVxXeNxukz4jNZHWHBavf0OpJTqZoh23MYVdJynPvme +GGt4q6WIJ9Z0L3U+09xwSdbIIWdWnW/PRChTEHng00PCLNrR4n/8x0LwILGkdU4Uu17 n87FttyfYuoOBVIsZZs1CV3+PutUaGG/r1Ge0SYsG4PkgDjZLa0xPSfUPtn3vJi6RtLH xj4xxEMAADeKVXcaWrTk1SbGQfl5ekHaorU6OzC0wS2+3Efc/c8LK/p+X5OQV1q2g2QB 3XW5dPlOeFTbbRmiHAmY4yWiJbEd3G5JMQ7AEFPTBuaToJvnpqfMmmFMv6ca/2MC2xyn lFbQ== X-Gm-Message-State: AIVw111oMlHBmv7MiDRxq7Fyyc7HLHDHt8U7bBGTM/Axf617dF+bslpk q9EW2G9JdBJ8LHlXW4w= X-Received: by 10.28.156.20 with SMTP id f20mr9440701wme.17.1499750421191; Mon, 10 Jul 2017 22:20:21 -0700 (PDT) Original-Received: from AigleRoyal (ARennes-656-1-403-78.w90-32.abo.wanadoo.fr. [90.32.91.78]) by smtp.gmail.com with ESMTPSA id g5sm766179wmf.5.2017.07.10.22.20.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jul 2017 22:20:20 -0700 (PDT) In-Reply-To: <831sq1r6ss.fsf@gnu.org> X-Antivirus: Avast (VPS 170710-18, 10/07/2017), Outbound message X-Antivirus-Status: Clean 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:134423 Archived-At: Sorry for the delay in replying, feedback below. I could not get a running Emacs 26 with GNUTLS working also. Le 30/06/2017 =E0 14:36, Eli Zaretskii a =E9crit : >> From: vincent.belaiche@gmail.com (Vincent Bela=EFche) >> Date: Fri, 30 Jun 2017 12:44:28 +0200 >> Cc: Vincent Bela=EFche >> >>> ./configure uses pkg-config to test for gnutls, so you need to have >>> pkg-config as well as the gnutls.pc file in the pkg-config >>> PKG_CONFIG_PATH. Try running >> >> OK, I could get some gnutls.pc file with the gnutls library and I edited= >> it for the content to match my installation, so now it is as follows: > > You shouldn't need to edit it, it should work as-is. It would certainly work as is if the gnutls include files where placed in guess-estimatable directories relative to pkg-config, but I placed them in another directory in order not to mix up my mingw directory with files from another source (namely gnutls.org), so I had to comment out the prefix setting for the other settings to be taken as edited in gnutls.pc and not replaced by guess-estimates, and I also edited the other settings to point at the right place. I had also to make another hack : when I took the gnutls windows port from gnutls.org, the include files are in lib/includes, I had to move this to includes/gnutls because the Emacs source makes some #include directive with an explicit gnutls/... superdirectory. So, OK, it's my fault, I should have taken the EZwinports and placed it into my mingw. > >> --- a/src/w32heap.c >> +++ b/src/w32heap.c >> @@ -116,9 +116,9 @@ typedef NTSTATUS (NTAPI *PRTL_HEAP_COMMIT_ROUTINE) (= >> to build only the first bootstrap-emacs.exe with the large size, >> and reset that to a lower value afterwards. */ >> #if defined _WIN64 || defined WIDE_EMACS_INT >> -# define DUMPED_HEAP_SIZE (21*1024*1024) >> +# define DUMPED_HEAP_SIZE (26*1024*1024) >> #else >> -# define DUMPED_HEAP_SIZE (12*1024*1024) >> +# define DUMPED_HEAP_SIZE (13*1024*1024) >> #endif > > It is very strange why you need this increment, while no one else > does. > I can't tell why I need this. But if you explain me how to debug the compile crash due to lack of memory, then we may know more about it. Please note that I have been using a 32 bit compilation, while I am on a 64bit machine. >> I note that that current sizes between narrow and wide are not >> consistent, as 21 is not the double of 12. > > The size in the 64-bit build doesn't need to be a double of the size > for the 32-bit build, since not every Lisp object is exactly twice > large in the 64-bit build. These numbers were found by > trial-and-error. > >> Anyway, now I have a running Emacs 26, however it seems that it does not= >> have any gnutls in it, because when I try a message send, I get the >> following error message: >> >> --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8---- >> Sending via mail... >> smtpmail-send-it: Sending failed: Emacs does not support TLS >> --8<----8<----8<----8<----8<-- end -->8---->8---->8---->8---->8---- > > Like Noam said: make sure the DLL is where Emacs looks for it. I could make it work. The issue was that only only you need the directory (call it dir_1) where the DLL is in the PATH envvar, but also you need that no other directory (call it dir_2) containing conflicting DLL be in the PATH envar *before* dir_1. I had a dir_2 containing other libgmp-10.dll and libp11-kit-0.dll and that was sufficient to make it fail on execution. This was due to that I had tried in the first place to use gnutls-cli.exe, so I had a gnutls-cli.exe installed dir_2 which was using incompatible DLL compared to that in dir_1. Once again, OK it's my fault, I should have blindly followed the instructions in (info "(emacs-gnutls) Help For Users") and placed Eli's EZwinPorts into the same bin directory as emacs.exe, but instead I took the latest from gnutls.org and placed it in another directory. Sorry for I am desperately prone not to follow instructions as-is. Vincent. --- L'absence de virus dans ce courrier =E9lectronique a =E9t=E9 v=E9rifi=E9e p= ar le logiciel antivirus Avast. https://www.avast.com/antivirus