Created
December 11, 2017 05:34
-
-
Save finnoleary/d45374959439f8077ac942c6bb366243 to your computer and use it in GitHub Desktop.
Fix for Alpine Linux gettext problem with libattr.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thethreefuries.alx attr> make | |
[...] | |
tools/attr.o: In function `usage': | |
/home/alx/g/attr/tools/attr.c:48: undefined reference to `libintl_gettext' | |
tools/attr.o: In function `main': | |
/home/alx/g/attr/tools/attr.c:73: undefined reference to `libintl_bindtextdomain' | |
/home/alx/g/attr/tools/attr.c:74: undefined reference to `libintl_textdomain' | |
/home/alx/g/attr/tools/attr.c:140: undefined reference to `libintl_gettext' | |
/home/alx/g/attr/tools/attr.c:248: undefined reference to `libintl_gettext' | |
/home/alx/g/attr/tools/attr.c:184: undefined reference to `libintl_gettext' | |
/home/alx/g/attr/tools/attr.c:95: undefined reference to `libintl_gettext' | |
/home/alx/g/attr/tools/attr.c:202: undefined reference to `libintl_gettext' | |
tools/attr.o:/home/alx/g/attr/tools/attr.c:207: more undefined references to `libintl_gettext' follow | |
collect2: error: ld returned 1 exit status | |
make[1]: *** [Makefile:918: attr] Error 1 | |
make[1]: Leaving directory '/home/alx/g/attr' | |
make: *** [Makefile:1212: all-recursive] Error 1 | |
thethreefuries.alx attr> locate intl | grep lib | grep .so | |
/usr/lib/libintl.so | |
/usr/lib/libintl.so.8 | |
/usr/lib/libintl.so.8.1.5 | |
# (If you don't have the above install one of the `gettext-*` packages) | |
thethreefuries.alx attr> CFLAGS=-intl ./configure | |
[...] | |
checking where the gettext function comes from... external libintl | |
checking how to link with libintl... /usr/lib/libintl.so | |
[...] | |
thethreefuries.alx attr> make | |
Making all in po | |
make[1]: Entering directory '/home/alx/g/attr/po' | |
make[1]: Nothing to be done for 'all'. | |
make[1]: Leaving directory '/home/alx/g/attr/po' | |
make[1]: Entering directory '/home/alx/g/attr' | |
CCLD attr | |
CC tools/getfattr.o | |
CCLD getfattr | |
CC tools/setfattr.o | |
CCLD setfattr | |
make[1]: Leaving directory '/home/alx/g/attr' | |
# Now it should work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment