[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined reference to `libintl_gettext'
From: |
Jeremy C. Reed |
Subject: |
undefined reference to `libintl_gettext' |
Date: |
Fri, 21 Feb 2003 19:58:58 -0800 (PST) |
I am building binutils-2.13.2.1 (and also 2.11.2). It fails with:
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd
-I./../bfd -I./../include -I./../intl -I../intl
-DLOCALEDIR=\"/usr/share/locale\"
-Dbin_dummy_emulation=bin_vanilla_emulation
-I/usr/pkgsrc/devel/binutils/work/.buildlink/include -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -O2
-I/usr/pkgsrc/devel/binutils/work/.buildlink/include -c size.c
...
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -O2 -I/usr/include -o size size.o bucomm.o version.o
filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
/usr/bin/gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2
-I/usr/pkgsrc/devel/binutils/work/.buildlink/include -o size size.o
bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a
../libiberty/libiberty.a
size.o: In function `usage':
size.o(.text+0x19): undefined reference to `libintl_gettext'
size.o(.text+0x2e): undefined reference to `libintl_gettext'
size.o(.text+0x43): undefined reference to `libintl_gettext'
size.o(.text+0x5f): undefined reference to `libintl_gettext'
size.o(.text+0x8e): undefined reference to `libintl_gettext'
size.o: In function `main':
size.o(.text+0xe0): undefined reference to `libintl_bindtextdomain'
...
../bfd/.libs/libbfd.a(archive.o): In function
`_bfd_write_archive_contents':
archive.o(.text+0x18a8): undefined reference to `libintl_dgettext'
(I also had same problem when building gcc 3.2.1 even with
--with-included-gettext.)
My system:
gcc (GCC) 3.2.1
GNU ld version 2.13.2.1
gettext-0.11.5
libiconv-1.8
glibc 2.2.5
Linux 2.2.20
I have read in archives about this problem and the suggestions to use
--disable-nls.
I don't see this documented in binutils/README. I do see that it disables
NLS. Why is that the suggested work-around (instead of having it
autodetect or link properly)?
I can provide the build logs and build files.
Building with --disable-nls was successful. I use NLS, I assume that I
need NLS with binutils too. Any comments?
Thanks,
Jeremy C. Reed
http://www.bsdnewsletter.com/
- undefined reference to `libintl_gettext',
Jeremy C. Reed <=