From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: strange ezwinports issue Date: Tue, 08 Sep 2015 07:38:37 +0300 Message-ID: <83si6p7cfm.fsf@gnu.org> References: <87egiat9ir.fsf@gmail.com> <83vbbm6opj.fsf@gnu.org> <87vbbl1umd.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441687138 15640 80.91.229.3 (8 Sep 2015 04:38:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 04:38:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 06:38:45 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZAg6-0000bp-If for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 06:38:42 +0200 Original-Received: from localhost ([::1]:59944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZAg6-0000wU-8d for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 00:38:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZAfv-0000vr-R2 for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 00:38:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZAfr-00064F-R5 for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 00:38:31 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZAfr-00064B-JP for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 00:38:27 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NUC00300CU4JT00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 07:38:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUC0038KCW1EN80@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 07:38:26 +0300 (IDT) In-reply-to: <87vbbl1umd.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107077 Archived-At: > From: Sivaram Neelakantan > 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.