Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Is it possible to upgrade libstdc++ to debian stretch version?

Post Reply
Message
Author
User avatar
Leafpad
Forum Novice
Forum  Novice
Posts: 4
Joined: Sat Aug 12, 2017 12:01 pm

Is it possible to upgrade libstdc++ to debian stretch version?

#1 Post by Leafpad » Sat Aug 12, 2017 12:07 pm

Hello. I know this isn't a MX 16 problem, but I wanted to know if maybe someone can help suggesting some kind of workaround to get project zomboid running... This is the error it gaves me everytime I try to start it:

Code: Select all

$ ./projectzomboid.sh -nosteam
64-bit java detected
java.lang.UnsatisfiedLinkError: /media/jcurwen/data/SteamLibrary/steamapps/common/ProjectZomboid/projectzomboid/libfmodintegration64.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /media/jcurwen/data/SteamLibrary/steamapps/common/ProjectZomboid/projectzomboid/libfmodintegration64.so)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at fmod.javafmodJNI.init(javafmodJNI.java:40)
    at fmod.fmod.FMODManager.init(FMODManager.java:127)
    at zombie.GameWindow.maina(GameWindow.java:873)
    at zombie.gameStates.MainScreenState.main(MainScreenState.java:180)
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load native libraries
    at fmod.javafmodJNI.init(javafmodJNI.java:48)
    at fmod.fmod.FMODManager.init(FMODManager.java:127)
    at zombie.GameWindow.maina(GameWindow.java:873)
    at zombie.gameStates.MainScreenState.main(MainScreenState.java:180)
It works fine on antiX 17 but I prefer to use MX. My system is up-to-date

I received this reply in the game developer forum:
Jessie is using libstdc++6.20, which uses CXXABI_1.3.8
For CXXABI_1.3.9 libstdc++6.21 is required. Debian Stretch is using libstdc++6.22
I haven't tried the vehicle test build and have no experience with MX (my machines run pure deb), but it looks like they've been using backports to update some of the packages and they don't seem to provide a handy list on the website. My advice would be manually in a terminal check what libstdc++6 is installed:
ls /usr/lib/x86_64-linux-gnu/libstdc++.so.6*
Without knowing what all that distro has done and backported (or knowing whats in their repos) I shouldn't really give advice on upgrading lbstdc++, it might be worth checking with their support forums
So the answer seems to be to update libstdc++, what would be the correct way of upgrading (if it is possible)?

Thank you very much!

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 15789
Joined: Fri Dec 15, 2006 8:07 pm

Re: Is it possible to upgrade libstdc++ to debian stretch version?

#2 Post by Stevo » Sat Aug 12, 2017 6:35 pm

Several members of the forum have upgraded MX-16's Debian base to Stretch, and they didn't report any real breakage of things in the end. That's the only way I can think of, offhand.

Maybe there's some way to get the Stretch libraries extracted into a local folder and you can use LD_PRELOAD to get your game to use those libraries, but I'm really vague on the exact procedure.

User avatar
Leafpad
Forum Novice
Forum  Novice
Posts: 4
Joined: Sat Aug 12, 2017 12:01 pm

Re: Is it possible to upgrade libstdc++ to debian stretch version?

#3 Post by Leafpad » Sat Aug 12, 2017 6:55 pm

Stevo wrote:Several members of the forum have upgraded MX-16's Debian base to Stretch, and they didn't report any real breakage of things in the end. That's the only way I can think of, offhand.

Maybe there's some way to get the Stretch libraries extracted into a local folder and you can use LD_PRELOAD to get your game to use those libraries, but I'm really vague on the exact procedure.
Okay, I'll follow the wiki article instructions on upgrading to Stretch :)

User avatar
antoniosarco
Forum Novice
Forum  Novice
Posts: 1
Joined: Tue Dec 19, 2017 6:26 am

Re: Is it possible to upgrade libstdc++ to debian stretch version?

#4 Post by antoniosarco » Tue Dec 19, 2017 6:28 am

Check that all DLL functions referred in your Java code are correctly defined and exported and export the same datatypes as those your Java code is expecting. This won't stop the DLL loading, but it may well mess up the next stage - resolving link addresses or making functions that should work, fail in unexpected ways.
Place the DLL in the current directory, in one of the directories listed in the PATH environment variable, or, best of all, in the native library search path, set using the system property java.library.path:

java -Djava.library.path=C:\MyNativeLibs MyMainClass

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 15789
Joined: Fri Dec 15, 2006 8:07 pm

Re: Is it possible to upgrade libstdc++ to debian stretch version?

#5 Post by Stevo » Tue Dec 19, 2017 10:51 pm

If you're not a bot, this is a Linux forum, not Windows. :frown: :mad:

Post Reply

Return to “Software / Configuration”