Skip to content

Fix missing _srv prefix for dedicated server build#1922

Open
Masterkatze wants to merge 5 commits intoNeotokyoRebuild:masterfrom
Masterkatze:cmake_dedicated_fix
Open

Fix missing _srv prefix for dedicated server build#1922
Masterkatze wants to merge 5 commits intoNeotokyoRebuild:masterfrom
Masterkatze:cmake_dedicated_fix

Conversation

@Masterkatze
Copy link
Copy Markdown
Contributor

@Masterkatze Masterkatze commented Apr 4, 2026

Description

To run dedicated server on Linux we have to create _srv.so -> .so symlinks, which should not be necessary. This need is caused by 2 issues:

  1. While building dedicated server shared library we link it to vstdlib and tier0 libraries, which has no _srv suffix. Simply renaming these libraries before building is enough to fix.
  2. _DLL_EXT compile definition which is used in DLL_EXT_STRING macro contained no _srv suffix for dedicated build, which made it necessary to create symlinks for soundemittersystem and scenefilecache libraries. This issue was introduced while moving to CMake build system.

How to test the fix:

  1. On Linux, install server_srv.so from neo-*-*-dedicated-Linux-Release.zip
  2. Remove all non-_srv.so files in Neotokyo Rebuild Dedicated Server/bin/linux64 (there should be 14 _srv.so files left after removing)
  3. Start the dedicated server - it should start without a crash

Toolchain

  • Linux GCC Distro Native [Arch Linux, GCC 15.2.1 20260209]

Linked Issues

@Masterkatze Masterkatze requested a review from a team April 4, 2026 17:22
@Masterkatze Masterkatze added Bug Report Bug Reports made through the "Report Issue" interface in GitHub. Build System CMake and other build-related stuff labels Apr 4, 2026
@Masterkatze Masterkatze changed the title Cmake dedicated fix Fix missing _srv prefix for dedicated server build Apr 4, 2026
@Masterkatze Masterkatze force-pushed the cmake_dedicated_fix branch 3 times, most recently from 786aace to f9d76ab Compare April 10, 2026 19:34
@Masterkatze Masterkatze force-pushed the cmake_dedicated_fix branch from f9d76ab to e6da040 Compare April 20, 2026 18:34
@Rainyan

This comment was marked as resolved.

@Rainyan

This comment was marked as resolved.

@Rainyan

This comment was marked as resolved.

@Masterkatze
Copy link
Copy Markdown
Contributor Author

Masterkatze commented Apr 21, 2026

How I run it, using Steam-installed dedicated server:

cd "/home/orange/.steam/steam/steamapps/common/Neotokyo Rebuild Dedicated Server"
./srcds_linux64.sh -console -insecure +sv_lan 0 -game neo -maxplayers 32 +map ntre_rise_ctg

Probably unrelated, but:

Core was generated by `bin/linux64/server_srv.so -game neo -binary bin/linux64/server_srv.so'.
...
gs             0x0                 0

Can you recheck if it still happen when you run the server using my command above?

@Rainyan
Copy link
Copy Markdown
Member

Rainyan commented Apr 22, 2026

How I run it, using Steam-installed dedicated server:

cd "/home/orange/.steam/steam/steamapps/common/Neotokyo Rebuild Dedicated Server"
./srcds_linux64.sh -console -insecure +sv_lan 0 -game neo -maxplayers 32 +map ntre_rise_ctg

Ah, it was a case of me forgetting to append the LD_LIBRARY_PATH for the x64 libs. I didn't have any .sh file in the SRCDS root dir, but this worked:

$ LD_LIBRARY_PATH=".:bin/linux64:$LD_LIBRARY_PATH" ./srcds_linux64 -console -insecure +sv_lan 0 -game neo -maxplayers 32 +map ntre_rise_ctg

I don't have time to verify with the game client currently, but will do so later today. But it seems like it's working fine since this launched fine without having done any of the symlinking that was previously needed.

@Rainyan Rainyan self-requested a review April 22, 2026 10:43
@Rainyan Rainyan requested a review from a team April 22, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Report Bug Reports made through the "Report Issue" interface in GitHub. Build System CMake and other build-related stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Steam Dedicated Server does not launch on Linux

2 participants