Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running in Linux: GLIBC not found #121

Open
Daveyr opened this issue Jul 31, 2019 · 12 comments
Open

Error running in Linux: GLIBC not found #121

Daveyr opened this issue Jul 31, 2019 · 12 comments

Comments

@Daveyr
Copy link

Daveyr commented Jul 31, 2019

I am running Ubuntu 18.04.2 LTS with 64-bit Java installed. I have successfully unzipped the 0.9.26.0 Linux version of the software from the flashtool.net site.

When running ./FlashTool as root I receive the following error:

Used java home : ./x10flasher_lib/linjre64
ldd: x10flasher_lib/linux/lib32/udev/libusbx-1.0.so.0.1.0: No such file or directory
ls: cannot access './x10flasher_lib/swtlin/x86/*jar': No such file or directory
Error: dl failure on line 597
Error: failed /home/ubuntu/Documents/phone/FlashTool/x10flasher_lib/linjre64/lib/server/libjvm.so, because /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/ubuntu/Documents/phone/FlashTool/x10flasher_lib/linjre64/lib/server/libjvm.so)

There is an odd reference here to GLIBC_2.29. What does it mean? I have verified that there is a valid file called /lib/x86_64-linux-gnu/libm.so.6 but I cannot verify its version.

@Daveyr
Copy link
Author

Daveyr commented Jul 31, 2019

I should note that it's not surprising ls: cannot access './x10flasher_lib/swtlin/x86/*jar'. This is because the correct folder should be .../x86_64/jar. It's not obvious in the FlashTool script where to edit this though.

@lin0lin0
Copy link

lin0lin0 commented Sep 2, 2019

@Daveyer,
Have exact same error as you got at start - just on Lubuntu 18.04.2 LTS.

Before I found your ticket I thought it is about installed glibcc in my system:

lino@lu18:~/bin$ ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
lino@lu18:~/bin$ 

Is your second entry "kind of solution"? If so could you point me which line to change in the script?

Cheers
lin0lin0

@Daveyr
Copy link
Author

Daveyr commented Sep 2, 2019 via email

@Androxyde
Copy link
Owner

Hi, if you have a working openjdk 12 on Ubuntu 18.04, use it in place of the bundled one.
It seems the bundled one (taken right from openjdk website) is built against a more recent GLIBC than the one you have in your system

@skupfer
Copy link

skupfer commented Sep 26, 2019

Tried openjdk 13 on Ubuntu 18 ... Same error.

@testbughub
Copy link

I get a similar error on Debian 10.

Error: dl failure on line 603
Error: failed /home/lamarca/Downloads/FlashTool/x10flasher_native/jre/lib/server/libjvm.so, because /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/lamarca/Downloads/FlashTool/x10flasher_native/jre/lib/server/libjvm.so)

@stevenengland
Copy link

Tried openjdk 13 on Ubuntu 18 ... Same error.

Hi, did you try these steps?

  1. Install a jre: sudo apt-get install openjdk-11-jre
  2. Edit the startup script: nano ./Flashtool
  3. Change the line that points to the JAVA Home:
    #export JAVA_HOME=$working_dir/x10flasher_native/jre
    export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

After that I am able to launch the app.

@kubriel
Copy link

kubriel commented Nov 19, 2020

can confirm.

3. Change the line that points to the JAVA Home:
   #export JAVA_HOME=$working_dir/x10flasher_native/jre
   export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

After that I am able to launch the app.

@RuhanSA079
Copy link

Hello, I am facing the same issue, been running Flashtool on Windows OK for a while, but it seems like the Linux variant is more picky?
Not running as root but Sony/SonyEriccson Vendor ID found on your udev rules
if Flashing didn't work well, run flashtool as root
Error: dl failure on line 534
Error: failed /home/ruhan/Downloads/flashtool/FlashTool/x10flasher_native/jre/lib/server/libjvm.so, because /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /home/ruhan/Downloads/flashtool/FlashTool/x10flasher_native/jre/lib/server/libjvm.so)

I have installed OpenJDK 11 JRE as @stevenengland mentioned, but still no dice.
Also exported the JAVA_HOME env variable.
Tried it with Ubuntu 20.04 as well, it then complains about the same, but GLIBC 2.32.

@comradekingu
Copy link

comradekingu commented Jan 13, 2021

Remember to also remove the "$working_dir/" if using the one on the system.
:)

If the system one is too old and it says:

Error: LinkageError occurred while loading main class gui.Main
java.lang.UnsupportedClassVersionError: gui/Main has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0

You can download v15 from https://jdk.java.net/ put the extracted jdk-15.0.1 folder in the FlashTool folder and use

export JAVA_HOME=$working_dir/jdk-15.0.1


Edit: (For Sony Xperia Z3 compact)

If you are putting in your unlock code and get:

FAILED (remote: Incorrect format for unlock data. Should be on the form "0x)

Add 0x in front of your code as per

oem unlock 0xYOURCODE

@boshtannik
Copy link

It helped, i could run This tool.

@luisvalenzuelar
Copy link

@comradekingu this answer worked in Ubuntu 20.04, but folder name was jdk-15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests