[GH-ISSUE #991] ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. #786

Closed
opened 2026-02-27 02:53:29 +03:00 by kerem · 15 comments
Owner

Originally created by @dgibbs64 on GitHub (Aug 10, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/991

Originally assigned to: @dgibbs64, @UltimateByte on GitHub.

Im am making this issue related to the following error as a couple of people are confusing it with other errors they are getting.

ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

To summarise. This issue occurs because stdbuf is 64-bit and SteamCMD is 32-bit. This means stdbuf does not work with SteamCMD on 64-bit systems.

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Redirecting stderr to '/home/lgsm/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
OK.

This is related to the issue

https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1440933.html

I have tested this and confirmed stdbuf does fail on x64. However should work on x86. unbuffer does however work. Ideally stdbuf working with 64-bit apps would be great however its up to the distro maintainers to fix.

Originally created by @dgibbs64 on GitHub (Aug 10, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/991 Originally assigned to: @dgibbs64, @UltimateByte on GitHub. Im am making this issue related to the following error as a couple of people are confusing it with other errors they are getting. ``` ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. ``` To summarise. This issue occurs because stdbuf is 64-bit and SteamCMD is 32-bit. This means stdbuf does not work with SteamCMD on 64-bit systems. ``` ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. Redirecting stderr to '/home/lgsm/Steam/logs/stderr.txt' [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client (c) Valve Corporation -- type 'quit' to exit -- Loading Steam API...Created shared memory when not owner SteamController_Shared_mem OK. ``` This is related to the issue https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1440933.html I have tested this and confirmed stdbuf does fail on x64. However should work on x86. unbuffer does however work. Ideally stdbuf working with 64-bit apps would be great however its up to the distro maintainers to fix.
kerem 2026-02-27 02:53:29 +03:00
  • closed this issue
  • added the
    type: bug
    label
Author
Owner

@dgibbs64 commented on GitHub (Aug 10, 2016):

Suggestions on this will be handy? Do you think reverting to unbuffer for 64-bit be the best solution?

<!-- gh-comment-id:238854396 --> @dgibbs64 commented on GitHub (Aug 10, 2016): Suggestions on this will be handy? Do you think reverting to unbuffer for 64-bit be the best solution?
Author
Owner

@cedarlug commented on GitHub (Aug 10, 2016):

Reverting to unbuffer (or nothing if expect isn't installed) on 64-bit would provide the exact same functionality without the confusing error.

I've also been following the Debian bug reports on the issue, and it's close to a "won't fix", or at least a low-priority issue for those maintaining the package.

<!-- gh-comment-id:238883580 --> @cedarlug commented on GitHub (Aug 10, 2016): Reverting to unbuffer (or nothing if expect isn't installed) on 64-bit would provide the exact same functionality without the confusing error. I've also been following the Debian bug reports on the issue, and it's close to a "won't fix", or at least a low-priority issue for those maintaining the package.
Author
Owner

@dgibbs64 commented on GitHub (Aug 10, 2016):

OK. I will use unbuffer if available on 64-bit and stdbuf on 32 bit.

<!-- gh-comment-id:238908882 --> @dgibbs64 commented on GitHub (Aug 10, 2016): OK. I will use unbuffer if available on 64-bit and stdbuf on 32 bit.
Author
Owner

@kbgvirus commented on GitHub (Aug 11, 2016):

Still receiving this error, was the change comitted?

<!-- gh-comment-id:239171380 --> @kbgvirus commented on GitHub (Aug 11, 2016): Still receiving this error, was the change comitted?
Author
Owner

@UltimateByte commented on GitHub (Aug 11, 2016):

Nope, otherwise the issue would be closed. :)

<!-- gh-comment-id:239186873 --> @UltimateByte commented on GitHub (Aug 11, 2016): Nope, otherwise the issue would be closed. :)
Author
Owner

@UltimateByte commented on GitHub (Aug 27, 2016):

Related : https://github.com/GameServerManagers/LinuxGSM/issues/915

<!-- gh-comment-id:242933334 --> @UltimateByte commented on GitHub (Aug 27, 2016): Related : https://github.com/GameServerManagers/LinuxGSM/issues/915
Author
Owner

@presteus commented on GitHub (Oct 6, 2016):

Do you have a workaround for this problem ?

This is my log if I could help
`
user@presteus:~$ ./csserver update
fetching command_update.sh...OK
[ .... ] Update cs-server: fetching update_steamcmd.sh...OK
[ OK ] Update cs-server: SteamCMD
ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
Redirecting stderr to '/home/user/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for license info...OK
Success! App '90' already up to date.
[ INFO ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6cp: not writing through dangling symlink `/home/user/.steam/sdk32/steamclient.so'
[ERROR ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6

user@presteus:~$ ./csserver force-update
[ OK ] Update cs-server: SteamCMD
ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
Redirecting stderr to '/home/user/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for license info...OK
Success! App '90' already up to date.
[ INFO ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6cp: not writing through dangling symlink `/home/user/.steam/sdk32/steamclient.so'
[ERROR ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6

user@presteus:~$ ./csserver update-functions
fetching command_update_functions.sh...OK
[ .... ] Update LGSM cs-server: Updating functions
checking check_config.sh...OK
checking check_deps.sh...OK
checking check_glibc.sh...OK
checking check_ip.sh...OK
checking check_logs.sh...OK
checking check_permissions.sh...UPDATE
fetching check_permissions.sh...OK
checking check_root.sh...OK
checking check.sh...UPDATE
fetching check.sh...OK
checking check_status.sh...OK
checking check_steamcmd.sh...UPDATE
fetching check_steamcmd.sh...OK
checking check_system_dir.sh...OK
checking check_system_requirements.sh...OK
checking command_install.sh...OK
checking command_start.sh...OK
checking command_stop.sh...OK
checking command_update_functions.sh...OK
checking command_update.sh...OK
checking core_dl.sh...OK
checking core_exit.sh...OK
checking core_functions.sh...UPDATE
fetching core_functions.sh...OK
checking core_getopt.sh...UPDATE
fetching core_getopt.sh...OK
checking core_messages.sh...OK
checking core_trap.sh...OK
checking fix.sh...OK
checking fix_steamcmd.sh...OK
checking info_config.sh...UPDATE
fetching info_config.sh...OK
checking info_distro.sh...OK
checking info_glibc.sh...UPDATE
fetching info_glibc.sh...OK
checking install_complete.sh...OK
checking install_config.sh...OK
checking install_header.sh...OK
checking install_logs.sh...OK
checking install_server_dir.sh...OK
checking install_server_files.sh...UPDATE
fetching install_server_files.sh...OK
checking install_steamcmd.sh...OK
checking logs.sh...OK
checking update_steamcmd.sh...OK
[ OK ] Update LGSM cs-server: Updating functions

user@presteus:~$ ./csserver update
[ OK ] Update cs-server: SteamCMD
ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored.
Redirecting stderr to '/home/user/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for license info...OK
Success! App '90' already up to date.
[ INFO ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6cp: not writing through dangling symlink /home/user/.steam/sdk32/steamclient.so' [ERROR ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6

<!-- gh-comment-id:252069603 --> @presteus commented on GitHub (Oct 6, 2016): Do you have a workaround for this problem ? This is my log if I could help ` user@presteus:~$ ./csserver update fetching command_update.sh...OK [ .... ] Update cs-server: fetching update_steamcmd.sh...OK [ OK ] Update cs-server: SteamCMD ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored. Redirecting stderr to '/home/user/Steam/logs/stderr.txt' [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client (c) Valve Corporation -- type 'quit' to exit -- Loading Steam API...Created shared memory when not owner SteamController_Shared_mem OK. Connecting anonymously to Steam Public...Logged in OK Waiting for license info...OK Success! App '90' already up to date. [ INFO ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6cp: not writing through dangling symlink `/home/user/.steam/sdk32/steamclient.so' [ERROR ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6 user@presteus:~$ ./csserver force-update [ OK ] Update cs-server: SteamCMD ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored. Redirecting stderr to '/home/user/Steam/logs/stderr.txt' [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client (c) Valve Corporation -- type 'quit' to exit -- Loading Steam API...Created shared memory when not owner SteamController_Shared_mem OK. Connecting anonymously to Steam Public...Logged in OK Waiting for license info...OK Success! App '90' already up to date. [ INFO ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6cp: not writing through dangling symlink `/home/user/.steam/sdk32/steamclient.so' [ERROR ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6 user@presteus:~$ ./csserver update-functions fetching command_update_functions.sh...OK [ .... ] Update LGSM cs-server: Updating functions checking check_config.sh...OK checking check_deps.sh...OK checking check_glibc.sh...OK checking check_ip.sh...OK checking check_logs.sh...OK checking check_permissions.sh...UPDATE fetching check_permissions.sh...OK checking check_root.sh...OK checking check.sh...UPDATE fetching check.sh...OK checking check_status.sh...OK checking check_steamcmd.sh...UPDATE fetching check_steamcmd.sh...OK checking check_system_dir.sh...OK checking check_system_requirements.sh...OK checking command_install.sh...OK checking command_start.sh...OK checking command_stop.sh...OK checking command_update_functions.sh...OK checking command_update.sh...OK checking core_dl.sh...OK checking core_exit.sh...OK checking core_functions.sh...UPDATE fetching core_functions.sh...OK checking core_getopt.sh...UPDATE fetching core_getopt.sh...OK checking core_messages.sh...OK checking core_trap.sh...OK checking fix.sh...OK checking fix_steamcmd.sh...OK checking info_config.sh...UPDATE fetching info_config.sh...OK checking info_distro.sh...OK checking info_glibc.sh...UPDATE fetching info_glibc.sh...OK checking install_complete.sh...OK checking install_config.sh...OK checking install_header.sh...OK checking install_logs.sh...OK checking install_server_dir.sh...OK checking install_server_files.sh...UPDATE fetching install_server_files.sh...OK checking install_steamcmd.sh...OK checking logs.sh...OK checking update_steamcmd.sh...OK [ OK ] Update LGSM cs-server: Updating functions user@presteus:~$ ./csserver update [ OK ] Update cs-server: SteamCMD ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded: ignored. Redirecting stderr to '/home/user/Steam/logs/stderr.txt' [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client (c) Valve Corporation -- type 'quit' to exit -- Loading Steam API...Created shared memory when not owner SteamController_Shared_mem OK. Connecting anonymously to Steam Public...Logged in OK Waiting for license info...OK Success! App '90' already up to date. [ INFO ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6cp: not writing through dangling symlink `/home/user/.steam/sdk32/steamclient.so' [ERROR ] Fix cs-server: Applying steamclient.so general fix: Counter-Strike 1.6 `
Author
Owner

@UltimateByte commented on GitHub (Oct 6, 2016):

@presteus Your "issue", if any, has nothing to do with the thing described here.

<!-- gh-comment-id:252104982 --> @UltimateByte commented on GitHub (Oct 6, 2016): @presteus Your "issue", if any, has nothing to do with the thing described here.
Author
Owner

@presteus commented on GitHub (Oct 7, 2016):

@UltimateByte Sorry for my english, if my "issue" has do nothing with this post can you ask me where I can look to resolve this little problem ? Thank you in advance.

<!-- gh-comment-id:252129010 --> @presteus commented on GitHub (Oct 7, 2016): @UltimateByte Sorry for my english, if my "issue" has do nothing with this post can you ask me where I can look to resolve this little problem ? Thank you in advance.
Author
Owner

@UltimateByte commented on GitHub (Oct 7, 2016):

No problem. I suggest trying lgsm steam group or lgsm's discord.
We're gonna need some details though.

More info: https://github.com/GameServerManagers/LinuxGSM/wiki/Support

<!-- gh-comment-id:252147489 --> @UltimateByte commented on GitHub (Oct 7, 2016): No problem. I suggest trying lgsm steam group or lgsm's discord. We're gonna need some details though. More info: https://github.com/GameServerManagers/LinuxGSM/wiki/Support
Author
Owner

@UltimateByte commented on GitHub (Oct 20, 2016):

I'll try to have a look today if i got enough time.
Edit: Had to much to do for other issues, it's still one of my two next priorities.

<!-- gh-comment-id:255074302 --> @UltimateByte commented on GitHub (Oct 20, 2016): I'll try to have a look today if i got enough time. Edit: Had to much to do for other issues, it's still one of my two next priorities.
Author
Owner

@UltimateByte commented on GitHub (Oct 31, 2016):

Well, i tried unbuffer again to double check... Breaks steam double authentication that is almost compulsory nowadays. Then i tried unbuffer -p to make sure since it's the only available option, and it screwed with my SSH session wile exiting the installation with ctrl + c,: i had no more outputs from what i was typing into the SSH session, i had to re-open it (login/logout didn't do the trick).

So i just disabled stdbuf for x64 distros.
I'm assuming that all 64 bit distros return x86_64 from the uname -m command for that matter.

Tested working OK for my part, on Debian 8.6 x64.

<!-- gh-comment-id:257449677 --> @UltimateByte commented on GitHub (Oct 31, 2016): Well, i tried unbuffer again to double check... Breaks steam double authentication that is almost compulsory nowadays. Then i tried unbuffer -p to make sure since it's the only available option, and it screwed with my SSH session wile exiting the installation with ctrl + c,: i had no more outputs from what i was typing into the SSH session, i had to re-open it (login/logout didn't do the trick). So i just disabled stdbuf for x64 distros. I'm assuming that all 64 bit distros return x86_64 from the `uname -m` command for that matter. Tested working OK for my part, on Debian 8.6 x64.
Author
Owner

@Clearmist commented on GitHub (Nov 8, 2016):

This issue still exists after the recent fix. The following is from a brand-new installation today.

Ubuntu 16.10 x64

Installing GoldenEye: Source Server
=================================
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELF CLASS64): ignored.
<!-- gh-comment-id:259009279 --> @Clearmist commented on GitHub (Nov 8, 2016): This issue still exists after the recent fix. The following is from a brand-new installation today. `Ubuntu 16.10 x64` ``` Installing GoldenEye: Source Server ================================= ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELF CLASS64): ignored. ```
Author
Owner

@UltimateByte commented on GitHub (Nov 8, 2016):

@clearmist it's not commited to master yet.

<!-- gh-comment-id:259012991 --> @UltimateByte commented on GitHub (Nov 8, 2016): @clearmist it's not commited to master yet.
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:406138534 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#786
No description provided.