From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24742: 25.1; autoloads tries to parse shared object files when module support is enabled Date: Thu, 20 Oct 2016 09:37:30 +0300 Message-ID: <83a8dzv845.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1476945503 17679 195.159.176.226 (20 Oct 2016 06:38:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 06:38:23 +0000 (UTC) Cc: 24742-done@debbugs.gnu.org To: Joris Vankerschaver Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 08:38:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx6zY-0003q4-Uz for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 08:38:17 +0200 Original-Received: from localhost ([::1]:52708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx6zb-0006cG-6I for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2016 02:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx6zN-0006Yz-A9 for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 02:38:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx6zK-0000XI-NW for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 02:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bx6zK-0000Wx-J0 for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 02:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bx6zK-000872-01 for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2016 02:38:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2016 06:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24742 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 24742@debbugs.gnu.org, eliz@gnu.org, joris.vankerschaver@gmail.com Original-Received: via spool by 24742-done@debbugs.gnu.org id=D24742.147694547531168 (code D ref 24742); Thu, 20 Oct 2016 06:38:01 +0000 Original-Received: (at 24742-done) by debbugs.gnu.org; 20 Oct 2016 06:37:55 +0000 Original-Received: from localhost ([127.0.0.1]:40237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx6zD-00086e-4P for submit@debbugs.gnu.org; Thu, 20 Oct 2016 02:37:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx6zB-00086S-F8 for 24742-done@debbugs.gnu.org; Thu, 20 Oct 2016 02:37:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx6z0-0000Ha-Te for 24742-done@debbugs.gnu.org; Thu, 20 Oct 2016 02:37:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx6z0-0000HN-OD; Thu, 20 Oct 2016 02:37:42 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4621 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bx6yz-0004As-Vq; Thu, 20 Oct 2016 02:37:42 -0400 In-reply-to: (message from Joris Vankerschaver on Wed, 19 Oct 2016 19:35:04 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:124705 Archived-At: > From: Joris Vankerschaver > Date: Wed, 19 Oct 2016 19:35:04 +0100 > > This happens on an Emacs that has been compiled with module support. > Installing a multi-file package (with M-x package-install-file) that contains a > shared library (e.g. an Emacs module) results in a traceback. > > The traceback is included below. It is hard to reproduce this exactly, but what > happens is that update-directory-autoloads iterates over the files in the > package, and checks the extension of each file against the list of executable > suffixes (from get-load-suffixes). When module support is enabled, that list > contains ".so" (or ".dll", depending on the platform), causing > autoload-generate-file-autoloads to try and parse the shared object file. > > A possible fix would be to have update-directory-autoloads exclude shared > object files (indeed, this fixes the problem on my platform). A complication is > that the list of shared object file extensions is platform dependent. I don't > know if there is a reliable way of getting this information. Thanks, this has been solved already for the next release of Emacs.