unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Cc: 24613@debbugs.gnu.org
Subject: bug#24613: Windows build with rsvg fails on newest MinGW
Date: Tue, 04 Oct 2016 17:10:46 +0300	[thread overview]
Message-ID: <83shscmcgp.fsf@gnu.org> (raw)
In-Reply-To: <60bdc990-2296-0c76-ec5b-ca2707f544db@gmail.com> (message from Nikolay Kudryavtsev on Tue, 4 Oct 2016 15:12:07 +0300)

> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> 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.





  reply	other threads:[~2016-10-04 14:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 12:12 bug#24613: Windows build with rsvg fails on newest MinGW Nikolay Kudryavtsev
2016-10-04 14:10 ` Eli Zaretskii [this message]
2016-10-04 14:58   ` Nikolay Kudryavtsev
2016-10-04 15:33     ` Eli Zaretskii
2016-10-06 15:13       ` Eli Zaretskii
     [not found]         ` <c7ee0766-22b4-a448-496d-4f0a9feba819@gmail.com>
2016-10-07 12:39           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83shscmcgp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24613@debbugs.gnu.org \
    --cc=nikolay.kudryavtsev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).