I use Ubuntu 22.04 compiled in proot of Android termux.
I use the compilation parameters cmake . .
/root/xash3d-schl/dlls/nodes.cpp:113:23: error: too many arguments to function
113 | SERVER_COMMAND( "exec maps/%s.cfg\n", STRING( gpGlobals->mapname ));
[ 65%] Building CXX object dlls/CMakeFiles/server.dir/osprey.cpp.o
/root/xash3d-schl/dlls/nihilanth.cpp: In member function ‘void CNihilanth::NextActivity()’:
/root/xash3d-schl/dlls/nihilanth.cpp:740:39: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
740 | sprintf( szName, "%s%d", m_szRechargerTarget, m_iLevel );
| ^
/root/xash3d-schl/dlls/nihilanth.cpp:740:24: note: ‘sprintf’ output between 2 and 75 bytes into a destination of size 64
740 | sprintf( szName, "%s%d", m_szRechargerTarget, m_iLevel );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/xash3d-schl/dlls/nihilanth.cpp:832:63: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
832 | sprintf( szText, "%s%d", m_szTeleportTouch, m_iTeleport );
| ^
/root/xash3d-schl/dlls/nihilanth.cpp:832:48: note: ‘sprintf’ output between 2 and 75 bytes into a destination of size 64
832 | sprintf( szText, "%s%d", m_szTeleportTouch, m_iTeleport );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/xash3d-schl/dlls/nihilanth.cpp:835:63: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
835 | sprintf( szText, "%s%d", m_szTeleportUse, m_iTeleport );
| ^
/root/xash3d-schl/dlls/nihilanth.cpp:835:48: note: ‘sprintf’ output between 2 and 75 bytes into a destination of size 64
835 | sprintf( szText, "%s%d", m_szTeleportUse, m_iTeleport );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/xash3d-schl/dlls/nihilanth.cpp:784:55: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
784 | sprintf( szText, "%s%d", m_szDrawUse, m_iLevel );
| ^
/root/xash3d-schl/dlls/nihilanth.cpp:784:40: note: ‘sprintf’ output between 2 and 75 bytes into a destination of size 64
784 | sprintf( szText, "%s%d", m_szDrawUse, m_iLevel );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/xash3d-schl/dlls/nihilanth.cpp: In member function ‘virtual void CNihilanth::HandleAnimEvent(MonsterEvent_t*)’:
/root/xash3d-schl/dlls/nihilanth.cpp:1114:43: warning: ‘%s’ directive writing up to 63 bytes into a region of size 32 [-Wformat-overflow=]
1114 | sprintf( szText, "%s%d", m_szTeleportTouch, m_iTeleport );
| ^~
/root/xash3d-schl/dlls/nihilanth.cpp:1114:32: note: ‘sprintf’ output between 2 and 75 bytes into a destination of size 32
1114 | sprintf( szText, "%s%d", m_szTeleportTouch, m_iTeleport );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/xash3d-schl/dlls/nihilanth.cpp:1117:43: warning: ‘%s’ directive writing up to 63 bytes into a region of size 32 [-Wformat-overflow=]
1117 | sprintf( szText, "%s%d", m_szTeleportUse, m_iTeleport );
| ^~
/root/xash3d-schl/dlls/nihilanth.cpp:1117:32: note: ‘sprintf’ output between 2 and 75 bytes into a destination of size 32
1117 | sprintf( szText, "%s%d", m_szTeleportUse, m_iTeleport );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [dlls/CMakeFiles/server.dir/build.make:1014: dlls/CMakeFiles/server.dir/nodes.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:98: dlls/CMakeFiles/server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2```