[uClibc] gettext-support-in uClibc

Manuel Novoa III mjn3 at codepoet.org
Tue May 25 06:57:49 UTC 2004


Hello,

On Mon, May 24, 2004 at 10:13:37PM -0700, Linton wrote:
> hi 
> I need to compile an appication that uses gettext
> using uClibc. I have built the uClibc toolchain (gcc
> 3.3.3) with locale support (by putting Locale=true in
> toolchain Makefile). 
> 
> Application is configured as bellow
> 
> configure --with-included-gettext CC=<toolchain
> compiler>
> 
> I am getting the following error, when we try to build
> the application
> 
> undefined reference to `textdomain'
> /elfutils/src/readelf.c:212: undefined reference to
> `dcgettext'
> readelf.o(.text+0x420): In function `more_help':
> undefined reference to `dcgettext'
> readelf.o(.text+0x479): In function `print_version':
> /home/sharad/rpm-4.1.1/elfutils/src/readelf.c:347:
> undefined reference to `dcgettext'
> /elfutils/src/readelf.c:352: undefined reference to
> `dcgettext'
> /elfutils/src/readelf.c:417: more undefined references
> to `dcgettext' follow
> readelf.o(.text+0x1e7b): In function `handle_scngrp':
> undefined reference to `dcngettext'
> /elfutils/src/readelf.c:911: undefined reference to
> `dcgettext'
> readelf.o(.text+0x1f7a):/home/sharad/rpm-4.1.1/elfutils/src/readelf.c:904:
> undefined reference to `dcgettext'
> readelf.o(.text+0x1fd4):/home/sharad/rpm-4.1.1/elfutils/src/readelf.c:904:
> undefined reference to `dcgettext'

uClibc doesn't currently supply a functional gettext implementation.
It is one of the top 2 items on my development todo list, but I haven't
had any significant uClibc development time in the last couple of months.

Right now, you're best bet is to link the app with gnu gettext.  I've done
such before, but that was perhaps 6 months ago.

Manuel



More information about the uClibc mailing list