bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined reference to `libintl_textdomain'


From: Bruno Haible
Subject: Re: undefined reference to `libintl_textdomain'
Date: Mon, 11 Jan 2021 01:18:51 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

Jeffrey Walton wrote:
> I believe the problem is lack of -lintl at link time:
> 
> /bin/cc -L/home/jwalton/ok2delete/lib64 -Wl,-R,/../lib64
> -Wl,-R,/home/jwalton/ok2delete/lib64 -Wl,--enable-new-dtags
> -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,origin
> -fstack-protector-strong -L/opt/local/lib -o miniperl \
>     opmini.o perlmini.o  gv.o toke.o perly.o pad.o regcomp.o dump.o
> util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o
> sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o
> taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o
> mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o
> miniperlmain.o  -lpthread -ldl -lm -lcrypt -lutil -lc
> /bin/ld: locale.o: in function `S_emulate_setlocale':
> /home/jwalton/Build-Scripts/perl-5.32.0/locale.c:1182: undefined
> reference to `libintl_textdomain'

Yes, I agree. In your situation this link command line should also
include -lintl.

Probably you encounter this because you are using --with-included-gettext
on a glibc system, which is unusual.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]