Solaris 10/11 64-bit compile?
nick clifton
nickc@redhat.com
Fri Aug 23 10:59:00 GMT 2013
Hi Amos,
> I thought I'd try to compile 64-bit a recent snapshot of binutils on
> Solaris 10 and 11 (on SPARC.) I encounter the following:
> cache.c: In function 'bfd_cache_max_open':
> cache.c:85:21: error: comparison between signed and unsigned integer
> expressions [-Werror=sign-compare]
> && rlim.rlim_cur != RLIM_INFINITY)
I think that this must be a bug in the Solaris system header file that
defines RLIM_INFINITY. It really ought to be defined as a value that is
compatible with the fields in the rlimit structure.
You could try to work around the problem by adding a cast:
&& rlim.rlim_cur != (rlim_t) RLIM_INFINITY)
Cheers
Nick
More information about the Binutils
mailing list