[zeromq-dev] error: ISO C++ 1998 does not support 'long long'

Peter Kleiweg pkleiweg at xs4all.nl
Wed Oct 23 22:41:36 CEST 2013


Pieter Hintjens schreef op de 23e dag van de wijnmaand van het jaar 2013:

> On Wed, Oct 23, 2013 at 6:49 PM, Peter Kleiweg <pkleiweg at xs4all.nl> wrote:
> 
> > In test_stream_to_dealer, some fields are shifted 5 bytes to the
> > right. If I change the test like below, the test passes.
> 
> It's not related to use of libsodium in any way. Could be some code
> that's not properly portable. Could you get a dump of the whole buffer
> received?

Ah, I sent from the wrong e-mail address, the mail didn't get 
through. Again:


Changing the Makefiles alone, removing the option -pedantic, 
does not cause the test to fail. It fails only when it is 
compiled with libsodium.

When it failes, there are five bytes inserted:

position (decimal, counting from 0), byte (octal), byte (printable):
54,000,
55,153,k
56,213, 
57,105,E
58,147,g
  
The complete dump (97 bytes) of a passed test:

000,003,  001,000,  002,116,N 003,125,U 004,114,L 005,114,L 006,000,
007,000,  008,000,  009,000,  010,000,  011,000,  012,000,  013,000,
014,000,  015,000,  016,000,  017,000,  018,000,  019,000,  020,000,
021,000,  022,000,  023,000,  024,000,  025,000,  026,000,  027,000,
028,000,  029,000,  030,000,  031,000,  032,000,  033,000,  034,000,
035,000,  036,000,  037,000,  038,000,  039,000,  040,000,  041,000,
042,000,  043,000,  044,000,  045,000,  046,000,  047,000,  048,000,
049,000,  050,000,  051,000,  052,000,  053,000,  054,004,  055,051,)
056,005,  057,122,R 058,105,E 059,101,A 060,104,D 061,131,Y 062,013,
063,123,S 064,157,o 065,143,c 066,153,k 067,145,e 068,164,t 069,055,-
070,124,T 071,171,y 072,160,p 073,145,e 074,000,  075,000,  076,000,
077,006,  078,104,D 079,105,E 080,101,A 081,114,L 082,105,E 083,122,R
084,010,  085,111,I 086,144,d 087,145,e 088,156,n 089,164,t 090,151,i
091,164,t 092,171,y 093,000,  094,000,  095,000,  096,000,  

The dump of a failed test (102 bytes)

000,003,  001,000,  002,116,N 003,125,U 004,114,L 005,114,L 006,000,
007,000,  008,000,  009,000,  010,000,  011,000,  012,000,  013,000,
014,000,  015,000,  016,000,  017,000,  018,000,  019,000,  020,000,
021,000,  022,000,  023,000,  024,000,  025,000,  026,000,  027,000,
028,000,  029,000,  030,000,  031,000,  032,000,  033,000,  034,000,
035,000,  036,000,  037,000,  038,000,  039,000,  040,000,  041,000,
042,000,  043,000,  044,000,  045,000,  046,000,  047,000,  048,000,
049,000,  050,000,  051,000,  052,000,  053,000,  054,000,  055,153,k
056,213,  057,105,E 058,147,g 059,004,  060,051,) 061,005,  062,122,R
063,105,E 064,101,A 065,104,D 066,131,Y 067,013,  068,123,S 069,157,o
070,143,c 071,153,k 072,145,e 073,164,t 074,055,- 075,124,T 076,171,y
077,160,p 078,145,e 079,000,  080,000,  081,000,  082,006,  083,104,D
084,105,E 085,101,A 086,114,L 087,105,E 088,122,R 089,010,  090,111,I
091,144,d 092,145,e 093,156,n 094,164,t 095,151,i 096,164,t 097,171,y
098,000,  099,000,  100,000,  101,000,  





-- 
Peter Kleiweg
http://pkleiweg.home.xs4all.nl/



More information about the zeromq-dev mailing list