Bootstrap broken because of missing intl routines

David Edelsohn dje@watson.ibm.com
Sun Jul 6 00:21:00 GMT 2003


>>>>> 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



More information about the Gcc mailing list