Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40E7510AAF for ; Fri, 23 Jan 2015 20:13:34 +0000 (UTC) Received: (qmail 66050 invoked by uid 500); 23 Jan 2015 20:13:33 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 65998 invoked by uid 500); 23 Jan 2015 20:13:33 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 65983 invoked by uid 99); 23 Jan 2015 20:13:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 20:13:33 +0000 X-ASF-Spam-Status: No, hits=4.5 required=5.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fpjunqueira@yahoo.com designates 216.109.114.190 as permitted sender) Received: from [216.109.114.190] (HELO nm42-vm3.bullet.mail.bf1.yahoo.com) (216.109.114.190) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 20:13:27 +0000 Received: from [66.196.81.173] by nm42.bullet.mail.bf1.yahoo.com with NNFMP; 23 Jan 2015 20:13:05 -0000 Received: from [98.139.211.198] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 23 Jan 2015 20:13:05 -0000 Received: from [127.0.0.1] by smtp207.mail.bf1.yahoo.com with NNFMP; 23 Jan 2015 20:13:05 -0000 X-Yahoo-Newman-Id: 840282.4218.bm@smtp207.mail.bf1.yahoo.com Message-ID: <840282.4218.bm@smtp207.mail.bf1.yahoo.com> X-Yahoo-Newman-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.fl MIME-Version: 1.0 To: From: Flavio Junqueira Subject: RE: Will Zookeeper C source compile with mingw on Windows? Date: Fri, 23 Jan 2015 20:12:57 +0000 In-Reply-To: <1422039290600-7580803.post@n2.nabble.com> References: <1422039290600-7580803.post@n2.nabble.com> Content-Type: multipart/alternative; boundary="_BA9352F5-D941-4234-B561-892881309CBC_" X-Virus-Checked: Checked by ClamAV on apache.org --_BA9352F5-D941-4234-B561-892881309CBC_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" I've only done it with Visual Studio. -Flavio -----Original Message----- From: "esamanas" Sent: =E2=80=8E1/=E2=80=8E23/=E2=80=8E2015 7:00 PM To: "zookeeper-user@hadoop.apache.org" Subject: Will Zookeeper C source compile with mingw on Windows? Hi, As the title states, I'm trying to compile zookeeper (or at least, the stuf= f 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=3Dx86_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 thi= s way is indeed not supported. I tried to search for evidence of this on the internet, and only got this 5 year old thread: http://zookeeper-user.578899.n2.nabble.com/c-client-on-win32-td4039331.html 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, Evan -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/Wi= ll-Zookeeper-C-source-compile-with-mingw-on-Windows-tp7580803.html Sent from the zookeeper-user mailing list archive at Nabble.com. --_BA9352F5-D941-4234-B561-892881309CBC_--