Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 48EB0200C46 for ; Wed, 29 Mar 2017 23:18:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4744A160B8A; Wed, 29 Mar 2017 21:18:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8C3D8160B5D for ; Wed, 29 Mar 2017 23:18:19 +0200 (CEST) Received: (qmail 82290 invoked by uid 500); 29 Mar 2017 21:18:18 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 82279 invoked by uid 99); 29 Mar 2017 21:18:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2017 21:18:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F00791889E9 for ; Wed, 29 Mar 2017 21:18:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.721 X-Spam-Level: X-Spam-Status: No, score=-0.721 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TB48a5cs47sc for ; Wed, 29 Mar 2017 21:18:16 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 595C85F613 for ; Wed, 29 Mar 2017 21:18:16 +0000 (UTC) Received: from tenfore.site ([217.186.9.46]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lee2I-1cLuqO39iA-00qNrn; Wed, 29 Mar 2017 23:18:14 +0200 From: Ruediger Meier To: pylucene-dev@lucene.apache.org Subject: Re: [VOTE] Release PyLucene 6.5.0 (rc1) (now with Python 3 support) Date: Wed, 29 Mar 2017 23:18:13 +0200 User-Agent: KMail/1.9.10 Cc: Petrus =?utf-8?q?Hyv=C3=B6nen?= References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201703292318.14098.sweet_f_a@gmx.de> X-Provags-ID: V03:K0:L4kqZGEpesSsX+rs80kPt13S44kDkPzcBCJhu2nFpPx+bRF5Awl 6F2T4nEPfHjFygJTA4QoU6UPmk0gDAsAd8zy0YJWXOB4l7pNFkxbq4rRFq4JskJpSnOQPdE mCV8rHPCNoLTUaKevtV10e+YjZECpXSRDRG75p8q8Yl2Xv2e/p0QFCk+aWNfS7qICa8uWUM 0Ik9udI3ETjN5dXUlNgSg== X-UI-Out-Filterresults: notjunk:1;V01:K0:yQginTqFt2U=:PKd+D68KbTiyjJ+8gfjZCs 1CKyBVfQhq4fyOb5WxbsVs41/7dAonl22Fn0Z8uoCj2pLUldXrMLCF/kXr1p49rKtnwFuKuha 55/qYWgf1GPixfSXlYA690bGwzDsYLFg8wwD1ydnbmz5KYIPbgtMZVXAdDvDcmRjq0V8BqIyG StFSlBfgMJi2S/ZM9lZ+1kFHb5CtkLXTxhKbC+kbMLs8BSxo3W5aoqrytKrNwotOq3dDj8PVx TaAy6oIr3UMMsXkb6p/KRyT5jArCxRrM+eUh4VJwnBDbRz5As9JdV2uzoEeY1I4wYCYJLzLaG cge88I27kUg2QsMEeb/ZRaq/KItctc1kd1bCLRMuf2gUvNyWL4nMcBSE3hs91IZQwWZponWY/ q/KKl7LeI0oBJFBXSedluB/fFHuWJs5IK0fRT/6ahWYdcfFvyMX15miOaCFZZvbWBM1W+6qM0 ltAB7YplnsIUCIjnwxgOTiF25tpDUxrPospgUNd0zaCE6+OCz94hGxBexDnbCT4nuFtztg9c/ 3pp/zd12HRvAa4KWjOdPl2k0V07DDee+SJbryaYYRq2xP+lAR/4OfK7DuCUwfBsyAv5ej/nzN EHRreGNJB3/67ezMs/YxrGJU3+tEGb+5A2ahIzuy9eZ6CAKn3jQK1+CYrq3Vt+KJG8I1Plrh8 v9iMl8qnhi6asj1sjANcXB1U+eCFNbKlGph63mrTNWfLTn0ylxw+UfTLzBPe3ATVo2Uha+8Qh +wumvUQ3EywAppbQwI6DTSUO1fsmoOmOoyCi0+4Z0qCIp39FY+n+R1VNm94= archived-at: Wed, 29 Mar 2017 21:18:20 -0000 On Wednesday 29 March 2017, Petrus Hyv=C3=B6nen wrote: > Hi, > > Yes, there are windows users :) > > I've ran a quick test, it builds fine on python 2.7 but I'm getting > some linker error under python 3.6 and 3.5 (didn't try lower). > > The linker error states: > > jcc3/sources/jcc.cpp(202): error C3688: invalid literal suffix > 'PRIxMAX'; literal operator or literal operator template > 'operator ""PRIxMAX' not found > jcc3/sources/jcc.cpp(202): error C2664: 'int sprintf(char *const > ,const char *const ,...)': cannot convert argument 2 fr > om 'int' to 'const char *const ' > jcc3/sources/jcc.cpp(202): note: Conversion from integral type to > pointer type requires reinterpret_cast, C-style cast o > r function-style cast > error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio > 14.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2 > > the jcc.cpp code is: > static PyObject *t_jccenv_strhash(PyObject *self, PyObject *arg) > { > static const size_t hexdig =3D sizeof(uintmax_t) * 2; > uintmax_t hash =3D (uintmax_t) PyObject_Hash(arg); > char buffer[hexdig + 1]; > > sprintf(buffer, "%0*"PRIxMAX, (int) hexdig, hash); > return PyUnicode_FromStringAndSize(buffer, hexdig); > } > > I don't understand the PRIxMAX stuff there, what does it mean? Could you try to change=20 sprintf(buffer, "%0*"PRIxMAX, (int) hexdig, hash); to sprintf(buffer, "%0*%jx", (int) hexdig, hash); or if it still not works sprintf(buffer, "%0*%llx", (int) hexdig, (unsigned long long)hash); cu, Rudi