This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Patch for _libintl_dgettext compile failure
Roman.Rycerz@us.contiautomotive.com wrote:
> Hi...
>
> I'm new to this group... and have tried to compile GDB 6.6 under cygwin
>
> and I get to
>
> make[3]: Entering directory `/tmp/build/gdb/sim/ppc'
> gcc -g -O2 -o psim.exe main.o libsim.a ../../bfd/libbfd.a
> ../../libiberty/lib
> iberty.a
> ../../bfd/libbfd.a(bfd.o)(.text+0x383): In function `bfd_errmsg':
> /src/insight-6.6/bfd/bfd.c:397: undefined reference to
`_libintl_dgettext'
> ../../bfd/libbfd.a(bfd.o)(.text+0x3c3):/src/insight-6.6/bfd/bfd.c:383:
> undefined
> reference to `_libintl_dgettext'
> ../../bfd/libbfd.a(bfd.o)(.text+0xa16): In function `bfd_assert':
> /src/insight-6.6/bfd/bfd.c:828: undefined reference to
`_libintl_dgettext'
> ../../bfd/libbfd.a(bfd.o)(.text+0xafc): In function `_bfd_abort':
> /src/insight-6.6/bfd/bfd.c:839: undefined reference to
`_libintl_dgettext'
> ../../bfd/libbfd.a(bfd.o)(.text+0xb2d):/src/insight-6.6/bfd/bfd.c:846:
> undefined
> reference to `_libintl_dgettext'
>
../../bfd/libbfd.a(bfd.o)(.text+0xb56):/src/insight-6.6/bfd/bfd.c:843: more
> unde
> fined references to `_libintl_dgettext' follow
> collect2: ld returned 1 exit status
>
>
> does anyone know of a patch and where it might be located ????
>
> thanks in advance
>
> Roman F. Rycerz
>
> Continental Automotive Systems
> 21440 W Lake Cook Road
> Deer Park, IL 60010
> email: Roman.Rycerz@us.contiautomotive.com
> www.contiautomotive.com
>
Hi Roman,
It compiles nicely if you add the --disable-nls switch when you run the
configure script for GDB.
./configure --disable-nls
If you use crosstools scripts then you should add the --disable-nls
switch to gdb.sh file to the line where configure is run.
The --disable-nls switch disables the localization.
Have a nice day,
Claus