ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.81k stars 273 forks source link

Another missing symbol at Cisco Packet Tracer #459

Open GuckTubeYT opened 1 year ago

GuckTubeYT commented 1 year ago

When i do box64 ./packettracer at /opt/pt folder And then it is return

/opt/pt/packettracer: line 8:  4850 Illegal instruction     ./PacketTracer "$@" > /dev/null 2>&1

All Logs

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Cores:8          Params database has 6 entries
Box64 with Dynarec v0.2.1  built on Nov 28 2022 15:34:43
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/               Counted 12 Env var                              Looking for ./packettracer                      Not an ELF file (sign=#!/b)
Error: reading elf header of /opt/pt/packettracer, try to launch natively instead
Starting Packet Tracer 8.2.0                    /opt/pt/packettracer: line 8:  4850 Illegal instruction     ./PacketTracer "$@" > /dev/null 2>&1

And the APT like that too (box64 dpkg -i pt.deb && box64 apt --fix-broken install)

Setting up packettracer:amd64 (8.2) ...         /var/lib/dpkg/info/packettracer.postinst: line 3:  3595 Illegal instruction     sudo xdg-desktop-menu install /usr/share/applications/cisco-pt.desktop                                          /var/lib/dpkg/info/packettracer.postinst: line 4:  3596 Illegal instruction     sudo xdg-desktop-menu install /usr/share/applications/cisco-ptsa.desktop                                        /var/lib/dpkg/info/packettracer.postinst: line 5:  3597 Illegal instruction     sudo update-mime-database /usr/share/mime                       /var/lib/dpkg/info/packettracer.postinst: line 6:  3598 Illegal instruction     sudo gtk-update-icon-cache --force /usr/share/icons/gnome       /var/lib/dpkg/info/packettracer.postinst: line 7:  3599 Illegal instruction     sudo xdg-mime default cisco-ptsa.desktop x-scheme-handler/pttp  /var/lib/dpkg/info/packettracer.postinst: line 15:  3600 Illegal instruction     sudo ln -sf $PTDIR/packettracer /usr/local/bin/packettracer
/var/lib/dpkg/info/packettracer.postinst: line 18:  3603 Illegal instruction     sudo chown root:root $PTDIR/bin/updatepttp                     /var/lib/dpkg/info/packettracer.postinst: line 19:  3604 Illegal instruction     sudo chmod 4755 $PTDIR/bin/updatepttp                          /var/lib/dpkg/info/packettracer.postinst: line 66:  3724 Illegal instruction     sudo echo -e "$CONTENTS" > /etc/profile                        Processing triggers for dbus (1.12.20-0+deb10u1) ...                                            Processing triggers for libc-bin (2.28-10) ...  Processing triggers for systemd (241-7~deb10u8) ...

But yeah, Its installed successfully, but when i run the packettracer, Its return like that. Do you know why?

My Termux Architecture: AARCH64 (arm64)

GuckTubeYT commented 1 year ago

Oh, you must run packet tracer at /opt/pt/bin and then run box64 PacketTracer and Its work

GuckTubeYT commented 1 year ago

But, i run it, Its cant, idk why, maybe the symbol issue

All Logs

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Cores:8
Params database has 10 entries
Box64 with Dynarec v0.2.1  built on Nov 30 2022 11:02:30
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 19 Env var
Looking for PacketTracer
Rename process to "PacketTracer"
Using emulated libssl.so.1.1
Using emulated libcrypto.so.1.1
Using native(wrapped) libpthread.so.0
Using emulated libQt5Multimedia.so.5
Using emulated libQt5WebEngineWidgets.so.5
Using emulated libQt5PrintSupport.so.5
Using emulated libQt5Svg.so.5
Using emulated libQt5Widgets.so.5
Using emulated libQt5WebEngineCore.so.5
Using emulated libQt5Quick.so.5
Using emulated libQt5Gui.so.5
Using emulated libQt5NetworkAuth.so.5
Using emulated libQt5QmlModels.so.5
Using emulated libQt5WebChannel.so.5
Using emulated libQt5Qml.so.5
Using emulated libQt5WebSockets.so.5
Using emulated libQt5Network.so.5
Using emulated libQt5Xml.so.5
Using emulated libQt5Script.so.5
Using emulated libQt5ScriptTools.so.5
Using emulated libQt5Sql.so.5
Using emulated libQt5Positioning.so.5
Using emulated libQt5TextToSpeech.so.5
Using emulated libQt5Core.so.5
Using native(wrapped) libGL.so.1
Using emulated /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) librt.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libpulse.so.0
Using native(wrapped) libglib-2.0.so.0
Error: Global Symbol _ZTVNSt3pmr25monotonic_buffer_resourceE not found, cannot apply R_X86_64_GLOB_DAT @0x78ae98dd80 ((nil)) in libQt5Core.so.5
Using emulated libQt5QuickWidgets.so.5
Error initializing native libnss3.so (last dlerror is libnss3.so: cannot open shared object file: No such file or directory)
Using emulated /usr/lib/x86_64-linux-gnu/libnss3.so
Error initializing native libnssutil3.so (last dlerror is libnssutil3.so: cannot open shared object file: No such file or directory)
Using emulated /usr/lib/x86_64-linux-gnu/libnssutil3.so
Error initializing native libnspr4.so (last dlerror is libnspr4.so: cannot open shared object file: No such file or directory)
Using emulated /usr/lib/x86_64-linux-gnu/libnspr4.so
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXau.so.6
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libXtst.so.6
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libexpat.so.1
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libX11-xcb.so.1
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libasound.so.2
Using native(wrapped) libxml2.so.2
Error initializing native libxslt.so.1 (last dlerror is libxslt.so.1: cannot open shared object file: No such file or directory)
Using emulated /usr/lib/x86_64-linux-gnu/libxslt.so.1
Error initializing native libplc4.so (last dlerror is libplc4.so: cannot open shared object file: No such file or directory)
Using emulated /usr/lib/x86_64-linux-gnu/libplc4.so
Error initializing native libplds4.so (last dlerror is libplds4.so: cannot open shared object file: No such file or directory)
Using emulated /usr/lib/x86_64-linux-gnu/libplds4.so
Error: Global Symbol xmlGenericErrorContext not found, cannot apply R_X86_64_GLOB_DAT @0x78aac11e08 ((nil)) in /usr/lib/x86_64-linux-gnu/libxslt.so.1
Error: Global Symbol xmlGenericError not found, cannot apply R_X86_64_GLOB_DAT @0x78aac11f78 ((nil)) in /usr/lib/x86_64-linux-gnu/libxslt.so.1
Warning: Global Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_GLOB_DAT @0x78b91374b8 ((nil)) in libQt5WebEngineCore.so.5
Warning: Global Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_GLOB_DAT @0x78b91374c0 ((nil)) in libQt5WebEngineCore.so.5
Warning: Global Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_GLOB_DAT @0x78b9137b50 ((nil)) in libQt5WebEngineCore.so.5
Warning: Global Symbol sdallocx not found, cannot apply R_X86_64_GLOB_DAT @0x78b9137ee0 ((nil)) in libQt5WebEngineCore.so.5
Error: Global Symbol _ZTVNSt3pmr25monotonic_buffer_resourceE not found, cannot apply R_X86_64_GLOB_DAT @0x78b9a9bfb8 ((nil)) in libQt5Widgets.so.5
Error: Global Symbol _ZTVNSt3pmr25monotonic_buffer_resourceE not found, cannot apply R_X86_64_GLOB_DAT @0x78aeeadfc8 ((nil)) in libQt5Xml.so.5
Error: PltResolver: Symbol _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ver 43: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev@GLIBCXX_3.4.26) not found, cannot apply R_X86_64_JUMP_SLOT 0x78bf77d200 (0x78babc9406) in /opt/pt/bin/PacketTracer