box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Error loading needed lib libGLX.so.0

Open impost0r opened this issue 2 years ago • 5 comments

Getting the following error on my ARM64 VM (Apple M1 Max)

Error loading needed lib libGLX.so.0 Error loading one of needed lib Error initializing needed lib libQt6Gui.so.6 Error loading one of needed lib Error initializing needed lib libQt6Widgets.so.6 Error loading one of needed lib Error initializing needed lib libbinaryninjaui.so.1 Error loading one of needed lib Error: loading needed libs in elf /home/user/binaryninja/binaryninja

Linux debian 5.10.0-12-arm64 #1 SMP Debian 5.10.103-1 (2022-03-07) aarch64 GNU/Linux

impost0r avatar Mar 17 '22 15:03 impost0r

libGLX is not wrapped yet. You need to use an x86_64 version of this one for now.

ptitSeb avatar Mar 17 '22 15:03 ptitSeb

Alright. Works in loading the library but still SIGSEGV (even with the environment variable) on trying to load Binja.

impost0r avatar Mar 27 '22 12:03 impost0r

And with IDA Free's installer:

user@debian:~/Downloads$ ./idafree*
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096
Box64 with Dynarec v0.1.7 35e35ec built on Mar 27 2022 07:11:28
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 45 Env var
Looking for ./idafree77_linux.run
Using native(wrapped) libm.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) librt.so.1
Using emulated /tmp/brb08ba7
Using emulated /tmp/bra0b412
Using emulated /tmp/br8e38bd
Using emulated /tmp/br2f0a52
Using emulated /tmp/br4ebdcc
Using emulated /tmp/br8ece80
Using emulated /tmp/br9745af
Using native(wrapped) libgtk-x11-2.0.so.0
Using native(wrapped) libgdk-x11-2.0.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libatk-1.0.so.0
Error: Global Symbol gtk_minor_version not found, cannot apply R_X86_64_GLOB_DAT @0xffff92dd5770 ((nil)) in /tmp/br9745af
Error: Global Symbol gtk_micro_version not found, cannot apply R_X86_64_GLOB_DAT @0xffff92dd5788 ((nil)) in /tmp/br9745af
Error: Global Symbol gtk_major_version not found, cannot apply R_X86_64_GLOB_DAT @0xffff92dd5790 ((nil)) in /tmp/br9745af
Error: Symbol gtk_button_clicked not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd4790 (0x1d14e) in /tmp/br9745af
Error: Symbol gtk_size_group_remove_widget not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd47d0 (0x1d1ce) in /tmp/br9745af
Error: Symbol gtk_tree_selection_selected_foreach not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd4848 (0x1d2be) in /tmp/br9745af
Error: Symbol gtk_layout_get_vadjustment not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd4a50 (0x1d6ce) in /tmp/br9745af
Error: Symbol gtk_size_group_new not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd4b60 (0x1d8ee) in /tmp/br9745af
Error: Symbol gdk_pixbuf_animation_get_static_image not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd4cb8 (0x1db9e) in /tmp/br9745af
Error: Symbol gtk_size_group_add_widget not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd4db0 (0x1dd8e) in /tmp/br9745af
Error: Symbol gtk_layout_get_hadjustment not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd5050 (0x1e2ce) in /tmp/br9745af
Error: Symbol gdk_pixbuf_animation_new_from_file not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd50c8 (0x1e3be) in /tmp/br9745af
Error: Symbol g_object_weak_ref not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd51e8 (0x1e5fe) in /tmp/br9745af
Error: Symbol gdk_pixbuf_animation_is_static_image not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd53a8 (0x1e97e) in /tmp/br9745af
Error: Symbol gtk_vbutton_box_new not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd54d0 (0x1ebce) in /tmp/br9745af
Error: Symbol gtk_scale_get_digits not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd5648 (0x1eebe) in /tmp/br9745af
Error: Symbol gtk_tree_view_column_set_cell_data_func not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92dd56e0 (0x1efee) in /tmp/br9745af
Error: relocating Plt symbols in elf br9745af
Error initializing needed lib br9745af
Warning: Cannot dlopen("/tmp/br9745af"/0x9f790a70, 102)
18520|SIGSEGV @0x649436e4 (???(/usr/local/bin/box64+0x649436e4)) (x64pc=0x1e3bf/???:"???", rsp=0xffff94fa6c28, stack=0xffff947ab000:0xffff94fab000 own=(nil) fp=0xffff94fa6cb0), for accessing 0x1e3be (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
Segmentation fault

impost0r avatar Mar 27 '22 12:03 impost0r

That's some gtk symbol that need wrapping. Also, this is a completly different issue, please open a new ticket for this.

ptitSeb avatar Mar 27 '22 12:03 ptitSeb