This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: 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


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