This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Solaris 10/11 64-bit compile?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]