Current-Users archive

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

Re: "lint" brokenness



On Wed, 27 Aug 2008 12:26:07 +0100
Matthias Scheler <tron%zhadum.org.uk@localhost> wrote:

> 
>       Hello,
> 
> "lint" complains about "src/common/lib/libprop/prop_data.c" when I try
> to build NetBSD/amd64:
> 
> /src/NetBSD-current/src/common/lib/libprop/prop_data.c(569): warning: integer 
> constant out of range [252]
> *** [prop_data.ln] Error code 1
> 1 error
> 
> I can however not see the problem:
> 
>               if (len == ULONG_MAX && errno == ERANGE)
>                       return (true);
> 
> "len" is a "size_t" and "ULONG_MAX" should be in its range. "SIZE_T_MAX"
> is actually defined to be "ULONG_MAX".
> 
> Why is lint complaining?

This is due to bug lib/39399. You need build&install libc manually with
MKLINT=no first, for build.sh to work again.

-Tobias


Home | Main Index | Thread Index | Old Index