Solaris sun4u sparc SunOS 5.10에서 http://ftp.gnu.org/gnu/binutils에서 binutils 2.21.1a를 빌드하려고합니다. gcc 버전 4.0.2를 사용하고 있습니다. 내가 만든 때이 오류입니다 :Solaris에서 binutils 2.21.1a를 빌드하는 중 오류가 발생했습니다.
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'
내가 그것을 무시하려고 희망 빌드를 계속 구성 라인에 --disable-werror
을 추가했습니다. 불행하게도이 중 하나를 작동하지 않았다 나는 링크시 새로운, 관련 오류가 발생했습니다 : 나는 기존의 문제에 대한 수색하지만 난 아무 관련이 발견 한
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
. 어떤 아이디어? 이 버전의 binutils를 사용하는 것을 선호하지만, gcc 4.0.2로이 플랫폼에서 OK 빌드를 알고 있다면 알려 주시기 바랍니다.
'grep compressBound/usr/include/zlib.h '란 무엇입니까? – jlliagre
@jilliagre, 이미 답변을 찾았습니다. 내 대답은 아래를 참조하십시오. 하지만 네, 시스템의 zlib 버전은 binutils에서 필요로하는 것에 비해 너무 오래되었고 자동 구성 스크립트에 적절하게 확인하지 않는 버그가 있습니다. – James