[Top][All Lists]

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

undefined reference to `libintl_textdomain'

From: Jeffrey Walton
Subject: undefined reference to `libintl_textdomain'
Date: Sun, 10 Jan 2021 17:58:19 -0500

Hi Everyone,

Forgive my ignorance. I'm trying to build Perl and it is puking with:

    perl-5.32.0/locale.c:1182: undefined reference to `libintl_textdomain'

locale.c is located at
https://github.com/Perl/perl5/blob/blead/locale.c. It includes

I see the FAQ has an entry for libintl_gettext
but I don't see one for libintl_textdomain.

Are these the same or similar errors? Or is libintl_textdomain different?

I think they may be similar. 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'

Thanks in advance.


reply via email to

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