This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libiconv for windres


> > 2007-06-05  Kai Tietz  <Kai.Tietz@onevision.com>
> >
> >         * binutils/Makefile.am: Add LIBICONV to windres.
> >         * binutils/acinclude.m4: Added missing "lib-*.m4" and
> >         "lt*.m4" files.
> >         * binutils/configure.in: Add AC_CHECK_HEADER for
> >         iconv.h and use AM_ICONV.
> >         * binutils/config.in: Add ICONV defines.
> >         * binutils/aclocal: Regenerate.
> >         * binutils/confugure: Likewise.
>
> Applied (with a few formatting tidy ups).

This has broken arm-eabi and x86_64-linux for me (I haven't checked
other targets). 

It looks like libbfd and libiberty are linked in the wrong order.
Build fails with:

make[4]: Entering directory `/home/paul/arm/binutils/obj-eabi/binutils'
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes \
-Wmissing-prototypes -Werror -g -O2   -o size  size.o bucomm.o version.o \
filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror \
-g -O2 -o size size.o bucomm.o version.o filemode.o ../libiberty/libiberty.a  \
../bfd/.libs/libbfd.a

../bfd/.libs/libbfd.a(archive.o): In function `_bfd_add_bfd_to_archive_cache':
/home/paul/arm/binutils/obj-eabi/bfd/../../src/bfd/archive.c:324: undefined
reference to `htab_find_slot'
[lots of other undefined libibiberty symbols]

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]