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

Trine enchanted edition: fails to boot, missing symbols, ptlresolver #39

Closed
ITotalJustice opened this issue Jul 31, 2019 · 5 comments
Closed

Comments

@ITotalJustice
Copy link

Trying to run trine produces this error

BOX86_LD_LIBRARY_PATH=.:lib/lib32:lib:lib/lib:x86:lib32:/usr/i686-linux-gnu/lib:/usr/lib/arm-linux-gnueabihf box86 trine1_linux_32bit 
BOX86_LD_LIBRARY_PATH: ./:lib/lib32/:lib/:lib/lib/:x86/:lib32/:/usr/i686-linux-gnu/lib/:/usr/lib/arm-linux-gnueabihf/
Using default BOX86_PATH: ./:bin/
Counted 45 Env var
Looking for trine1_linux_32bit
Using emulated lib/lib32/libCg.so
Using native(wrapped) libm.so.6
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated lib/lib32/libCgGL.so
Using native(wrapped) libogg.so.0
Using native(wrapped) libGL.so.1
Using native(wrapped) libGLU.so.1
Using emulated libfreetype.so.6
Using native(wrapped) libpng16.so.16
Using native(wrapped) libz.so.1
Using native(wrapped) libdl.so.2
Using native(wrapped) libasound.so.2
Using emulated /usr/i686-linux-gnu/lib/libstdc++.so.6
Using emulated /usr/i686-linux-gnu/lib/libgcc_s.so.1
Error: Symbol png_set_read_user_transform_fn not found, cannot apply R_386_JMP_SLOT @0xb5e26e84 (0x6456)
Error: Symbol png_set_read_fn not found, cannot apply R_386_JMP_SLOT @0xb5e26e88 (0x6466)
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb5bd8198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb5bd8474 (0x6c1e6)
Error: Symbol pthread_setschedprio not found, cannot apply R_386_JMP_SLOT @0xa05c3f4 (0x805d436)
Error: Symbol ilogb not found, cannot apply R_386_JMP_SLOT @0xa05c588 (0x805da86)
Error: Symbol fabsf not found, cannot apply R_386_JMP_SLOT @0xa05c730 (0x805e126)
PltResolver: Ofs=0x8bc912e, Id=2024 (IP=(nil))

and this is from the debug log

9649|0x8bc5765: Calling pthread_create (AA000BA8, 00000000, 08BC5400...) =>Allocate a new X86 Emu, with EIP=0x8bc5400 and Stack=0xb53c3008/0x200000
Setup X86 Emu
 return 0x00000000
 ...  =>Run X86 (0xaa000bc8), EIP=0x8bc5400, Stack=0xb6bba008
PltResolver: Ofs=0x8bc912e, Id=2024 (IP=(nil)) return 0xB53C2450
Emulation finished, EAX=-1254349744
Free a X86 Emu (0xa9caeb20)
9651|0x871e9aa: Calling __errno_location (00000000, 00000000, 00000000...) => return 0xB53C2930
Segmentation fault
@ptitSeb
Copy link
Owner

ptitSeb commented Jul 31, 2019

I have pushed the missing functions.
The one from png16 were using callback. I used a crude method to add them, but hopefully it's enough.
If it's not, I'll do something better tomorrow.

@ITotalJustice
Copy link
Author

Thanks! got past those errors now, but it still fails to boot. I did run it with log=debug, and the output was by far the largest log i have ever seen haha.
this is from running the program like normal

Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb5b50198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb5b50474 (0x6c1e6)
box86: src/hostapi/alsa/pa_linux_alsa.c:1275: BuildDeviceList: Assertion `*alsa_snd_config' failed.
Aborted

and this is from the end of the debug, im not sure which parts to show from it as its all very similar

 return 0x00000000
4336|0x8bc5927: Calling clock_gettime(1, 0xacdf5f5c) => return 0x00000000 [3938 sec 692012550 nsec]
4336|0x8bc595f: Calling __udivdi3 (293F4606, 00000000, 000003E8...) => return 0x000A8F2C
4336|0x87618be: Calling pthread_mutex_lock(0xab277448) => return 0x00000000
4336|0x876197e: Calling pthread_mutex_unlock (AB277448, ACDF5FB8, ACDF5FBC...) => return 0x00000000
Aborted 

Thanks again for all your work, this is the most i've been interested in a project in a long time :)

@ptitSeb
Copy link
Owner

ptitSeb commented Aug 1, 2019

Well, I think the Assertion is a sign. I'll check if I see something odd in alsa. Maybe there is a wrong wrapped function there.

@ptitSeb
Copy link
Owner

ptitSeb commented Dec 31, 2020

Can you try again @ITotalJustice and close the ticket if it works.

@ptitSeb
Copy link
Owner

ptitSeb commented Oct 11, 2022

No activity for more than 2 years, and I cannot test myself, closing the ticket.

@ptitSeb ptitSeb closed this as completed Oct 11, 2022
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