MinGW Build Error: _XOPEN_SOURCE in mxit
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:
> 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  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 .
> 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?
>  https://hg.pidgin.im/pidgin/main/rev/21baa608701d
>  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...
More information about the Devel