Re: [exim-dev] 64b build probs

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Fabian Groffen
Dátum:  
Címzett: exim-dev
Tárgy: Re: [exim-dev] 64b build probs
On 11-11-2012 21:57:02 +0000, Jeremy Harris wrote:
> Doing an rpmbuild on an SL6 system, warnings:
>
> expand.c:3396: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘long long int’
> expand.c:3396: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘long long int’
>
> As far as I can see, the compile (gcc) line has "-m64" which should
> specify an LP64 model. So the format code expanding as %ld is
> correct but the types for LLONG_M{AX,IN} must be expanding
> to "long long int" and are not.


No, it must be expanding to "long int", but it is expanding to
"long long int", which is a type mismatch, exactly as the compiler says.

(Remember, a long (int) basically is an ssize_t.)


Fabian

--
Fabian Groffen
Gentoo on a different level