Mail archive
alpine-devel

Re: [alpine-devel] Missing 64-bit support in jsoncpp-dev build

From: A. Wilcox <awilfox_at_adelielinux.org>
Date: Sat, 24 Feb 2018 13:26:00 -0600

On 02/24/18 12:41, Andrew Bell wrote:
> Checking the contents of the library for 64 bit Json::Values, I see that
> 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 = 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

-- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org




---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sat Feb 24 2018 - 13:26:00 GMT