all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Wayne Harris via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: on how to install gnutls dlls on windows
Date: Mon, 19 Apr 2021 16:35:28 -0300	[thread overview]
Message-ID: <86eef6rrsv.fsf@protonmail.com> (raw)
In-Reply-To: 83pmyqs95k.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sun, 18 Apr 2021 18:40:05 -0300
>> From: Wayne Harris via Users list for the GNU Emacs text editor
>> <help-gnu-emacs@gnu.org>
>> 
>> 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.




  reply	other threads:[~2021-04-19 19:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-18 16:12 on how to install gnutls dlls on windows Wayne Harris via Users list for the GNU Emacs text editor
2021-04-18 16:22 ` Eli Zaretskii
2021-04-18 16:44   ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-18 17:13     ` Óscar Fuentes
2021-04-18 21:43       ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-18 17:18     ` Eli Zaretskii
2021-04-18 21:40       ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-19 13:20         ` Eli Zaretskii
2021-04-19 19:35           ` Wayne Harris via Users list for the GNU Emacs text editor [this message]
2021-04-19 21:36             ` Óscar Fuentes
2021-04-20 12:33               ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-20 15:51                 ` Óscar Fuentes
2021-04-20 18:08                   ` Wayne Harris via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86eef6rrsv.fsf@protonmail.com \
    --to=help-gnu-emacs@gnu.org \
    --cc=wharris1@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.