From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9038 invoked by alias); 14 Feb 2011 17:37:24 -0000 Received: (qmail 9030 invoked by uid 22791); 14 Feb 2011 17:37:23 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL,URI_BLOGSPOT X-Spam-Check-By: sourceware.org Received: from mail-gw0-f41.google.com (HELO mail-gw0-f41.google.com) (74.125.83.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Feb 2011 17:37:18 +0000 Received: by gwj22 with SMTP id 22so2435230gwj.0 for ; Mon, 14 Feb 2011 09:37:17 -0800 (PST) Received: by 10.42.227.199 with SMTP id jb7mr5300553icb.286.1297705036761; Mon, 14 Feb 2011 09:37:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.218.10 with HTTP; Mon, 14 Feb 2011 09:36:56 -0800 (PST) From: kamaraju kusumanchi Date: Mon, 14 Feb 2011 17:37:00 -0000 Message-ID: Subject: implicit declaration of function `compressBound' To: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00142.txt.bz2 I am trying to compile binutils 2.21 on Solaris 2.10 using gcc 3.4.3. The compilation fails with the following error Making all in po make[4]: Entering directory `/compileHere/binutils_2.21/bfd/po' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/compileHere/binutils_2.21/bfd/po' make[4]: Entering directory `/compileHere/binutils_2.21/bfd' /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/unZipped/binutils-2.21/bfd -I. -I/unZipped/binutils-2.21/bfd -I/unZipped/binutils-2.21/bfd/../include -DHAVE_bfd_elf32_sparc_sol2_vec -DHAVE_bfd_elf64_sparc_sol2_vec -DHAVE_sunos_big_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR='"/myroot/binutils_2.21/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c -o compress.lo /unZipped/binutils-2.21/bfd/compress.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/unZipped/binutils-2.21/bfd -I. -I/unZipped/binutils-2.21/bfd -I/unZipped/binutils-2.21/bfd/../include -DHAVE_bfd_elf32_sparc_sol2_vec -DHAVE_bfd_elf64_sparc_sol2_vec -DHAVE_sunos_big_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/myroot/binutils_2.21/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c /unZipped/binutils-2.21/bfd/compress.c -o compress.o /unZipped/binutils-2.21/bfd/compress.c: In function `bfd_compress_section_contents': /unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit declaration of function `compressBound' make[4]: *** [compress.lo] Error 1 make[4]: Leaving directory `/compileHere/binutils_2.21/bfd' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/compileHere/binutils_2.21/bfd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/compileHere/binutils_2.21/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/compileHere/binutils_2.21' make: *** [all] Error 2 $ gcc --version gcc (GCC) 3.4.3 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Is it a bug or am I missing something? raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/