Re: [exim-dev] compilation failure of 4.70 and 4.71 on HP-UX…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: V. T. Mueller, Continum
Dátum:  
Címzett: exim-dev
Tárgy: Re: [exim-dev] compilation failure of 4.70 and 4.71 on HP-UX-11.31
Hello,

Phil Pennock wrote:
> On 2009-11-30 at 15:41 +0100, Marc Beyer wrote:
>> gmake[2]: Entering directory
>> `/var/tmp/eximtest/exim-4.71/build-HP-UX-ia64/pdkim'
>> cc base64.c
>> cc bignum.c
>> "bignum.h", line 58: error #3089: there is no type with the width specified
>>       typedef unsigned int t_dbl __attribute__((mode(TI)));
> There's a GCC-ism in src/pdkim/bignum.h which is not wrapped by a check
> for GCC.


does that mean that AIX/HP-UX/Solaris users with their vendor's
compilers will get stuck on this point?

> Do you know how to get a 128-bit integer on your platform?
> You "just" need to replace that line with a typedef which lets t_dbl be
> a 128-bit int.
> Perhaps int128_t or __int128_t exists, via <stdint.h> ?
> Otherwise, if you can't get a 128 bit int, I think (but am not sure)
> that you need to drop t_int down to 32 bits. I've only glanced over it,
> but it looks like things will just work after that.


As far as I can see there is no 128bit integer in HP-UX 11.31. According 
to stdint.h(5) there is
   intmax_t              largest signed integer data type supported
                                  by implementation
which appears to be set to int64_t which boils down to
   #define INT64_MAX INT64_C(9223372036854775807)


Will it be safe to just change occurences of 128 to 64 in bignum.c
without breakting anything somewhere else?

Regards,
Volker


--
Volker T. Mueller
Continum AG
Bismarckallee 7d
79098 Freiburg i. Br.
Tel. +49 761 21711171
Fax. +49 761 21711198
http://www.continum.net

Sitz der Gesellschaft: Freiburg im Breisgau
Registergericht: Amtsgericht Freiburg, HRB 6866
Vorstand: Rolf Mathis, Volker T. Mueller
Vorsitzender d. Aufsichtsrats: Prof. Dr. Karl-F. Fischbach