Error creating binutils 2.21.1a on Solaris

I am trying to build binutils 2.21.1a from http://ftp.gnu.org/gnu/binutils on Solaris sun4u sparc SunOS 5.10. I am using gcc version 4.0.2. When I built this error:

cc1: warnings being treated as errors compress.c: In function 'bfd_compress_section_contents': compress.c:100: warning: implicit declaration of function 'compressBound' make[2]: *** [compress.lo] Error 1 make[2]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd' *** Error code 2 make: Fatal error: Command failed for target `all' 

I added the line --disable-werror to the configuration line to try to get around it and hopefully continue building. Unfortunately, this did not work either, and I got this new error-related link time:

 Undefined first referenced symbol in file compressBound ../bfd/.libs/libbfd.a(compress.o) ld: fatal: Symbol referencing errors. No output written to size collect2: ld returned 1 exit status 

I searched for an existing problem but found nothing. Any ideas? I prefer to use this version of binutils, but if you know a version that builds OK on this platform with gcc 4.0.2, please let me know.

+4
source share
1 answer

I finally found that the problem was indeed presented as BUG . The workaround is to add --without-zlib to the script configuration or install the latest zlib on the system.

+6
source

All Articles