MinGW Build Error: _XOPEN_SOURCE in mxit

Jorge Villaseñor salinasv at gmail.com
Wed Mar 25 00:25:17 EDT 2015

On Mon, Mar 2, 2015 at 2:57 PM, Diego Nieto Cid <dnietoc at gmail.com> wrote:

> Hi
> I'm working on a plugin (pidgin-gntp) for windows and I followed the
> instructions listed in the BuildingWinPidgin wiki page.
> However, when installing MinGW I used their setup tool which downloaded
> the latest GCC package, version 4.8.1.
> During the compilation of libpurple/protocols/mxit/profile.c, I am getting
> an error related to the preprocessor macro _XOPEN_SOURCE.
> Apparently, MinGW header files expect it, if defined, to be a number and
> the macro is used in comparisons, as it is showed in the build log below.
> Revision 21baa608701d [1] introduced the definition of _XOPEN_SOURCE in
> the profile.c compilation unit. However, it is defined as an empty value
> leading to errors in system headers.
> There are several conformance levels that can be requested by defining
> _XOPEN_SOURCE, as described in the relevant man page [2].
> As a quick fix, I'm going to define it to the lowest level. But I wanted
> to check with you what was intended by defining that macro.
> If it is not clear what was intended, anybody knows what MinGW assumed in
> prior versions?
> Thanks!
> --
> [1] https://hg.pidgin.im/pidgin/main/rev/21baa608701d
> [2] http://man.he.net/man7/feature_test_macros
This looks like a mxit change. I am not sure they Andrew monitors this
mailing list. I think you may have better luck if you address the mxit
development forums or him directly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20150324/02b88a88/attachment-0001.html>

More information about the Devel mailing list