Sourceware Bugzilla – Bug 12263
Compiling bfd/compress.c fails on Solaris 8 with included zlib.h
Last modified: 2010-11-29 15:14:36 UTC
bfd/compress.c fails to compile on Solaris 8 with the included zlib.h/libz.so.1:
cc1: warnings being treated as errors
/vol/src/gnu/binutils/binutils/bfd/compress.c: In function 'bfd_compress_section
/vol/src/gnu/binutils/binutils/bfd/compress.c:100: error: implicit declaration o
f function 'compressBound'
make: *** [compress.lo] Error 1
The function is neither declared in <zlib.h> nor present in libz.so.1, so the
zlib configure test needs to be adapted to check for this function as well.
For the time being, I've configured with --without-zlib as a workaround.
Or we can include zlib in binutils soucre tree.