unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: strange ezwinports issue
Date: Tue, 08 Sep 2015 07:38:37 +0300	[thread overview]
Message-ID: <83si6p7cfm.fsf@gnu.org> (raw)
In-Reply-To: <87vbbl1umd.fsf@gmail.com>

> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
> Date: Tue, 08 Sep 2015 08:32:18 +0530
> 
> On Mon, Sep 07 2015,Eli Zaretskii wrote:
> 
> > Does the problem go away if you put all of the ezwinports DLLs in the
> > same directory where you have emacs.exe?
> 
> Yes, it does.  Thanks for the fix.  What changed that necessitates
> this kind of fix?

There was no change that necessitated this.  What this experiment
means is that you have a small "DLL hell" on your hands: you have an
incompatible copy of some DLL that is used by some of the ezwinports
that lives in some other directory which is closer to the beginning of
your PATH than the ezwinports' bin/ directory.  So when Emacs loads,
say, libgnutls-28.dll, and looks for its dependency DLLs, it finds
that incompatible DLL first, tries to load it, which fails (due to
whatever makes it incompatible), and then the load of libgnutls-28.dll
fails because of that.

When a Windows program needs to load a DLL, it always looks first in
the directory where that program's .exe file lives, so copying the
DLLs there "solved" that problem for you.

I suggest to invoke the dependency walker
(http://www.dependencywalker.com/) on every DLL in the new
ezwinports's bin/ directory, and look for the dependency DLLs that
live outside that bin/ directory -- you will surely find your offender
soon enough.

Or you can keep the ezwinports DLLs in the same directory with
emacs.exe, if you don't need to use those DLLs from other packages.



  reply	other threads:[~2015-09-08  4:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07 17:38 strange ezwinports issue Sivaram Neelakantan
2015-09-07 18:58 ` Eli Zaretskii
2015-09-08  3:02   ` Sivaram Neelakantan
2015-09-08  4:38     ` Eli Zaretskii [this message]
2015-09-10 16:04       ` Sivaram Neelakantan
2015-09-10 16:48         ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83si6p7cfm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).