Open boombatower opened 8 years ago
ERROR: ld.so: object '/home/mfoxdogg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax: /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: no version information available (required by /home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax)
/home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax: /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax)
/home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax: /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libcurl.so.4)
/home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax: /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libssl.so.1.0.0: no version information available (required by /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libcurl.so.4)
/home/mfoxdogg/.local/share/Steam/steamapps/common/Mad Max/bin/MadMax: /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: no version information available (required by /home/mfoxdogg/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libcurl.so.4)
Since steam-runtime has libcurl.so.4 another approach will be needed. Without access to runt he game it's hard to see exactly why and from where the error is coming.
If the gears guy is right and it works when running direct maybe better to alter the startup script to nuke LD_PRELOAD entirely so it uses all system libs except for any it forcefully include with rpath I am going to guess based on ldd output.
On that note, force to run without steam-runtime by removing preload.
diff --git a/madmax.sh b/madmax.sh
index d0d9213..5b1fc60 100644
--- a/madmax.sh
+++ b/madmax.sh
@@ -151,6 +151,8 @@ fi
# Add our additionals and the old preload back
LD_PRELOAD="${LD_PRELOAD_ADDITIONS}:${SYSTEM_LD_PRELOAD}"
export LD_PRELOAD
+unset LD_PRELOAD
+unset LD_LIBRARY_PATH
# ====================================================================
# Run the game
Perhaps someone can test.
Here's my homemade change to the launch script. It allows for the steam overlay to work after nuking LD_PRELOAD. (In my case, I deleted the part of their script where they set it, but unset works too)
I used exec because I did not see any use in having a dangling bash process waiting for the game to terminate.
I've played through most of the game using this script, with no issues.
It seems this is related to https://bugzilla.opensuse.org/show_bug.cgi?id=1032151.
I believe I fixed in e5815a904f1047e49017ca8a7bd9040553d52396 and 71f4ec661118b94137e77ed8d3b6a764158b3f18.
Perhaps someone could compile a list of all Feral games effected by this fix can be applied to all. The latest steamtricks and steamtricks-data packages are available with the fix from https://build.opensuse.org/project/show/home:boombatower:steamtricks.
Tomb Raider contains:
If all such games have those that may be the way to go.
Neither XCOM: Enemy Unknown nor Middle-earth: Shadow of Mordor seem to need this fix.
Company of Heroes 2 needs this fix to launch
Total War Warhammer also ships a local libcurl which needs to be deleted to allow the game to start
FERAL_GAME_NAME="TotalWarhammer"
FERAL_GAME_NAME_FULL="Total War Warhammer"
FERAL_GAME_STEAMID="364360"
FERAL_LIB_PATH="lib/x86_64"
FERAL_ARCH_SHORT="64"
FERAL_ARCH_FULL="x
The upstream bug https://github.com/FeralInteractive/ferallinuxscripts/issues/2
They keep promising a fix but it's never published. It's like their released games are practically abandoned after release.
Issue:
As documented a workaround:
ldd output:
It seems like the best potential workaround would be to remove the libcurl.so.4 shipped with MadMax as I tested my local libcurl.so.4 against steam-runtime libssl.so.1.0.0 and it worked fine.
My test script
output
If so presumably, just remove
lib/x86_64/libcurl.so.4
in234140-Mad_Max/00-remove
. I do not own the game, so I need others to test fix. Thanks to mfoxdogg for the help.