X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail.wilcox-tech.com (mail.wilcox-tech.com [45.32.83.9]) by lists.alpinelinux.org (Postfix) with ESMTP id B80B25C5CC9 for ; Sat, 24 Feb 2018 19:25:46 +0000 (GMT) Received: (qmail 10045 invoked from network); 24 Feb 2018 19:25:44 -0000 Received: from 107-131-85-28.lightspeed.tulsok.sbcglobal.net (HELO ?192.168.1.237?) (awilcox@wilcox-tech.com@107.131.85.28) by mail.wilcox-tech.com with ESMTPA; 24 Feb 2018 19:25:44 -0000 Subject: Re: [alpine-devel] Missing 64-bit support in jsoncpp-dev build To: alpine-devel@lists.alpinelinux.org References: From: "A. Wilcox" Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <5b36c79e-dfd2-898b-e2cb-304448f4ecae@adelielinux.org> Date: Sat, 24 Feb 2018 13:26:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vMGs8U9Pv0ETN6F6l8vjX0LrBOVFQFLs2" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vMGs8U9Pv0ETN6F6l8vjX0LrBOVFQFLs2 Content-Type: multipart/mixed; boundary="O9lvW4W2LsPfhLTjEEW6QrBsqJ3llvawN"; protected-headers="v1" From: "A. Wilcox" To: alpine-devel@lists.alpinelinux.org Message-ID: <5b36c79e-dfd2-898b-e2cb-304448f4ecae@adelielinux.org> Subject: Re: [alpine-devel] Missing 64-bit support in jsoncpp-dev build References: In-Reply-To: --O9lvW4W2LsPfhLTjEEW6QrBsqJ3llvawN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/24/18 12:41, Andrew Bell wrote: > Checking the contents of the library for 64 bit Json::Values, I see tha= t > they're missing (no long long, unsinged long long) There appear to be multiple problems with this statement: - 'long long' is a C99 data type, and is not supported in C++ pre-C++11 - sizeof(unsigned long) on at least x86_64 and ppc64 =3D 8 bytes (64 bits= ) > 100: 00000000000189fa 31 FUNC GLOBAL DEFAULT 10 > Json::Value::Value(long) > 102: 0000000000018a1a 31 FUNC GLOBAL DEFAULT 10 > Json::Value::Value(unsigned long) This therefore provides for 64-bit values. Do you have a reason why you think it needs to be 'long long'? Is there some code you have that tries to use 'long long' with jsoncpp and it doesn't compile now? If you're using GCC, which adds 'long long' as a GNU C++ extension, I would think it would more than likely realise it is the same size and alias it to 'long' (but possibly not). Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux http://adelielinux.org --O9lvW4W2LsPfhLTjEEW6QrBsqJ3llvawN-- --vMGs8U9Pv0ETN6F6l8vjX0LrBOVFQFLs2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJMBAEBCAA2FiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAlqRvEgYHGF3aWxmb3hA YWRlbGllbGludXgub3JnAAoJEMspy1GSK50UGkkP/iT3RYwKcCQ4rZOBOPe1WSui +JIeNOOjfbSsw0Nwoj6tq+xf9AUuTYBLxg/bSRRRL6ZjLCRUg8gs2JuSFbSMmBPY YxiI7OMySLH4LsZLyYyWJgXsTWLUr1XDLQYm45LBO5Xou5AqfjQLMNAQDUsalU8X mX55SNjos5uk7Z5NATJn4TaY3mSZIneT/RwFxEzIVlE7XzleUYka7bC7ctMlohZg KUAYcdJ0NrsO0GUI7fI7lODKk4ogFHz48eATykjLwba6HF46tW8RBlc7/aglaSvP tOdLcm+NtTWt585PKRgpljAI+G6zp8Fx29pW+NaEor4+RCGjBFFMKUtvX7iIY7aA LFljiL24V4/MMZuo2yK4iYEJWEm/nHxogic40T/CfVWkgj4lsrdhU6OOoiNrppAa +Xt79QExzn97pyOBybk8OVUtQS+UKhIWTEBAw58hupTngYRuZWEeMWfo3oym7W2B ttEDd67pzL+ksRZUG/HdFDmhYobYKPigUl/WF80gJK0gZdBf8XTOTVcAsCwZTGRt 1fqmfC9EDWE03vlyuDT5cGDPfpPmS73tRcM95GICSNeaGYXP0rdFUtIxoAhDW/jX P9xMii3+Oagq0bMPSCdzLQyK+Me5gLJHTE57+2zRA2vxQmW/YeHtXv9vw+knTCe0 quj+XkKh4KIBMBFWmR34 =dDLt -----END PGP SIGNATURE----- --vMGs8U9Pv0ETN6F6l8vjX0LrBOVFQFLs2-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---