From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wayne Harris via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: on how to install gnutls dlls on windows Date: Mon, 19 Apr 2021 16:35:28 -0300 Message-ID: <86eef6rrsv.fsf@protonmail.com> References: <86tuo3zi4a.fsf@protonmail.com> <83h7k3tvdr.fsf@gnu.org> <86mttvzgnf.fsf@protonmail.com> <83eef7tst7.fsf@gnu.org> <86eef7z2yy.fsf@protonmail.com> <83pmyqs95k.fsf@gnu.org> Reply-To: Wayne Harris Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40132"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:O04Q1+H/ZJX/b3mfiV/y8WbROZY= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 19 22:39:25 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYag1-000AJe-Bw for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 22:39:25 +0200 Original-Received: from localhost ([::1]:34364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYag0-0006pk-Cc for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Apr 2021 16:39:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYZgU-0008Hb-4W for help-gnu-emacs@gnu.org; Mon, 19 Apr 2021 15:35:50 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:39074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYZgR-0008HJ-9K for help-gnu-emacs@gnu.org; Mon, 19 Apr 2021 15:35:49 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lYZgP-0009fo-9F for help-gnu-emacs@gnu.org; Mon, 19 Apr 2021 21:35:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129082 Archived-At: Eli Zaretskii writes: >> Date: Sun, 18 Apr 2021 18:40:05 -0300 >> From: Wayne Harris via Users list for the GNU Emacs text editor >> >> >> I didn't expect the PATH to be involved here, but here's how to get it >> to work invoking it through cmd.exe: >> >> C:\Users\x>cd \sys\emacs\bin >> >> C:\sys\emacs\bin>set PATH=c:/sys/emacs/usr/mingw/mingw64/bin/ >> >> C:\sys\emacs\bin>echo %PATH% >> c:/sys/emacs/usr/mingw/mingw64/bin/ >> >> C:\sys\emacs\bin>emacs -Q >> >> *scratch* buffer: (gnutls-available-p) C-x C-e >> Minibuffer says: (ClientHello\ Padding Key\ ...) >> C-x C-c > > This probably means some of the dependencies of the GnuTLS DLL were > not copied, and are found via PATH. You're quite right, sir. Now I finally understood how to check such dependencies --- for instance, the check is recursive. I had tried using the dependency walker before, but could never quite understand its output. Now I did. I was missing LIBWINPTHREAD-1.DLL LIBGCC_S_SEH-1.DLL LIBGMP-10.DLL LIBINTL-8.DLL LIBP11-KIT-0.DLL LIBTASN1-6.DLL LIBIDN2-0.DLL LIBICONV-2.DLL LIBINTL-8.DLL LIBP11-KIT-0.DLL LIBFFI-7.DLL LIBTASN1-6.DLL LIBUNISTRING-2.DLL and that was it. If I may, I still have one question. When I look at the dependencies of emacs.exe, I don't see, for instance, LIBGNUTLS-30.DLL. In fact, I only see core Windows libraries. --8<---------------cut here---------------start------------->8--- c:\windows\system32\ADVAPI32.DLL c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1_none_b555e41d4684ddec\COMCTL32.DLL c:\windows\system32\COMDLG32.DLL c:\windows\system32\GDI32.DLL c:\windows\system32\KERNEL32.DLL c:\windows\system32\MPR.DLL c:\windows\system32\MSVCRT.DLL c:\windows\system32\OLE32.DLL c:\windows\system32\SHELL32.DLL c:\windows\system32\USER32.DLL c:\windows\system32\USP10.DLL c:\windows\system32\WINMM.DLL c:\windows\system32\WINSPOOL.DRV --8<---------------cut here---------------end--------------->8--- Doesn't emacs.exe depend on LIBGNUTLS-30.DLL? >> I didn't know PATH was used to search for DLLs. > > Yes, it is. You can find the description of the full DLL search > method on the MS docs site. I did find it. https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order That was very educational. Thank you.