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#24613: Windows build with rsvg fails on newest MinGW Date: Tue, 04 Oct 2016 17:10:46 +0300 Message-ID: <83shscmcgp.fsf@gnu.org> References: <60bdc990-2296-0c76-ec5b-ca2707f544db@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1475590937 12884 195.159.176.226 (4 Oct 2016 14:22:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2016 14:22:17 +0000 (UTC) Cc: 24613@debbugs.gnu.org To: Nikolay Kudryavtsev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 16:22:12 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 1brQbW-0001Bf-Vu for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2016 16:21:59 +0200 Original-Received: from localhost ([::1]:42963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brQbV-0001ib-HB for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2016 10:21:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brQQy-0001Gf-Lt for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 10:11:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brQQw-0002qh-A6 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 10:11:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brQQw-0002qV-71 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 10:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1brQQv-0007mm-Vu for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2016 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24613 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24613-submit@debbugs.gnu.org id=B24613.147559026129926 (code B ref 24613); Tue, 04 Oct 2016 14:11:01 +0000 Original-Received: (at 24613) by debbugs.gnu.org; 4 Oct 2016 14:11:01 +0000 Original-Received: from localhost ([127.0.0.1]:44496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brQQv-0007mX-8O for submit@debbugs.gnu.org; Tue, 04 Oct 2016 10:11:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brQQu-0007mD-00 for 24613@debbugs.gnu.org; Tue, 04 Oct 2016 10:11:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brQQk-0002hC-O8 for 24613@debbugs.gnu.org; Tue, 04 Oct 2016 10:10:54 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brQQk-0002gT-KI; Tue, 04 Oct 2016 10:10:50 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3328 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1brQQi-0006AH-Rx; Tue, 04 Oct 2016 10:10:49 -0400 In-reply-to: <60bdc990-2296-0c76-ec5b-ca2707f544db@gmail.com> (message from Nikolay Kudryavtsev on Tue, 4 Oct 2016 15:12:07 +0300) 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:124036 Archived-At: > From: Nikolay Kudryavtsev > Date: Tue, 4 Oct 2016 15:12:07 +0300 > > I've been trying to get rsvg working and here's what I found: I don't see how anything in what you see is related to rsvg, what am I missing? > > In file included from c:\mingw\include\wchar.h:212:0, > > from c:\mingw\include\iconv.h:106, > > from C:/MinGW/include/libxml2/libxml/encoding.h:28, > > from C:/MinGW/include/libxml2/libxml/parser.h:807, > > from C:/MinGW/include/libxml2/libxml/globals.h:18, > > from C:/MinGW/include/libxml2/libxml/threads.h:35, > > from C:/MinGW/include/libxml2/libxml/xmlmemory.h:218, > > from C:/MinGW/include/libxml2/libxml/tree.h:1248, > > from d:/Emacs/source/emacs-25.1/src/xml.c:23: > > c:\mingw\include\sys/stat.h:173:8: error: redefinition of 'struct _stat' > > struct _stat __struct_stat_defined( _off_t, time_t ); > > ^ > > In file included from d:/Emacs/source/emacs-25.1/nt/inc/ms-w32.h:440:0, > > from d:/Emacs/source/emacs-25.1/src/conf_post.h:32, > > from ./config.h:1916, > > from d:/Emacs/source/emacs-25.1/src/xml.c:19: > > d:/Emacs/source/emacs-25.1/nt/inc/sys/stat.h:106:8: note: originally > > defined here > > struct _stat > > ^ So wchar.h now includes sys/stat.h? What MinGW runtime are you using and where did you download it? Does it help to add the following to nt/inc/sys/stat.h? #ifndef _SYS_STAT_H #define _SYS_STAT_H #endif The best solution in the long run is to stop redefining struct stat and friends, and instead call it something else (since we don't use the MS implementation of 'stat' and 'fstat' anyway). Patches to that effect are welcome.