This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap broken because of missing intl routines
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: "Zack Weinberg" <zack at codesourcery dot com>
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 Jul 2003 19:30:22 -0400
- Subject: Re: Bootstrap broken because of missing intl routines
>>>>> Zack Weinberg writes:
>> ld: 0711-317 ERROR: Undefined symbol: .iconv_open
>> ld: 0711-317 ERROR: Undefined symbol: .iconv_close
>> ld: 0711-317 ERROR: Undefined symbol: .iconv
Zack> This is likely to be the charset patch, not the NLS patch. Could you
Zack> please determine which object file contains the references to the
Zack> missing symbols? Also, the complete text of gcc/config.log would be
Zack> useful.
BTW, with NLS enabled, the GCC bootstrap breaks even earlier on
AIX:
gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prot
otypes -pedantic -Wno-long-long -fno-common -DHAVE_CONFIG_H -o
Tcollect2 \
collect2.o tlink.o intl.o version.o ./../intl/libintl.a
../libiberty/libiberty.a -lld
ld: 0711-317 ERROR: Undefined symbol: .iconv_open
ld: 0711-317 ERROR: Undefined symbol: .iconv_close
ld: 0711-317 ERROR: Undefined symbol: .iconv
AIX provides the iconv functions in libiconv.a. configure tests for that
library and uses it to set HAVE_ICONV. LIBICONV is defined in Makefile:
# Character encoding conversion library.
LIBICONV = -liconv
but not used on the link line of all executable referencing those
functions with the intl and cppcharset changes.
David