Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7(Solved)

Moderator: BarryK

Post Reply
Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7(Solved)

Post by Caramel »

I need help for the problem of compiling and using a newer version of Glibc than the one installed.

szept wrote: Fri Jan 05, 2024 9:07 pm

Does any1 know if the latest EasyOS release includes GLIBC update to 2.36? Cannot play my favourite game since they updated it few days ago and this is my crash error:

Code: Select all

# ./medivia
./medivia: /usr/lib/libc.so.6: version `GLIBC_2.36' not found (required by ./medivia)

After this bug has been spotted, they've added:
Dear players

Due to certain upgrades the Linux version of the game client does now require glibc version of 2.36 to run properly.

Forum users advise to either update linux distro, or do the following steps:
1) Download the files:
Go to http://ftp.gnu.org/gnu/glibc/ and download glibc-2.36.tar.gz or wget it (http://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.gz)

2) Unpack:
tar zxvf glibc-2.36.tar.gz

3) Create temporary build directory:
cd glibc-2.36
mkdir build
cd build

4) run configure script from there:
../configure --prefix=/opt/glibc-2.36

5) Make, & install:
make -j4
sudo make install

6) You can now start medivia as follows:
LD_PRELOAD='/opt/glibc-2.36/lib/libm.so.6' ./medivia

I recommend creating a "start.sh" script with this command and then run that everytime.

In some answers of this message (first answer : viewtopic.php?p=107643#p107643) I tried the method explained in the message.

In summary, I compiled glibc-2.36 (in Easy 5.6.3) (compiled as explained in the message), shared it as a pet with @szept. He tested with the recommended command (LD_PRELOAD='/opt/glibc-2.36/lib/libm.so.6' ./medivia) (and variants) without success.

I only understand now that the problem is with my compilation.

(EDIT : In fact, the compilation do not work with the recommanded command (LD_PRELOAD='/opt/glibc-2.36/lib/libm.so.6')./medivia. A method that works is to pass the location of glibc-2.36 as parameter to the binary ld-linu-x86-64.so.2. See the message viewtopic.php?p=111312#p111312)

Output of the command ldd :

Code: Select all

# ldd /opt/glibc-2.36/lib/libc.so.6 
	/opt/glibc-2.36/lib/ld-linux-x86-64.so.2 => /usr/lib/ld-linux-x86-64.so.2 (0x00007fc3c9224000)
	linux-vdso.so.1 (0x00007ffc7b28d000)

Code: Select all

# ldd /opt/glibc-2.36/lib/ld-linux-x86-64.so.2 
	statically linked

Does anyone understand why a file from glibc-2.36 is statically linked to the installed glibc and especially how to prevent that ?

Thanks in advance

Last edited by Caramel on Sat Feb 10, 2024 5:47 am, edited 4 times in total.
szept
Posts: 146
Joined: Wed Jan 11, 2023 5:37 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Compilation and use of Glibc-2.36 in EasyOS versions 5.6.3 to 5.7

Post by szept »

Caramel wrote: Sun Feb 04, 2024 6:55 pm

I need help for the problem of compiling and using a newer version of Glibc than the one installed.

Big thanks for your effort trying to help me out with Glibc mate! :)

Running live-USB EasyOS-64_6.3.1

...and taxes are theft! -.-
https://321my.wordpress.com/pw/

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Compilation and use of Glibc-2.36 in EasyOS versions 5.6.3 to 5.7

Post by Caramel »

First i try a new compilation with the method in the second answer page https://stackoverflow.com/questions/510 ... -configure
Failure

Secondly, In my precious try (that provided the opt-glibc-2.36 pet), I did not see that the files /etc/ld.so.cache and /etc/ld.so.conf were modified by the compilation.

Here are with files

ld.so.opt-glibc-2.36-1.pet
(17.53 KiB) Downloaded 20 times

@szept, you could install this pet and try again.

szept
Posts: 146
Joined: Wed Jan 11, 2023 5:37 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Compilation and use of Glibc-2.36 in EasyOS versions 5.6.3 to 5.7

Post by szept »

Caramel wrote: Mon Feb 05, 2024 11:05 am

@szept, you could install this pet and try again.

Here we go!

Code: Select all

LD_LIBRARY_PATH="/opt/glibc-2.36" ./medivia
./medivia: /usr/lib/libc.so.6: version `GLIBC_2.36' not found (required by ./medivia)

Code: Select all

LD_LIBRARY_PATH="/opt/glibc-2.36:/usr/lib:/usr/local/lib" ./medivia
./medivia: /usr/lib/libc.so.6: version `GLIBC_2.36' not found (required by ./medivia)

Code: Select all

LD_PRELOAD='/opt/glibc-2.36/lib/libm.so.6' LD_LIBRARY_PATH="/usr/lib:/usr/local/lib" ./medivia
./medivia: /usr/lib/libc.so.6: version `GLIBC_2.36' not found (required by ./medivia)
./medivia: /usr/lib/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /opt/glibc-2.36/lib/libm.so.6)

Running live-USB EasyOS-64_6.3.1

...and taxes are theft! -.-
https://321my.wordpress.com/pw/

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7

Post by Caramel »

It was becoming absurd to offer more and more ineffective commands, so i finally decided to install medivia to test myself.

The download link is here : https://medivia.online/download

More than 1 GB downloaded

Medivia started with the command :

Code: Select all

/opt/glibc-2.36/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.36/lib:/usr/lib ./medivia

It's an adaptation of the maximk's answer page https://stackoverflow.com/questions/847 ... ingle-host

fatdoguser
Posts: 176
Joined: Sat Aug 05, 2023 10:54 am
Has thanked: 22 times
Been thanked: 79 times

Re: Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7

Post by fatdoguser »

@Caramel

I need help for the problem of compiling and using a newer version of Glibc

May be of help ... Fatdog is running glibc 2.37, and its recipe for compiling is within the glibc-2.37-x86_64-2.tar.gz file https://distro.ibiblio.org/fatdog/source/900/recipes/

When already running Fatdog its a simple matter of just copying the recipe into the /usr/src/pkgbuild/pkg folder area and running the build script. For others you need the build system as outlined here https://oldforum.puppylinux.com/viewtopic.php?t=109961

See also https://distro.ibiblio.org/fatdog/web/f ... ml#method5

Fatdog pkgbuild system is located in /usr/src/pkgbuild (when Fatdog devx is loaded). It comes with samples. Put your own recipe in "pkg" directory. Finished package will be stored in "output" directory. "src" directory will contain the downloaded source tarball.

The "source" directory contains the recipes used to create installed Fatdog packages.

So under Fatdog with the devX sfs loaded something like copy the recipe into
/usr/src/pkgbuild/pkg/glibc
In /usr/pkg/pkgbuild run
./build-pkg.sh glibc
where the end product is written/stored in the 'output' directory.

traderx247215
Posts: 6
Joined: Fri Nov 03, 2023 11:30 pm
Been thanked: 3 times

Re: Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7

Post by traderx247215 »

Caramel wrote: Sun Feb 04, 2024 6:55 pm

I need help for the problem of compiling and using a newer version of Glibc than the one installed.

szept wrote: Fri Jan 05, 2024 9:07 pm

Does any1 know if the latest EasyOS release includes GLIBC update to 2.36? Cannot play my favourite game since they updated it few days ago and this is my crash error:

Code: Select all

# ./medivia
./medivia: /usr/lib/libc.so.6: version `GLIBC_2.36' not found (required by ./medivia)

After this bug has been spotted, they've added:
Dear players

Due to certain upgrades the Linux version of the game client does now require glibc version of 2.36 to run properly.

Forum users advise to either update linux distro, or do the following steps:
1) Download the files:
Go to http://ftp.gnu.org/gnu/glibc/ and download glibc-2.36.tar.gz or wget it (http://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.gz)

2) Unpack:
tar zxvf glibc-2.36.tar.gz

3) Create temporary build directory:
cd glibc-2.36
mkdir build
cd build

4) run configure script from there:
../configure --prefix=/opt/glibc-2.36

5) Make, & install:
make -j4
sudo make install

6) You can now start medivia as follows:
LD_PRELOAD='/opt/glibc-2.36/lib/libm.so.6' ./medivia

I recommend creating a "start.sh" script with this command and then run that everytime.

In some answers of this message (first answer : viewtopic.php?p=107643#p107643) I tried the method explained in the message.

In summary, I compiled glibc-2.36 (in Easy 5.6.3) (compiled as explained in the message), shared it as a pet with @szept. He tested with the recommended command (LD_PRELOAD='/opt/glibc-2.36/lib/libm.so.6' ./medivia) (and variants) without success.

I only understand now that the problem is with my compilation.

Output of the command ldd :

Code: Select all

# ldd /opt/glibc-2.36/lib/libc.so.6 
	/opt/glibc-2.36/lib/ld-linux-x86-64.so.2 => /usr/lib/ld-linux-x86-64.so.2 (0x00007fc3c9224000)
	linux-vdso.so.1 (0x00007ffc7b28d000)

Code: Select all

# ldd /opt/glibc-2.36/lib/ld-linux-x86-64.so.2 
	statically linked

Does anyone understand why a file from glibc-2.36 is statically linked to the installed glibc and especially how to prevent that ?

Thanks in advance

you can try to use these slackware packages to update glibc

https://www.mediafire.com/folder/istkc3 ... glibc_2.37

Attachments
Screenshot(1).png
Screenshot(1).png (241.57 KiB) Viewed 488 times
Screenshot.png
Screenshot.png (213.02 KiB) Viewed 488 times
traderx247215
Posts: 6
Joined: Fri Nov 03, 2023 11:30 pm
Been thanked: 3 times

Re: Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7

Post by traderx247215 »

just use packages:
glibc-profile-2.38-x86_64-3.txz

aaa_glibc-solibs-2.38-x86_64-3.txz

or

glibc-profile-2.37-x86_64-3.txz

aaa_glibc-solibs-2.37-x86_64-3.txz

i post the link in my post above

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7

Post by Caramel »

Thanks @fatdoguser and @traderx247215 for your suggestions.

But I am not sure that that recipes or binaries prepared for other distributions are compatible with Easy. Glibc is a basic component necessary to others packages that was already compiled for EasyOS

szept
Posts: 146
Joined: Wed Jan 11, 2023 5:37 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Compiled Glibc-2.36 doesn't work in EasyOS versions 5.6.3 to 5.7

Post by szept »

Caramel wrote: Wed Feb 07, 2024 8:55 am

Medivia started with the command :

Code: Select all

/opt/glibc-2.36/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.36/lib:/usr/lib ./medivia

Holy Moly - it finally works!!! Awesome job mate, thanks a lot! Medevia I missed you...

Code: Select all

/opt/glibc-2.36/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.36/lib:/usr/lib ./medivia
== application started at Feb 08 2024 20:25:13
Medivia 7.27 (COMADSOFT) built on Jan  3 2024 for arch x86-64
Client startup took 2313.61 ms

Running live-USB EasyOS-64_6.3.1

...and taxes are theft! -.-
https://321my.wordpress.com/pw/

Post Reply

Return to “EasyOS”