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 initializing native ld-linux.so.2 #24

Closed
baptistebeaumes opened this issue Jun 21, 2019 · 7 comments
Closed

Error initializing native ld-linux.so.2 #24

baptistebeaumes opened this issue Jun 21, 2019 · 7 comments

Comments

@baptistebeaumes
Copy link

Hi,
I found your project and it sounds very interesting.
I have an X86 project and I need to make him works on ARM.

I have this error :
Error initializing native ld-linux.so.2 (last dlerror is ld-linux.so.2: cannot open ...)

But the file is here, i probably missed something.

Anyway, i would also have another commercial question, may i have your mail address ?

Best regards,
Baptiste

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 21, 2019

Hi.

For your issue at init, it's strange, because ld-linux.so.2 (or ld-linux.so.3) is a critical part and should load. Can you run with the export BOX86_LOG=DEBUG to have more detailles log?

About my email, you should have it in your notification mails.

@baptistebeaumes
Copy link
Author

A screenshot
image

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 21, 2019

Ok.
Now, on your system, how is named your ld-linux.so? It should be in /lib. common version are ld-linux.so.2 and ld-linux.so.3

An easy way to find out is to simply run ldd on box86:
On my system:

ldd box86
        libm.so.6 => /mnt/utmp/codeblocks/usr/lib/libm.so.6 (0x4018e000)
        libdl.so.2 => /mnt/utmp/codeblocks/usr/lib/libdl.so.2 (0x40172000)
        librt.so.1 => /mnt/utmp/codeblocks/usr/lib/librt.so.1 (0x400cb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x400da000)
        libgcc_s.so.1 => /mnt/utmp/codeblocks/usr/lib/libgcc_s.so.1 (0x400fe000)
        libc.so.6 => /lib/libc.so.6 (0x40209000)
        /lib/ld-linux.so.3 (0x4002c000)

@baptistebeaumes
Copy link
Author

I have a link to the x86 version, shame on me
image

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 21, 2019

ah ok.
I can add "ld-linux-armhf.so.3" to the list of tried name, that should do the trick.
If you want to try on your side, in src/wrappedldlinux.c change line 25 from
#define ALTNAME "ld-linux.so.2"
to
#define ALTNAME "ld-linux-armhf.so.3"

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 21, 2019

Anyway, I have just pushed a change, it should work for you now.

@baptistebeaumes
Copy link
Author

I have recompile, it works. I will continue, thanks. You can close this issue.

@ptitSeb ptitSeb closed this as completed Jun 21, 2019
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

2 participants