[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Linker error in libattr 2.4.48 due to libintl
From: |
Jeffrey Walton |
Subject: |
Linker error in libattr 2.4.48 due to libintl |
Date: |
Wed, 18 Nov 2020 21:28:06 -0500 |
Hi Everyone,
I'm building libattr 2.4.48 from sources. Make is failing as shown below.
--with-libiconv-prefix and --with-libintl-prefix to
/home/jwalton/tmp/ok2delete-gettext. I'm testing in conjunction with
gettext, hence the name .../ok2delete-gettext.
I find I need to add -lintl to LIBS to sidestep the problem. But I
think PKG_CONFIG_PATH and --with-libintl-prefix should both handle the
problem.
Jeff
************************************************************
libtool: link: gcc -g2 -O2 -march=native -fPIC -pthread
-fvisibility=hidden -Wl,-R -Wl,\$ORIGIN/../lib -Wl,-R
-Wl,/home/jwalton/tmp/ok2delete-gettext/lib -Wl,--enable-new-dtags
-Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,noexecstack -Wl,-z
-Wl,origin -o .libs/getfattr tools/getfattr.o
-L/home/jwalton/tmp/ok2delete-gettext/lib ./.libs/libattr.so
./.libs/libmisc.a -ldl -lpthread -pthread -Wl,-rpath
-Wl,/home/jwalton/tmp/ok2delete-gettext/lib
tools/getfattr.o: In function `strerror_ea':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:99: undefined
reference to `libintl_gettext'
tools/getfattr.o: In function `print_attribute':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:260:
undefined reference to `libintl_gettext'
tools/getfattr.o: In function `strerror_ea':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:99: undefined
reference to `libintl_gettext'
tools/getfattr.o: In function `help':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:378:
undefined reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:380:
undefined reference to `libintl_gettext'
tools/getfattr.o:/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:380:
more undefined references to `libintl_gettext' follow
tools/getfattr.o: In function `main':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:405:
undefined reference to `libintl_bindtextdomain'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:406:
undefined reference to `libintl_textdomain'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:493:
undefined reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/getfattr.c:479:
undefined reference to `libintl_gettext'
collect2: error: ld returned 1 exit status
Makefile:923: recipe for target 'getfattr' failed
make[1]: *** [getfattr] Error 1
make[1]: *** Waiting for unfinished jobs....
tools/attr.o: In function `usage':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:48: undefined
reference to `libintl_gettext'
tools/attr.o: In function `main':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:73: undefined
reference to `libintl_bindtextdomain'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:74: undefined
reference to `libintl_textdomain'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:248: undefined
reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:184: undefined
reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:207: undefined
reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:140: undefined
reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:95: undefined
reference to `libintl_gettext'
tools/attr.o:/home/jwalton/Build-Scripts/attr-2.4.48/tools/attr.c:202:
more undefined references to `libintl_gettext' follow
collect2: error: ld returned 1 exit status
Makefile:917: recipe for target 'attr' failed
make[1]: *** [attr] Error 1
tools/setfattr.o: In function `help':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:180:
undefined reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:181:
undefined reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:182:
undefined reference to `libintl_gettext'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:183:
undefined reference to `libintl_gettext'
tools/setfattr.o: In function `strerror_ea':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:75: undefined
reference to `libintl_gettext'
tools/setfattr.o:/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:75:
more undefined references to `libintl_gettext' follow
tools/setfattr.o: In function `main':
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:202:
undefined reference to `libintl_bindtextdomain'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:203:
undefined reference to `libintl_textdomain'
/home/jwalton/Build-Scripts/attr-2.4.48/tools/setfattr.c:264:
undefined reference to `libintl_gettext'
collect2: error: ld returned 1 exit status
Makefile:929: recipe for target 'setfattr' failed
make[1]: *** [setfattr] Error 1
make[1]: Leaving directory '/home/jwalton/Build-Scripts/attr-2.4.48'
Makefile:1212: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
- Linker error in libattr 2.4.48 due to libintl,
Jeffrey Walton <=