pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/squid4 compilation error



Mayuresh <mayuresh%acm.org@localhost> writes:

> This is a snippet from squid4:
>
> #if (SIZEOF_LONG == 8)
>         error("%s| %s: ERROR: Inconsistence message length: %ld!=0\n", LogTime(), PROGRAM, buffer + len - p);
> #else
>         error((char *) "%s| %s: ERROR: Inconsistence message length: %d!=0\n", LogTime(), PROGRAM, buffer + len - p);
> #endif
>
> On evbarm the #else leg is applicable and that yields the error:
>
> support.h:129:38: error: format '%d' expects argument of type 'int', but
> argument 5 has type 'long int' [-Werror=format=] 
>
> I am not sure why one should use %d for long - no matter of size 4 or 8.
>
> Anyway what sort of fix or patch be advisable (such as whether to suppress
> such errors or patch the code etc)?

Ask about this on the squid list.  This seems to be an upstream bug.


Home | Main Index | Thread Index | Old Index