Bug 12263 - Compiling bfd/compress.c fails on Solaris 8 with included zlib.h
Summary: Compiling bfd/compress.c fails on Solaris 8 with included zlib.h
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 18:33 UTC by Rainer Orth
Modified: 2010-11-29 15:14 UTC (History)
1 user (show)

See Also:
Host: *-*-solaris2.8
Target: *-*-solaris2.8
Build: *-*-solaris2.8
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2010-11-24 18:33:03 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
_contents':
/vol/src/gnu/binutils/binutils/bfd/compress.c:100: error: implicit declaration o
f function 'compressBound'
make[4]: *** [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.
Comment 1 H.J. Lu 2010-11-29 15:14:36 UTC
Or we can include zlib in binutils soucre tree.