I cannot find libiconv. I have read it is delivered by glibc now, but rpm -ql glibc returns only programs.
I need to find iconv on my system to link it with other name or into other place.
Problem was: UT GOTY Edition try to load it dynamically.
I cannot find libiconv. I have read it is delivered by glibc now, but rpm -ql glibc returns only programs.
I need to find iconv on my system to link it with other name or into other place.
Problem was: UT GOTY Edition try to load it dynamically.
If I’m not mistaken, you’ll have to build it yourself – <https://www.gnu.org/software/libiconv/>.
Ok. I tried to build it by myself, but:
./configure --build=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 --prefix=/zamiast-winshita/games/UT\:Gold/drive_c/System
make
Returns:
gcc -m32 iconv_no_i18n.o -o .libs/iconv_no_i18n ../srclib/libicrt.a ../lib/.libs/libiconv.so -Wl,--rpath -Wl,/zamiast-winshita/games/UT:Gold/drive_c/System/lib
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: ../lib/.libs/libiconv.so: undefined reference to `aliases_lookup'
When build for 64-bit problem does not occur. Problem is game is 32bit executable.
I do not know, why I forgot about -m32. Or maybe I try, but it do not worked? I download sources again, provide some compilation flags in configure and it worked. Maybe i try to pass CFLAGS to make program, instead of configure? I remember linker complains about bad architecture of object files. Maybe I only specify CFLAGS, without CXXFLAGS?
Solution:
./configure CFLAGS=-m32 CXXFLAGS=-m32 && \
make && \
sudo make install || echo Error