Closed dslm4515 closed 3 years ago
Unpacked the gettext-tiny source to create the missing shared library:
cd libintl
gcc -Wall -g -shared -o libintl.so -fPIC libintl-musl.c
sudo cp -v libintl.so /usr/lib/libintl.so.0.3.1
sudo ln -sv libintl.so.0.3.1 /usr/lib/libintl.so.8
Looks like errors still remains, but if I install a version of geany that was built under a system that uses GNU's gettext, geany loads fine.
Seems like a system that uses gettext-tiny, /usr/lib/libintl.la
is expected but not provided by gettext-tiny
Attempted to manually rebuild libintl.a
with libtool:
# First unpack gettext-tiny source.
cd libtintl
libtool --tag=CC --mode=compile gcc -g -O2 -Wall -c libintl-musl.c
libtool --tag=CC --mode=link gcc -g -O2 -Wall -o libintl.la
# Copy
sudo cp -v .libs/libintl.a /usr/lib
sudo cp -v libintl.la /usr/lib
Modified libintl.la
to have this:
# Version information for libintl.
current=0
age=3
revision=1
# Is this an already installed library?
installed=yes
# Directory that this library needs to be installed in:
libdir='/usr/lib'
Seems like error is gone. Of course, packages installed were from a previous MLFS built with GNU's gettext. Not sure if error would have been avoided if packages were compiled under a host with gettext-tiny instead of GNU's Gettext.
Rebuilding a MLFS build with vanilla gettext-tiny to see if issue was caused by gettext-tiny or a mix-up of some packages built with GNU's gettext instead
Built toolchain with gettext-mini. Built MLFS with gettext-tiny via same toolchain. Built all dependencies of geany with gettext-mini. Geany now builds fine.
In short, don’t mix packages built with GNU’s Gettext.
Compiling under a system that uses gettext-tiny instead of GNU's gettext, cause geany to not link during build:
Gettext-tiny installs
/usr/lib/libintl.a
instead oflibintl.so
orlibintl.la