Re: inflateInit?

Daniel Jacobowitz
2008-07-10T16:14:41Z

Redirecting to binutils and Craig; I assume this is his patch from
yesterday.

I'm just guessing, but I bet everything that uses libbfd but not
libtool is going to be broken by this change.

On Thu, Jul 10, 2008 at 11:18:01AM -0400, DJ Delorie wrote:
>
> Two of my simulators (so far) are failing thusly:
>
> gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DWITH_DEFAULT_ALIGNMENT=NONSTRICT_ALIGNMENT -DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31 -DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DDEFAULT_INLINE=0 -DWITH_RESERVED_BITS=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -DDEBUG -I/sata/dj/gnu/gdb/src/sim/v850/../../newlib/libc/sys/sysnecv850 -I. -I/sata/dj/gnu/gdb/src/sim/v850 -I../common -I/sata/dj/gnu/gdb/src/sim/v850/../common -I../../include -I/sata/dj/gnu/gdb/src/sim/v850/../../include -I../../bfd -I/sata/dj/gnu/gdb/src/sim/v850/../../bfd -I../../opcodes -I/sata/dj/gnu/gdb/src/sim/v850/../../opcodes -g -O2 -o run \
> nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lnsl
> ../../bfd/libbfd.a(compress.o): In function `bfd_uncompress_section_contents':
> /sata/dj/gnu/gdb/src/bfd/compress.c:96: undefined reference to `inflateInit_'
> /sata/dj/gnu/gdb/src/bfd/compress.c:103: undefined reference to `inflate'
> /sata/dj/gnu/gdb/src/bfd/compress.c:106: undefined reference to `inflateReset'
> /sata/dj/gnu/gdb/src/bfd/compress.c:108: undefined reference to `inflateEnd'
> collect2: ld returned 1 exit status
> make[3]: *** [run] Error 1
> make[3]: Leaving directory `/sata/dj/gnu/gdb/v850-elf/sim/v850'
>
> Are we partway through adding -lz to everything?
>

--
Daniel Jacobowitz
CodeSourcery