This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: implicit declaration of function `compressBound'
On Mon, Feb 14, 2011 at 10:54:41PM -0500, kamaraju kusumanchi wrote:
> On Mon, Feb 14, 2011 at 10:53 PM, kamaraju kusumanchi
> <raju.mailinglists@gmail.com> wrote:
> > On Mon, Feb 14, 2011 at 6:04 PM, Alan Modra <amodra@gmail.com> wrote:
> >> On Mon, Feb 14, 2011 at 12:36:56PM -0500, kamaraju kusumanchi wrote:
> >>> <munge1>/unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit
> >>> declaration of function `compressBound'
> >>
> >> This ought to be defined in your system zlib.h
> >>
> >
> > When I did
> >
> > $ grep compressbound /usr/include/zlib.h
> >
> > there are no hits. Where does the zlib.h usually reside on Sun Solaris
> > 2.10? FWIW, binutils 2.20 compiled just fine.
> >
>
> same with grep -i as well.
I guess your zlib is too old. The ChangeLog on http://zlib.net says
compressBound was added in 1.2.0. You can get a newer zlib from that
site.
--
Alan Modra
Australia Development Lab, IBM