Edit: Never mind, I booted Ubuntu Mate 17.10 which uses glibc 2.26; problem solved. Just like you said, missing last character problem disappeared! Your fix is likely to work with Ubuntu 17.10 and upwards.
https://distrowatch.com/table.php?distribution=ubuntu
However, the crash/screenlock issue is still there. It might be related with glibc but cannot be solved with the patches provided in the bug report. Nevertheless, I am extremely happy with the current fix. Thank you!
PS: Please try compiling libgcc as well, I wonder about the result.
Regards.
Uh, my coding noobness strikes back. It looks like I messed it up little bit.
Here is ldd output of ETQW binary:
$ ldd ./etqw.x86
linux-gate.so.1 => (0xf77a8000)
libSDL-1.2.so.0 => /usr/lib/i386-linux-gnu/libSDL-1.2.so.0 (0xf76dc000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf76bf000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf76a3000)
libjpeg.so.62 => /usr/lib/i386-linux-gnu/libjpeg.so.62 (0xf767d000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7532000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf751d000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf73a6000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7350000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7333000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf717d000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7178000)
libasound.so.2 => /usr/lib/i386-linux-gnu/libasound.so.2 (0xf7062000)
libpulse-simple.so.0 => /usr/lib/i386-linux-gnu/libpulse-simple.so.0 (0xf705b000)
libpulse.so.0 => /usr/lib/i386-linux-gnu/libpulse.so.0 (0xf7001000)
libcaca.so.0 => /usr/lib/i386-linux-gnu/libcaca.so.0 (0xf6f37000)
/lib/ld-linux.so.2 (0x565fb000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf6f11000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf6f08000)
libpulsecommon-8.0.so => /usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-8.0.so (0xf6e7f000)
libjson-c.so.2 => /lib/i386-linux-gnu/libjson-c.so.2 (0xf6e73000)
libdbus-1.so.3 => /lib/i386-linux-gnu/libdbus-1.so.3 (0xf6e19000)
libslang.so.2 => /lib/i386-linux-gnu/libslang.so.2 (0xf6ced000)
libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5 (0xf6cb8000)
libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xf6c94000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf6c90000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf6c89000)
libsystemd.so.0 => /lib/i386-linux-gnu/libsystemd.so.0 (0xf6bfb000)
libwrap.so.0 => /lib/i386-linux-gnu/libwrap.so.0 (0xf6bf1000)
libsndfile.so.1 => /usr/lib/i386-linux-gnu/libsndfile.so.1 (0xf6b77000)
libasyncns.so.0 => /usr/lib/i386-linux-gnu/libasyncns.so.0 (0xf6b70000)
libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xf6b4a000)
liblzma.so.5 => /lib/i386-linux-gnu/liblzma.so.5 (0xf6b24000)
libgcrypt.so.20 => /lib/i386-linux-gnu/libgcrypt.so.20 (0xf6a75000)
libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xf6a59000)
libFLAC.so.8 => /usr/lib/i386-linux-gnu/libFLAC.so.8 (0xf69f9000)
libvorbisenc.so.2 => /usr/lib/i386-linux-gnu/libvorbisenc.so.2 (0xf696d000)
libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xf6954000)
libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xf68df000)
libgpg-error.so.0 => /lib/i386-linux-gnu/libgpg-error.so.0 (0xf68c8000)
libogg.so.0 => /usr/lib/i386-linux-gnu/libogg.so.0 (0xf68bf000)
libvorbis.so.0 => /usr/lib/i386-linux-gnu/libvorbis.so.0 (0xf6893000)
Here are the libraries that I grabbed from …/lib32-glibc-2.26-2-x86_64.pkg/usr/lib32
ld-2.26.so
libc-2.26.so
libc.so.6
libdl.so
libm-2.26.so
libm.so.6
libnsl.so
libpthread-2.26.so
libpthread.so.0
libresolv.so
librt-2.26.so
librt.so.1
ld-linux.so.2
libc.so
libdl-2.26.so
libdl.so.2
libm.so
libnsl-2.26.so
libnsl.so.1
libpthread.so
libresolv-2.26.so
libresolv.so.2
librt.so
As I copied these libraries to the installation directory, launching etqw.x86 binary with preload attempts returned following errors:
$ LD_PRELOAD=/home/rifat/etqw/libc-2.26.so ./etqw.x86
./etqw.x86: relocation error: /home/rifat/etqw/libc-2.26.so: symbol __tunable_get_val, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
$ LD_PRELOAD=/home/rifat/etqw/ld-2.26.so:/home/rifat/etqw/libc-2.26.so ./etqw.x86
./etqw.x86: relocation error: /lib/i386-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
$ LD_PRELOAD=/home/rifat/etqw/ld-2.26.so:/home/rifat/etqw/libc-2.26.so:/home/rifat/etqw/libpthread-2.26.so ./etqw.x86
ETQW 1.5.12663.12663 linux-x86 May 9 2008 13:50:52
found interface lo - loopback
found interface wlp2s0 - 192.168.2.50/255.255.255.0
CPU: Intel CPU with MMX & SSE & SSE2 & SSE3
ETQW using generic code for SIMD processing
enabled Flush-To-Zero mode
------ Initializing File System ------
Loaded pk4 /home/rifat/etqw/base/game000.pk4 with checksum 0x3efd73a5
Loaded pk4 /home/rifat/etqw/base/game001.pk4 with checksum 0xa02f1c18
Loaded pk4 /home/rifat/etqw/base/game002.pk4 with checksum 0x87457e61
Loaded pk4 /home/rifat/etqw/base/pak000.pk4 with checksum 0x442eb08b
Loaded pk4 /home/rifat/etqw/base/pak001.pk4 with checksum 0x10e16e6
Loaded pk4 /home/rifat/etqw/base/pak002.pk4 with checksum 0x8dbe7353
Loaded pk4 /home/rifat/etqw/base/pak003.pk4 with checksum 0x99dfcabb
Loaded pk4 /home/rifat/etqw/base/pak004.pk4 with checksum 0x7e49f838
Loaded pk4 /home/rifat/etqw/base/pak005.pk4 with checksum 0x5ccc7213
Loaded pk4 /home/rifat/etqw/base/pak006.pk4 with checksum 0x9edf1b7d
Loaded pk4 /home/rifat/etqw/base/pak007.pk4 with checksum 0x74a1a2f
Loaded pk4 /home/rifat/etqw/base/pak008.pk4 with checksum 0x71a93b80
Loaded pk4 /home/rifat/etqw/base/zpak_english000.pk4 with checksum 0x977c7bd0
Loaded pk4 /home/rifat/etqw/base/zpak_english001.pk4 with checksum 0x6583cd8
Loaded pk4 /home/rifat/etqw/base/zpak_english002.pk4 with checksum 0x8dc70e3d
Loaded pk4 /home/rifat/etqw/base/zpak_english003.pk4 with checksum 0xc2d7ed49
Loaded pk4 /home/rifat/etqw/base/zpak_french000.pk4 with checksum 0x3363fb2b
Loaded pk4 /home/rifat/etqw/base/zpak_french001.pk4 with checksum 0x3bd7a062
Loaded pk4 /home/rifat/etqw/base/zpak_french002.pk4 with checksum 0x79287190
Loaded pk4 /home/rifat/etqw/base/zpak_french003.pk4 with checksum 0x8f315c7b
Loaded pk4 /home/rifat/etqw/base/zpak_german000.pk4 with checksum 0xd42cc5af
Loaded pk4 /home/rifat/etqw/base/zpak_german001.pk4 with checksum 0xa694c3f1
Loaded pk4 /home/rifat/etqw/base/zpak_german002.pk4 with checksum 0x64bee731
Loaded pk4 /home/rifat/etqw/base/zpak_german003.pk4 with checksum 0x370e6186
Loaded pk4 /home/rifat/etqw/base/zpak_korean000.pk4 with checksum 0xd42c084
Loaded pk4 /home/rifat/etqw/base/zpak_korean001.pk4 with checksum 0x4de6a4e7
Loaded pk4 /home/rifat/etqw/base/zpak_korean002.pk4 with checksum 0x15d2c9af
Loaded pk4 /home/rifat/etqw/base/zpak_korean003.pk4 with checksum 0x4f8dfac1
Loaded pk4 /home/rifat/etqw/base/zpak_polish000.pk4 with checksum 0x4bdaa546
Loaded pk4 /home/rifat/etqw/base/zpak_polish001.pk4 with checksum 0x2575ff8e
Loaded pk4 /home/rifat/etqw/base/zpak_polish002.pk4 with checksum 0x3ab92dd6
Loaded pk4 /home/rifat/etqw/base/zpak_polish003.pk4 with checksum 0x8d9af876
Loaded pk4 /home/rifat/etqw/base/zpak_russian000.pk4 with checksum 0x7059b4d4
Loaded pk4 /home/rifat/etqw/base/zpak_russian001.pk4 with checksum 0xf3e91581
Loaded pk4 /home/rifat/etqw/base/zpak_russian002.pk4 with checksum 0x38b1a37c
Loaded pk4 /home/rifat/etqw/base/zpak_russian003.pk4 with checksum 0x7e90b040
Loaded pk4 /home/rifat/etqw/base/zpak_spanish000.pk4 with checksum 0x2cd606df
Loaded pk4 /home/rifat/etqw/base/zpak_spanish001.pk4 with checksum 0xd609566c
Loaded pk4 /home/rifat/etqw/base/zpak_spanish002.pk4 with checksum 0xcf994ada
Loaded pk4 /home/rifat/etqw/base/zpak_spanish003.pk4 with checksum 0xe7d989bc
signal caught: 'Segmentation fault', si_code 1
double fault: 'Segmentation fault', bailing out
Segmentation fault
$ LD_LIBRARY_PATH=/home/rifat/etqw ./etqw.x86
./etqw.x86: relocation error: /home/rifat/etqw/libc.so.6: symbol __tunable_get_val, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
It looks like it has something to do with ld-linux.so.2 but I couldn’t figure it out. Should I link your ld-linux.so.2 or ld-2.26.so somewhere else? How about …/lib32-glibc-2.26-2-x86_64.pkg/usr/lib/ld-linux.so.2 ? Is that 64 bit? Sorry for trouble. :-/