coolreader icon indicating copy to clipboard operation
coolreader copied to clipboard

Need `libintl_gettext` on musl libc

Open jdek opened this issue 6 years ago • 3 comments

The musl libc doesn't have the libintl_gettext symbol builtin, I think you should manually link -lintl or find gettext, I'm not sure.

/home/user/ereader-buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/4.9.4/../../../../arm-buildroot-linux-musleabihf/bin/ld: ../crengine/libcrengine.a(cri18n.cpp.o): undefined reference to sym
bol 'libintl_gettext'
/home/user/ereader-buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/4.9.4/../../../../arm-buildroot-linux-musleabihf/bin/ld: /home/user/ereader-buildroot/output/host/arm-buildroot-linux-muslea
bihf/sysroot/usr/lib/libintl.so.8: error adding symbols: DSO missing from command line

jdek avatar Oct 03 '19 11:10 jdek

The musl libc doesn't have the libintl_gettext symbol builtin

Are you implying there's a libc that does?

Frenzie avatar Oct 03 '19 13:10 Frenzie

I'm not sure, just know that it's not an issue with glibc. My assumpton is that glibc builds gettext into the C library.

jdek avatar Oct 03 '19 14:10 jdek

libintl.h seems to be a part of glibc, and indeed there's some kind of gettext implementation included. Interesting.

Frenzie avatar Oct 03 '19 14:10 Frenzie