From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.comp.gnu.mingw.msys2,gmane.emacs.devel Subject: Re: About DLLs needed by Emacs (W64) Date: Mon, 20 Nov 2017 17:52:22 +0200 Message-ID: <83fu99dk21.fsf@gnu.org> References: <1639589366.4676.1511182396362@mail.libero.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1511193177 32547 195.159.176.226 (20 Nov 2017 15:52:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 15:52:57 +0000 (UTC) Cc: msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, emacs-devel-mXXj517/zsQ@public.gmane.org To: Angelo Graziosi Original-X-From: msys2-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Mon Nov 20 16:52:53 2017 Return-path: Envelope-to: gcgmm-msys2-users@m.gmane.org Original-Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGoNL-0007wZ-Pr for gcgmm-msys2-users@m.gmane.org; Mon, 20 Nov 2017 16:52:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1eGoNS-00041N-69; Mon, 20 Nov 2017 15:52:54 +0000 Original-Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eGoNR-00041H-KV for msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Mon, 20 Nov 2017 15:52:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:Reply-to:Subject:In-reply-to:CC:To:From: Message-Id:Date:Sender:MIME-Version:Content-Type: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=VD5bYSiJqWVUcHwspjKG+ytiyqiuoponiX3aoXflQW4=; b=aTXC8ObUEYqQNfijF+ovX4U2L0 r/7MOGppxSz5+ubo/sgXVYs75ispoEXvgha6ykyXYTltpbQoLm+WbLvKt+ZLZ+E75KwQK8gYT1wVg vSNoj1Pc45kjtYEm0iDDAboxT/7dIOdp/ay2xnut7i5EGQkCIUabdcGnNjfm2vgn9gP4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:Reply-to:Subject:In-reply-to:CC:To:From:Message-Id:Date:Sender :MIME-Version:Content-Type: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=VD5bYSiJqWVUcHwspjKG+ytiyqiuoponiX3aoXflQW4=; b=XUEPN/+TzBFXBWZZ0GJZJPzx+M +T37toveB9i5bOSibmEvI63YZl3CWCyIftVIA56PD2R/7gM90fomipEL/O8iziuFAGyQSSHLwu2sU s7ANQWPC65BNNvTVFFu2BUZ1w2A8FBQDxInu4tUJvCcki7agqdfdZGorIHaacIW37VVY=; Original-Received: from eggs.gnu.org ([208.118.235.92]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.89) id 1eGoNM-0007hf-0u for msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Mon, 20 Nov 2017 15:52:53 +0000 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGoNA-0002pU-Sq for msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Mon, 20 Nov 2017 10:52:42 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGoN4-0002o2-3W; Mon, 20 Nov 2017 10:52:30 -0500 Original-Received: from [176.228.60.248] (port=2850 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eGoN3-0001UO-IL; Mon, 20 Nov 2017 10:52:29 -0500 In-reply-to: <1639589366.4676.1511182396362-HsGP3tMACQiIsOV+laUMjw@public.gmane.org> (message from Angelo Graziosi on Mon, 20 Nov 2017 13:53:16 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Headers-End: 1eGoNM-0007hf-0u X-BeenThere: msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: MSYS2 using List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: msys2-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Xref: news.gmane.org gmane.comp.gnu.mingw.msys2:1912 gmane.emacs.devel:220293 Archived-At: > Date: Mon, 20 Nov 2017 13:53:16 +0100 (CET) > From: Angelo Graziosi > > Just out of curiosity, given the Emacs executable, is there a way to know the MSYS2/MinGW64 DLLs it needs? On MSYS2 I tried: > > ldd Emacs/bin/emacs-27.0.50.exe > ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffab5f30000) > KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ffab49b0000) > [...] > WINMMBASE.dll => /c/WINDOWS/SYSTEM32/WINMMBASE.dll (0x7ffab0620000) > IPHLPAPI.DLL => /c/WINDOWS/SYSTEM32/IPHLPAPI.DLL (0x7ffab18a0000) > bcrypt.dll => /c/WINDOWS/SYSTEM32/bcrypt.dll (0x7ffab1de0000) > > but it prints only Windows DLLs not all the others which come from MSYS2/MinGW64... Like this: objdump -x emacs.exe | fgrep "DLL Name:" However, if you are looking for the optional image libraries, libxml2, etc., you won't find them this way: Emacs loads them dynamically at run time by using explicit LoadLibrary calls. Maybe something like this: stringgs emacs.exe | fgrep -i ".dll" ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot