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.
Or we can include zlib in binutils soucre tree.
Is this still a problem? I see zlib in the binutils source tree now.
> --- Comment #2 from Tom Tromey <tromey at sourceware dot org> --- > Is this still a problem? > I see zlib in the binutils source tree now. I happen to have a Solaris 8/x86 VM around and gave building binutils 2.41 with gcc 4.7 (the last supported version) a try. However, that already fails compiling bfd/doc/chew.c: /vol/src/gnu/binutils/binutils-2.41/bfd/doc/chew.c: In function 'print': /vol/src/gnu/binutils/binutils-2.41/bfd/doc/chew.c:1464:60: error: expected ')' before 'PRIdPTR' TBH, Solaris 8 and 9 are such ancient history by now that I wouldn't bother with either of them. They have been obsoleted in GCC and GDB for years, and even GCC 10 is considered obsolete there. As such, I'd just close this as WONTFIX (if it even is an issue any longer).