From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: gnutls on mingw64 Date: Thu, 28 Nov 2019 10:00:24 -0800 Message-ID: <86v9r3op8n.fsf@stephe-leake.org> References: <86h82qq0jh.fsf@stephe-leake.org> <83k17mskr1.fsf@gnu.org> <86zhghod06.fsf@stephe-leake.org> <83blsxqprv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78157"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 28 22:05:10 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaQyL-000KAS-KR for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2019 22:05:10 +0100 Original-Received: from localhost ([::1]:53186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaQyK-0002AS-77 for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2019 16:05:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59622) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaOCp-0008Js-8N for emacs-devel@gnu.org; Thu, 28 Nov 2019 13:07:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaO6I-0005tD-LJ for emacs-devel@gnu.org; Thu, 28 Nov 2019 13:01:11 -0500 Original-Received: from gateway21.websitewelcome.com ([192.185.45.91]:12397) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iaO6F-00038E-VG for emacs-devel@gnu.org; Thu, 28 Nov 2019 13:01:10 -0500 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 7A3A7400D145E for ; Thu, 28 Nov 2019 12:00:29 -0600 (CST) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id aO5diDM2YW4fraO5dibYD4; Thu, 28 Nov 2019 12:00:29 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=y49L85Ac5k3x0yXZ5HzgkR8bOb7BNP4sONSZv/a8sEU=; b=OeTODe3Yu9pakMAtBU98SBSFV T/sPwLBsT5K79z2l73ZZtDM8ivBsBcYGXWg7AhnU/wM1YvvLqUqHkd5x+yh2ptAkjMDfuhTKzZLE2 aMjn+PivHFFLgDxRPgjN41H630FJe0Vcl+VI5C+XT/TnpHhheHDXMCxH6GL3NuUNOT4ELuILvCHA9 sZkzcJybBHAF8DHqEYg8/gncQhpY7OzH3g9BYTRfLQ4jU9pFiiRg8bIJGhAITezLfUF+j7mjNQzZ4 T/4OVvl6fVRcx9pFuR/NYZwtBd80D64i/4Pxfomypu7Pdix/EVrr90XdtpeBwIPRY2tV3r6wWW1Sr j1nhmuAKw==; Original-Received: from [76.77.182.20] (port=56379 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iaO5c-001uLW-SU for emacs-devel@gnu.org; Thu, 28 Nov 2019 11:00:28 -0700 In-Reply-To: <83blsxqprv.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 27 Nov 2019 17:53:40 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1iaO5c-001uLW-SU X-Source-Sender: (Takver4) [76.77.182.20]:56379 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.45.91 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:242844 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Date: Wed, 27 Nov 2019 02:00:09 -0800 >> >> >> Currently neither w32_delayed_load nor init_gnutls_functions calls >> >> GetLastError; would it help to add that? >> > >> > Does its value tell something useful in this case? >> >> I did not modify the code to find out, but I'm guessing it's the >> standard unhelpful "could not find the file" without the file name. > > But it did find the file, it just couldn't load it because some of its > dependencies were of incorrect architecture/ABI. It found libgnutls-30.dll, which was the top level file it was looking for. But that depends on libhogweed-5.dll and libnettle-7.dll, which were not found. > IMO, it only makes sense to call GetLastError and display the results > to the user if the message will allow the user figure out what went > wrong and how to fix it. Yes. I keep hoping Microsoft will do better, but I'm always disappointed. The most common error I get is "file not found" because PATH is wrong or the file is not installed, when it's perfectly clear that the system knows the name of the file it's looking for, but _I_ don't, and it's not telling me! _very_ frustrating; Gnu/Linux is much better here. So I assume that's the error message GetLastError will return here. I'm also assuming that whoever wrote w32_delayed_load tested calling GetLastError, got an unhelpful message, and deleted it. It would be nice if there was a comment saying that. If I get motivated, I might try that experiment, but given the above, it's not high on my list. -- -- Stephe