From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.bugs Subject: bug#24613: Windows build with rsvg fails on newest MinGW Date: Tue, 4 Oct 2016 15:12:07 +0300 Message-ID: <60bdc990-2296-0c76-ec5b-ca2707f544db@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1475583224 30790 195.159.176.226 (4 Oct 2016 12:13:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2016 12:13:44 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 To: 24613@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 14:13:40 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 1brOb3-0005Lw-8O for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2016 14:13:21 +0200 Original-Received: from localhost ([::1]:42070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOb1-0003dT-Sr for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2016 08:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOaq-0003cB-PS for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:13:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brOak-0002PQ-Nd for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:13:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOak-0002PF-KV for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1brOak-00035G-D1 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikolay Kudryavtsev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2016 12:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24613 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147558316211818 (code B ref -1); Tue, 04 Oct 2016 12:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2016 12:12:42 +0000 Original-Received: from localhost ([127.0.0.1]:43853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brOaQ-00034X-4s for submit@debbugs.gnu.org; Tue, 04 Oct 2016 08:12:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brOaO-00034L-Em for submit@debbugs.gnu.org; Tue, 04 Oct 2016 08:12:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brOaG-00024A-5u for submit@debbugs.gnu.org; Tue, 04 Oct 2016 08:12:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOaG-00023U-2R for submit@debbugs.gnu.org; Tue, 04 Oct 2016 08:12:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOaA-0003Xl-Ex for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:12:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brOa6-0001xs-1e for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:12:25 -0400 Original-Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:36658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOa5-0001wO-L7 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 08:12:21 -0400 Original-Received: by mail-lf0-x244.google.com with SMTP id b75so2683372lfg.3 for ; Tue, 04 Oct 2016 05:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=52ArsM/JDNtQH3UkkYIUQc8hFBOaeLhePetvqGVSviw=; b=tIbJdzg9Q2V54vaxemYzPhNx1aqsHlf7YHkSVfmssFsPxZYsPse4B/pbhG4B97F+tL F51hFbshojzUpfx6m5afRvuME2ta3StiebpW0EM1jZCv1fJ8s85daU/CqzKRNK1y67iA IxZWOZBG0n5Rsz7uzp4Qe99tNhFn6vIihRrgYOyY7ORPSbIvIBvkdDNjz6pIv0Sk4+89 UHjGKNnzJzELBiqmiMS6bZgIwTh0uGnnhQ3BPUlKUBDEnWV6jVdb2Kd+DUtrCWvSinVa QQya3u/iLxmvwzLdWcvSTWnXP2pcQoZ60NOVN/VvuSzud2fphAaDyr+QuY+6/QJVIVWs S0pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=52ArsM/JDNtQH3UkkYIUQc8hFBOaeLhePetvqGVSviw=; b=W7JKZhEghYRQmv+eHPCgFQawWo6wUmp+LKe7Gnm5vCoreu7G/v3Yjt23SozOUpwqLy LY+m/j+wHbrthAe8i3tvldb/Pyk4ugUeWF5Lbrj3jy7nJPTh2EtEIpX08Y9t5D8JDVvr irctGkkeAlzI+IPugdHWrBjWl9h8FWzkiNDZ+zNbSSubZsOB7P9HS+XLTkHw28YHhpU0 GXA26Sex07ozrdIyDhzseBQQpwn4TCDe+TMpz/U6iEIWGwDfZdacc/qyIqWjZ75z7VVI GoUZVaWuvJkiPKR4xs0KQ5DNKEqJDxTfQdJthg3datsopVWc8lu0WnzBLe9aSc/NQ/Ld 1dLg== X-Gm-Message-State: AA6/9Rmd9unq6RALIthz2j1gJvnn6220QCSqiRws76UVhomhyPsncbV3qNhk59N9HM5LIA== X-Received: by 10.25.37.84 with SMTP id l81mr1137781lfl.41.1475583140253; Tue, 04 Oct 2016 05:12:20 -0700 (PDT) Original-Received: from [192.168.199.2] (broadband-95-84-209-126.nationalcablenetworks.ru. [95.84.209.126]) by smtp.gmail.com with ESMTPSA id 78sm663552ljj.4.2016.10.04.05.12.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Oct 2016 05:12:19 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:124033 Archived-At: I've been trying to get rsvg working and here's what I found: First, building xml.o fails: > CC xml.o > In file included from d:/Emacs/source/emacs-25.1/src/conf_post.h:32:0, > from ./config.h:1916, > from d:/Emacs/source/emacs-25.1/src/xml.c:19: > d:/Emacs/source/emacs-25.1/nt/inc/ms-w32.h:149:0: warning: > "_WIN32_WINNT" redefined > # define _WIN32_WINNT 0x0400 > ^ > In file included from c:\mingw\include\w32api.h:59:0, > from c:\mingw\include\_mingw.h:73, > from d:/Emacs/source/emacs-25.1/nt/inc/mingw_time.h:13, > from d:/Emacs/source/emacs-25.1/nt/inc/ms-w32.h:27, > 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: > c:\mingw\include\sdkddkver.h:184:0: note: this is the location of the > previous definition > # define _WIN32_WINNT _WIN32_WINNT_WIN2K > ^ > 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 > ^ > 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:180: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:89:8: note: originally > defined here > struct stat { > ^ > 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:188:8: error: redefinition of 'struct > _stati64' > struct _stati64 __struct_stat_defined( __off64_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:123:8: note: originally > defined here > struct _stati64 { > ^ > In file included from d:/Emacs/source/emacs-25.1/src/xml.c:19:0: > ./config.h:1836:19: error: two or more data types in declaration > specifiers > #define mbstate_t int > ^ > make[1]: *** [xml.o] Error 1 > make[1]: Leaving directory `/d/Emacs/configs/25.1-MinGW-broken2/src' > make: *** [src] Error 2 This code only runs when mbstate_t check fails. Let's look at why it fails: > configure:18162: checking for mbstate_t > configure:18179: gcc -I /d/Emacs/source/emacs-25.1/nt/inc -c -O0 -g3 > -mtune=pentium4 conftest.c >&5 > In file included from c:\mingw\include\wchar.h:212:0, > from conftest.c:133: > 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 conftest.c:105:0: > d:/Emacs/source/emacs-25.1/nt/inc/sys/stat.h:106:8: note: originally > defined here > struct _stat > ^ > In file included from c:\mingw\include\wchar.h:212:0, > from conftest.c:133: > c:\mingw\include\sys/stat.h:180:8: error: redefinition of 'struct stat' > struct stat __struct_stat_defined( _off_t, time_t ); > ^ > In file included from conftest.c:105:0: > d:/Emacs/source/emacs-25.1/nt/inc/sys/stat.h:89:8: note: originally > defined here > struct stat { > ^ > In file included from c:\mingw\include\wchar.h:212:0, > from conftest.c:133: > c:\mingw\include\sys/stat.h:188:8: error: redefinition of 'struct > _stati64' > struct _stati64 __struct_stat_defined( __off64_t, time_t ); > ^ > In file included from conftest.c:105:0: > d:/Emacs/source/emacs-25.1/nt/inc/sys/stat.h:123:8: note: originally > defined here > struct _stati64 { > ^ > configure:18179: $? = 1 Since stat.h is in mingwrt, I decided to check whether older versions work. And sure, mingwrt-3.21.1 works fine. Then, there's a similar situation with glib: > make: *** [install-strip] Error 2 > from > d:/Emacs/MinGW/include/librsvg-2.0/librsvg/rsvg.h:31, > from d:/Emacs/source/emacs-25.1/src/image.c:8997: > d:/Emacs/MinGW/include/glib-2.0/glib/gatomic.h:234:20: error: > redefinition of 'MemoryBarrier' > static inline void MemoryBarrier (void) > ^ > In file included from d:\emacs\mingw\include\windef.h:269:0, > from d:\emacs\mingw\include\windows.h:42, > from d:/Emacs/source/emacs-25.1/src/w32gui.h:21, > from d:/Emacs/source/emacs-25.1/src/dispextern.h:69, > from d:/Emacs/source/emacs-25.1/src/window.h:23, > from d:/Emacs/source/emacs-25.1/src/frame.h:23, > from d:/Emacs/source/emacs-25.1/src/image.c:36: > d:\emacs\mingw\include\winnt.h:4311:25: note: previous definition of > 'MemoryBarrier' was here > static FORCEINLINE void MemoryBarrier (void) Installing w32api-3.17-2-mingw32-dev.tar.lzma helped. -- Best Regards, Nikolay Kudryavtsev