undefined reference to `libintl_bindtextdomain'

Jeremy C. Reed reed@reedmedia.net
Tue Feb 25 16:34:00 GMT 2003


I orginally posted to gcc-help last week, but didn't receive any feedback.
I now have more info too.

Building gcc 3.2.1 and 3.2.2, I receive errors like:

gcc-3.2.1/gcc/g++ -shared-libgcc
-B/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/gcc/ -nostdinc++
-B/usr/gcc-3.2.1/i386-pc-linux/bin/ -B/usr/gcc-3.2.1/i386-pc-linux/lib/
-isystem /usr/gcc-3.2.1/i386-pc-linux/include -g -O2 -D_GNU_SOURCE -o
abi_check abi_check.o -L/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/
i386-pc-linux/libstdc++-v3/src
-L/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/i386-pc-linux/libstdc++-v3/src/.libs -lm
/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/i386-pc-linux/libstdc++-v3/src/.libs/libstd
c++.so: undefined reference to `libintl_bindtextdomain'
/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/i386-pc-linux/libstdc++-v3/src/.libs/libstd
c++.so: undefined reference to `libintl_gettext'
/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/i386-pc-linux/libstdc++-v3/src/.libs/libstd
c++.so: undefined reference to `libintl_textdomain'
collect2: ld returned 1 exit status


In gcc archives I see that others have similar issues.

I also had similar issues with building binutils-2.13.2.1 (and also
2.11.2):
 size.o(.text+0x19): undefined reference to `libintl_gettext'
I was able build bintuils with --disable-nls. But I don't want too.

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 tried with (building 3.2.1) and without --with-included-gettext.

I tried with (building 3.2.1) and without --disable-nls. But still no
completed build.

I want NLS.

Any suggestions for having it autodetect or link properly?

I can provide the build logs and build files.

Thanks,

   Jeremy C. Reed

   http://www.isp-faq.com/



More information about the Gcc-bugs mailing list