This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
implicit declaration of function `compressBound'
- From: kamaraju kusumanchi <raju dot mailinglists at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 14 Feb 2011 12:36:56 -0500
- Subject: implicit declaration of function `compressBound'
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 `<munge1>/compileHere/binutils_2.21/bfd/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `<munge1>/compileHere/binutils_2.21/bfd/po'
make[4]: Entering directory `<munge1>/compileHere/binutils_2.21/bfd'
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I<munge1>/unZipped/binutils-2.21/bfd -I.
-I<munge1>/unZipped/binutils-2.21/bfd
-I<munge1>/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='"<munge1>/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
<munge1>/unZipped/binutils-2.21/bfd/compress.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-I<munge1>/unZipped/binutils-2.21/bfd -I.
-I<munge1>/unZipped/binutils-2.21/bfd
-I<munge1>/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=\"<munge1>/myroot/binutils_2.21/bin\" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT
compress.lo -MD -MP -MF .deps/compress.Tpo -c
<munge1>/unZipped/binutils-2.21/bfd/compress.c -o compress.o
<munge1>/unZipped/binutils-2.21/bfd/compress.c: In function
`bfd_compress_section_contents':
<munge1>/unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit
declaration of function `compressBound'
make[4]: *** [compress.lo] Error 1
make[4]: Leaving directory `<munge1>/compileHere/binutils_2.21/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `<munge1>/compileHere/binutils_2.21/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `<munge1>/compileHere/binutils_2.21/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `<munge1>/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/