From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#22959: Emacs on Windows depends on libwinpthreads Date: Wed, 09 Mar 2016 18:56:37 +0000 Message-ID: <87mvq7mqe2.fsf@russet.org.uk> References: <87egbj4sbh.fsf@russet.org.uk> <83d1r3pqr0.fsf@gnu.org> <871t7j4no3.fsf@russet.org.uk> <83ziu7oaej.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457549853 12706 80.91.229.3 (9 Mar 2016 18:57:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2016 18:57:33 +0000 (UTC) Cc: 22959@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 19:57:21 2016 Return-path: Envelope-to: geb-bug-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 1adjII-00069C-7Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 19:57:14 +0100 Original-Received: from localhost ([::1]:43534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adjIH-0007jc-Qz for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 13:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adjIC-0007fT-81 for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 13:57:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adjI6-0007E0-Hq for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 13:57:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adjI6-0007Du-Ev for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 13:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adjI6-0006nu-5F for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 13:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Mar 2016 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22959-submit@debbugs.gnu.org id=B22959.145754980726127 (code B ref 22959); Wed, 09 Mar 2016 18:57:02 +0000 Original-Received: (at 22959) by debbugs.gnu.org; 9 Mar 2016 18:56:47 +0000 Original-Received: from localhost ([127.0.0.1]:41807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adjHq-0006nL-Vv for submit@debbugs.gnu.org; Wed, 09 Mar 2016 13:56:47 -0500 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:54238) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adjHp-0006n4-0U for 22959@debbugs.gnu.org; Wed, 09 Mar 2016 13:56:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=1OlQarBC6gpfKr1Q+vduUdKRB/A0ge6ngmKuG2gZh4Q=; b=xNWv1Wv3I5vHK1wp56CQVh9GIN tJt7uExFMhoSVIld/hNukTTdoecNQr8npmsvo/sDFgHS5011acGXgjIqiQodL7rUupSnSCjgI/zee bwLrEK13DqsnZg7OH0wBg1qP616L+G/BnL7Q+PJs01k/Is1lRZsNWsBK1AuapcxF7Yzi3vMcp9wC4 fFhoxoUBEXDIgGMUxrAeZAvr72OxGJvxUS01OVNIT2Q8zoeXaDffL6Q0i1NCyH3DuSKSnX/0/2+Ay mBLIJ1sa3OsUrDkWax7nSTo3jFIlPXFEVHdv7W4WcsNoqnqGinHGAwHcp+pV7kt/lMpkrdRrC9rxS AvEVQN/w==; Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118]:51070 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86) (envelope-from ) id 1adjHi-003w4x-U1; Wed, 09 Mar 2016 18:56:39 +0000 In-Reply-To: <83ziu7oaej.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Mar 2016 18:59:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114662 Archived-At: Eli Zaretskii writes: >> From: phillip.lord@russet.org.uk (Phillip Lord) >> Cc: 22959@debbugs.gnu.org >> Date: Wed, 09 Mar 2016 16:32:44 +0000 >> >> > If MinGW64 builds binaries that depend on libwinpthread DLL, then why >> > isn't that DLL part of the MinGW64 GCC installation? That sounds like >> > a bug in MinGW64 packaging, or maybe your installation is somehow >> > incomplete or misconfigured? >> >> It is part of the distribution. The problem is generating a binary for >> other people that they can use. If I install Emacs and then package that >> location, the executable will not work. > > Ah, okay. Then I think the only way of making distributable binaries > is to find a GCC distribution that doesn't infect programs it produces > with the libwinpthread dependency. IIUC, I could cross-compile Emacs on debian, but I don't know if that would solve the issue. The mingw mailing list suggests that it's not possible using their tool chain. >> > (This is the first time that a MinGW64 Emacs user complains about >> > this, so I wonder how others solve this problem.) >> >> The Emacs-W64 distribution which builds in ming-w64 just copies >> libwinpthread-1.dll into the bin directory. > > Someone who does that will have to provide the sources of that library > from the same location, or they will be in violation of the GPL. Does it? libwinpthread isn't GPL. I would assume that it's a system library so is not covered by Emacs' GPL either. >> The other solution is >> >> ./configure CFLAGS=-static > > If that gives reasonable results, yes. What problems, if any, does it > create? Well, it works, which is a reasonable result. Disadvantage? I guess, if it is dropped into an existing ming-w64 installation, then it will (effectively) duplicate the libwinpthread binary that is there. More, it will not gain any updates to that libwinpthread library. If Emacs is being used standalone on a system with no other part of mingw/msys then these points are moot. Phil