public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* implicit declaration of function `compressBound'
@ 2011-02-14 17:37 kamaraju kusumanchi
  2011-02-14 23:05 ` Alan Modra
  0 siblings, 1 reply; 5+ messages in thread
From: kamaraju kusumanchi @ 2011-02-14 17:37 UTC (permalink / raw)
  To: binutils

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: implicit declaration of function `compressBound'
  2011-02-14 17:37 implicit declaration of function `compressBound' kamaraju kusumanchi
@ 2011-02-14 23:05 ` Alan Modra
  2011-02-15  3:54   ` kamaraju kusumanchi
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Modra @ 2011-02-14 23:05 UTC (permalink / raw)
  To: kamaraju kusumanchi; +Cc: binutils

On Mon, Feb 14, 2011 at 12:36:56PM -0500, kamaraju kusumanchi wrote:
> <munge1>/unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit
> declaration of function `compressBound'

This ought to be defined in your system zlib.h

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: implicit declaration of function `compressBound'
  2011-02-14 23:05 ` Alan Modra
@ 2011-02-15  3:54   ` kamaraju kusumanchi
  2011-02-15  3:55     ` kamaraju kusumanchi
  0 siblings, 1 reply; 5+ messages in thread
From: kamaraju kusumanchi @ 2011-02-15  3:54 UTC (permalink / raw)
  To: binutils

On Mon, Feb 14, 2011 at 6:04 PM, Alan Modra <amodra@gmail.com> wrote:
> On Mon, Feb 14, 2011 at 12:36:56PM -0500, kamaraju kusumanchi wrote:
>> <munge1>/unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit
>> declaration of function `compressBound'
>
> This ought to be defined in your system zlib.h
>

When I did

$ grep compressbound /usr/include/zlib.h

there are no hits. Where does the zlib.h usually reside on Sun Solaris
2.10? FWIW, binutils 2.20 compiled just fine.

thanks
raju
--
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: implicit declaration of function `compressBound'
  2011-02-15  3:54   ` kamaraju kusumanchi
@ 2011-02-15  3:55     ` kamaraju kusumanchi
  2011-02-15  7:44       ` Alan Modra
  0 siblings, 1 reply; 5+ messages in thread
From: kamaraju kusumanchi @ 2011-02-15  3:55 UTC (permalink / raw)
  To: binutils

On Mon, Feb 14, 2011 at 10:53 PM, kamaraju kusumanchi
<raju.mailinglists@gmail.com> wrote:
> On Mon, Feb 14, 2011 at 6:04 PM, Alan Modra <amodra@gmail.com> wrote:
>> On Mon, Feb 14, 2011 at 12:36:56PM -0500, kamaraju kusumanchi wrote:
>>> <munge1>/unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit
>>> declaration of function `compressBound'
>>
>> This ought to be defined in your system zlib.h
>>
>
> When I did
>
> $ grep compressbound /usr/include/zlib.h
>
> there are no hits. Where does the zlib.h usually reside on Sun Solaris
> 2.10? FWIW, binutils 2.20 compiled just fine.
>

same with grep -i as well.

raju

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: implicit declaration of function `compressBound'
  2011-02-15  3:55     ` kamaraju kusumanchi
@ 2011-02-15  7:44       ` Alan Modra
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Modra @ 2011-02-15  7:44 UTC (permalink / raw)
  To: kamaraju kusumanchi; +Cc: binutils

On Mon, Feb 14, 2011 at 10:54:41PM -0500, kamaraju kusumanchi wrote:
> On Mon, Feb 14, 2011 at 10:53 PM, kamaraju kusumanchi
> <raju.mailinglists@gmail.com> wrote:
> > On Mon, Feb 14, 2011 at 6:04 PM, Alan Modra <amodra@gmail.com> wrote:
> >> On Mon, Feb 14, 2011 at 12:36:56PM -0500, kamaraju kusumanchi wrote:
> >>> <munge1>/unZipped/binutils-2.21/bfd/compress.c:100: warning: implicit
> >>> declaration of function `compressBound'
> >>
> >> This ought to be defined in your system zlib.h
> >>
> >
> > When I did
> >
> > $ grep compressbound /usr/include/zlib.h
> >
> > there are no hits. Where does the zlib.h usually reside on Sun Solaris
> > 2.10? FWIW, binutils 2.20 compiled just fine.
> >
> 
> same with grep -i as well.

I guess your zlib is too old.  The ChangeLog on http://zlib.net says
compressBound was added in 1.2.0.  You can get a newer zlib from that
site.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-15  7:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 17:37 implicit declaration of function `compressBound' kamaraju kusumanchi
2011-02-14 23:05 ` Alan Modra
2011-02-15  3:54   ` kamaraju kusumanchi
2011-02-15  3:55     ` kamaraju kusumanchi
2011-02-15  7:44       ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).