zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <fpjunque...@yahoo.com.INVALID>
Subject RE: Will Zookeeper C source compile with mingw on Windows?
Date Fri, 23 Jan 2015 20:12:57 GMT
I've only done it with Visual Studio.


-----Original Message-----
From: "esamanas" <evan.samanas@gmail.com>
Sent: ‎1/‎23/‎2015 7:00 PM
To: "zookeeper-user@hadoop.apache.org" <zookeeper-user@hadoop.apache.org>
Subject: Will Zookeeper C source compile with mingw on Windows?


As the title states, I'm trying to compile zookeeper (or at least, the stuff
in src/c) with MinGW (mingw-w64, gcc 4.9.2) and MSYS2.

I was able to get configure to complete by adding the flag
--build=x86_64-w64-mingw32, as I can with many other projects.  However,
when I try to compile I get a very large number of errors.  I suspect many
of them actually aren't zookeepers problem, but through them I found that
include/winstdint.h has these lines:

#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

and that include/winconfig.h just automatically includes this file, not
checking for mingw or cygwin or anything.  Through that it seems pretty
obvious that the Windows compile is constrained to using Visual Studio, but
I just want to hear from someone familiar with Zookeeper that compiling this
way is indeed not supported.  I tried to search for evidence of this on the
internet, and only got this 5 year old thread:

So for the benefit of me and the Internet:

Is compiling Zookeeper's C source with mingw (or any other compiler other
than Visual Studio) on Windows supported?

If not, are there fundamental reasons for this?

Thank you,


View this message in context: http://zookeeper-user.578899.n2.nabble.com/Will-Zookeeper-C-source-compile-with-mingw-on-Windows-tp7580803.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message