@Capehill
sdl12-compat is a static library with me.
readelf -d ./src/uae
Dynamic section at offset 0x366060 contains 20 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libz.so.1]
0x00000001 (NEEDED) Shared library: [libdl.so]
0x00000001 (NEEDED) Shared library: [libstdc++.so]
0x00000001 (NEEDED) Shared library: [libgcc.so]
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000004 (HASH) 0x1000128
0x00000005 (STRTAB) 0x1000ef4
0x00000006 (SYMTAB) 0x1000594
0x0000000a (STRSZ) 1376 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x131f000
0x00000002 (PLTRELSZ) 1392 (bytes)
0x00000014 (PLTREL) RELA
0x00000017 (JMPREL) 0x1001478
0x00000007 (RELA) 0x1001454
0x00000008 (RELASZ) 1428 (bytes)
0x00000009 (RELAENT) 12 (bytes)
0x6000000e (Operating System specific: 6000000e) 0x2
0x00000000 (NULL) 0x0
File: ./libSDL.a(SDL12_compat.c.obj)
There is no dynamic section in this file.
uae config
$ ./configure CFLAGS=-O2 -mcrt=newlib ....
E-UAE running with no configuration and no rom - just like in the second video of this thread.
Serial log with libSD2 debug
[OS4_OpenLibrary] Opening 'AmigaInput.library' version 51 succeeded (address 0x695D5018)
[OS4_GetInterface] Getting interface for libbase 0x695D5018 succeeded (address 0x640AE700)
[AMIGAINPUT_Init] EnumDevices returned 0
[AMIGAINPUT_Init] Found 0 joysticks
[SDL_DestroyMutex] Destroying mutex 0x6FFAAC80
[AMIGAINPUT_CloseLibrary] Called
[OS4_DropInterface] Dropping interface 0x640AE700
[OS4_CloseLibrary] Closing library 0x695D5018
[SDL_DestroyMutex] Destroying mutex 0x6FFAACA0
[SDL_DestroyMutex] Destroying mutex 0x6FFAAC20
[OS4_FreeCursor] Called 0x62347508
[OS4_VideoQuit] Called
[OS4_FreeCursor] Called 0x6234DDF0
[OS4_QuitModes] Called
[OS4_UnlockPubScreen] Unlocking public screen 0x6912B388
[OS4_DeleteDevice] Called
[OS4_FreeSystemResources] Called
[OS4_DropInterface] Dropping interface 0x6FF451E0
[OS4_FreeSystemResources] Closing input.device
[OS4_FreeSystemResources] Freeing IORequest
[OS4_FreeSystemResources] Freeing MsgPort
[OS4_FreeSystemResources] Freeing memory pool
[OS4_FreeSystemResources] Replying app messages
[OS4_FreeSystemResources] Freeing app message port
[OS4_FreeSystemResources] Freeing user port
[OS4_UnregisterApplication] Unregistered application with id 6
[SDL_SemPost] Signalling task 0x636744F0 for semaphore 0x62346B40
[SDL_SemPost] Semaphore 0x62346B40 value 1
[SDL_SYS_WaitThread] Waiting for 'SDLTimer'
[SDL_SemWaitTimeout] Semaphore 0x62346B40 got signal 0x8000
[OS4_ExitThread] Called from task 0x636744F0, finalData 0x660FB950
[OS4_ExitThread] Removing node 0x660FB950 from children list
[OS4_ExitThread] Signalling waiters
[OS4_TimerDestroy] Destroying timer 0x660FB960 for task 0x636744F0
[OS4_TimerCleanup] Freeing timer request 0x65F9C8B0
[OS4_TimerCleanup] Freeing timer port 0x65F9EB00
[OS4_ExitThread] Exiting
[SDL_SYS_WaitThread] Some child thread terminated
[SDL_SYS_WaitThread] Thread 'SDLTimer' doesn't exist
[SDL_DestroySemaphore] Destroying semaphore 0x62346B40
[SDL_DestroyMutex] Destroying mutex 0x6FFAAB60
This test
https://github.com/libsdl-org/sdl12-co ... blob/main/test/testlock.cmakes a similar mistake
"- testlock work, but at some point it crash badly -->
"SDL thread (null) (0x4eb97e88)""
Thanks for your help and advice

Edited by smarkusg on 2023/9/24 20:22:56
Edited by smarkusg on 2023/9/24 20:23:56
Edited by smarkusg on 2023/9/24 20:24:40
Edited by smarkusg on 2023/9/24 20:36:46