Converter website: deployed relinker needs __aps5_* imports that the pinned v0.1.1 libraries do not export (fresh conversions fail with undefined symbol) #5381

Closed
opened 2026-10-13 18:24:29 +00:00 by firasotoom85-droid · 7 comments
firasotoom85-droid commented 2026-10-13 18:24:29 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by firasotoom85-droid on 2026-10-13T18:24:29Z.


What happens

Converting any title with the online converter (https://boykopovar.github.io/AnyPS5/, Linux target) and running the result as documented fails at startup:

$ chmod +x eboot.bin.elf && LD_LIBRARY_PATH=libs ./eboot.bin.elf
./eboot.bin.elf: symbol lookup error: ~/ps5/app0/sce_module/libc.prx.esbak.guest.prx: undefined symbol: __aps5_get_pending_module_args_nid_no_patch

Why

The deployed converter is newer than the libraries it bundles:

  • The site's relinker emits guest modules that import __aps5_get_pending_module_args_nid_no_patch and __aps5_set_module_init_result_nid_no_patch (on main: core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp).
  • release.json pins the libraries to v0.1.1, whose libkernel.prx predates the definitions added on main (core/libs/prx/libkernel/Module/src/Module.cpp).

Evidence

  • https://boykopovar.github.io/AnyPS5/release.json → "tag": "v0.1.1".
  • The libs/ in the converter output matches prx-linux-v0.1.1.tar.gz: identical file list, and e.g. libkernel.prx sha256 c6ebacf65894d72fee239bede58aa35e70a020ce38c66a235b0bb2c0e65c8e26, libSceVideoOut.prx sha256 593a15d6e6a6477cdb0c6ce9fd799606a4832bac36ad703c10ca596c338d5897 in both.
  • nm -D --undefined-only app0/sce_module/*.guest.prx | grep aps5 → both symbols undefined.
  • nm -D --defined-only libs/libkernel.prx | grep aps5 → empty.
  • Every other undefined symbol of the guest module resolves against the v0.1.1 libraries (only host-provided __tls_get_addr remains).

Expected

Either pin the deployed WASM relinker to the release that release.json points at, or publish libraries built from the same commit as the deployed relinker.

The Windows libraries should be affected by the same skew (same pinned release), though I only reproduced this on Linux.


Incidentally, with the v0.1.1 pair the guest RUNPATH $ORIGIN/libs does not apply to transitive dependencies and the per-library RUNPATHs are empty, so without LD_LIBRARY_PATH the first stop on the same conversion is libSceMouse.prx: cannot open shared object file. The current main libraries carry RUNPATH=$ORIGIN per library and resolve without it.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5835536146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381). Originally posted by [firasotoom85-droid](https://github.com/firasotoom85-droid) on 2026-10-13T18:24:29Z. --- **What happens** Converting any title with the online converter (https://boykopovar.github.io/AnyPS5/, Linux target) and running the result as documented fails at startup: ``` $ chmod +x eboot.bin.elf && LD_LIBRARY_PATH=libs ./eboot.bin.elf ./eboot.bin.elf: symbol lookup error: ~/ps5/app0/sce_module/libc.prx.esbak.guest.prx: undefined symbol: __aps5_get_pending_module_args_nid_no_patch ``` **Why** The deployed converter is newer than the libraries it bundles: - The site's relinker emits guest modules that import `__aps5_get_pending_module_args_nid_no_patch` and `__aps5_set_module_init_result_nid_no_patch` (on main: `core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp`). - `release.json` pins the libraries to v0.1.1, whose `libkernel.prx` predates the definitions added on main (`core/libs/prx/libkernel/Module/src/Module.cpp`). **Evidence** - `https://boykopovar.github.io/AnyPS5/release.json` → `"tag": "v0.1.1"`. - The `libs/` in the converter output matches `prx-linux-v0.1.1.tar.gz`: identical file list, and e.g. `libkernel.prx` sha256 `c6ebacf65894d72fee239bede58aa35e70a020ce38c66a235b0bb2c0e65c8e26`, `libSceVideoOut.prx` sha256 `593a15d6e6a6477cdb0c6ce9fd799606a4832bac36ad703c10ca596c338d5897` in both. - `nm -D --undefined-only app0/sce_module/*.guest.prx | grep aps5` → both symbols undefined. - `nm -D --defined-only libs/libkernel.prx | grep aps5` → empty. - Every other undefined symbol of the guest module resolves against the v0.1.1 libraries (only host-provided `__tls_get_addr` remains). **Expected** Either pin the deployed WASM relinker to the release that `release.json` points at, or publish libraries built from the same commit as the deployed relinker. The Windows libraries should be affected by the same skew (same pinned release), though I only reproduced this on Linux. *** Incidentally, with the v0.1.1 pair the guest `RUNPATH` `$ORIGIN/libs` does not apply to transitive dependencies and the per-library RUNPATHs are empty, so without `LD_LIBRARY_PATH` the first stop on the same conversion is `libSceMouse.prx: cannot open shared object file`. The current main libraries carry `RUNPATH=$ORIGIN` per library and resolve without it.
VitzS7 commented 2026-10-13 19:28:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by VitzS7 on 2026-10-13T19:28:37Z.


Confirmed from a second title, with a different symbol, so this is a drift rather than one missing export.

ScreenTester5 (PPSA69420), a homebrew title, unwrapped with pkg-to-anyps5 and converted through the deployed site (Linux, in-memory download, libraries v0.1.1 as release.json pins them):

$ chmod +x eboot.elf && LD_LIBRARY_PATH=libs ./eboot.elf
./eboot.elf: symbol lookup error: ./eboot.elf: undefined symbol: zl7hupSO0C0

zl7hupSO0C0 is sceKernelSendNotificationRequest (python3 tools/nid_names.py --nid zl7hupSO0C0 answers already-implemented), and none of the libs/*.prx the site bundled defines it (nm -D --defined-only libs/*.prx | grep zl7hupSO0C0 is empty) while current main does implement it. Same shape as the __aps5_* case in the report: the libraries pinned by release.json are older than the relinker the site runs.

Picking a newer tag, or publishing the libraries from the same revision the relinker was built from, would fix both symbols at once.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6153474800 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6153474800). Originally posted by [VitzS7](https://github.com/VitzS7) on 2026-10-13T19:28:37Z. --- Confirmed from a second title, with a different symbol, so this is a drift rather than one missing export. ScreenTester5 (PPSA69420), a homebrew title, unwrapped with `pkg-to-anyps5` and converted through the deployed site (Linux, in-memory download, libraries v0.1.1 as `release.json` pins them): ``` $ chmod +x eboot.elf && LD_LIBRARY_PATH=libs ./eboot.elf ./eboot.elf: symbol lookup error: ./eboot.elf: undefined symbol: zl7hupSO0C0 ``` `zl7hupSO0C0` is `sceKernelSendNotificationRequest` (`python3 tools/nid_names.py --nid zl7hupSO0C0` answers `already-implemented`), and none of the `libs/*.prx` the site bundled defines it (`nm -D --defined-only libs/*.prx | grep zl7hupSO0C0` is empty) while current `main` does implement it. Same shape as the `__aps5_*` case in the report: the libraries pinned by `release.json` are older than the relinker the site runs. Picking a newer tag, or publishing the libraries from the same revision the relinker was built from, would fix both symbols at once.
MarcZX10 commented 2026-10-13 21:29:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T21:29:13Z.


The second title confirms the same deployment version skew and a different missing symbol (sceKernelSendNotificationRequest), so this is now reproducible across a commercial title and homebrew. There is a concrete site/release fix candidate: keep the deployed relinker and its bundled PRX libraries on the same revision or release tag. Is the website source/deployment configuration maintained in this repository, and can you point to the relevant workflow/config path? That will tell us whether a repository PR can fix the mismatch or whether the change belongs in the separate site project.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6155597081 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6155597081). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T21:29:13Z. --- The second title confirms the same deployment version skew and a different missing symbol (`sceKernelSendNotificationRequest`), so this is now reproducible across a commercial title and homebrew. There is a concrete site/release fix candidate: keep the deployed relinker and its bundled PRX libraries on the same revision or release tag. Is the website source/deployment configuration maintained in this repository, and can you point to the relevant workflow/config path? That will tell us whether a repository PR can fix the mismatch or whether the change belongs in the separate site project.
iDiesIrae-Req commented 2026-10-14 05:14:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by iDiesIrae-Req on 2026-10-14T05:14:32Z.


Confirmed for the Windows target too, with a third missing symbol.

DOOM Native Port (PPSA99666, catalog homebrew, v1.1.1). The eboot.bin and sce_module/libc.prx were unwrapped from their fake-signed SELF to plain ELF first, then converted on the site: Windows .exe, "Download in memory". The result's libs/ has 98 .prx plus the three MinGW DLLs. Windows 11, RTX 4070.

Loading PRX: ...\libs\libc.prx -> OK
FAIL: unresolved ELF import vZMcAfsA31I from libSceLibcInternal.prx

vZMcAfsA31I is setbuf, added on main in 7789c0a57 (2026-10-05), after v0.1.1 (2026-09-28).

The site's eboot.exe itself is fine. With libs/*.prx replaced by libraries built from main a5f493f90 (MinGW GCC 15.2.0 r7, Release), the same eboot.exe reaches DOOM's menu: 59.95 fps for 40 s, no errors. So on Windows, too, the only problem is the library version the site bundles.

AI-assisted: yes (Claude Code); all runs were on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6161436573 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6161436573). Originally posted by [iDiesIrae-Req](https://github.com/iDiesIrae-Req) on 2026-10-14T05:14:32Z. --- Confirmed for the **Windows** target too, with a third missing symbol. DOOM Native Port (PPSA99666, catalog homebrew, v1.1.1). The `eboot.bin` and `sce_module/libc.prx` were unwrapped from their fake-signed SELF to plain ELF first, then converted on the site: Windows `.exe`, "Download in memory". The result's `libs/` has 98 `.prx` plus the three MinGW DLLs. Windows 11, RTX 4070. ``` Loading PRX: ...\libs\libc.prx -> OK FAIL: unresolved ELF import vZMcAfsA31I from libSceLibcInternal.prx ``` `vZMcAfsA31I` is `setbuf`, added on main in 7789c0a57 (2026-10-05), after v0.1.1 (2026-09-28). The site's `eboot.exe` itself is fine. With `libs/*.prx` replaced by libraries built from main a5f493f90 (MinGW GCC 15.2.0 r7, Release), the same `eboot.exe` reaches DOOM's menu: 59.95 fps for 40 s, no errors. So on Windows, too, the only problem is the library version the site bundles. AI-assisted: yes (Claude Code); all runs were on my machine.
MarcZX10 commented 2026-10-14 05:33:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T05:33:27Z.


The Windows report confirms the same release/library version skew on a third title. I found PR #5409, which proposes building the browser relinker and platform libraries from the same tagged release and has a focused release-pin test. GitHub closed it automatically for the author’s open-PR limit; the closure comment gives no technical rejection. Since that PR already contains the proposed fix under its author’s contribution, I have not opened a duplicate.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6161661434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6161661434). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-14T05:33:27Z. --- The Windows report confirms the same release/library version skew on a third title. I found PR #5409, which proposes building the browser relinker and platform libraries from the same tagged release and has a focused release-pin test. GitHub closed it automatically for the author’s open-PR limit; the closure comment gives no technical rejection. Since that PR already contains the proposed fix under its author’s contribution, I have not opened a duplicate.
AMRYB commented 2026-10-14 07:43:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by AMRYB on 2026-10-14T07:43:17Z.


I implemented a fix for this with AI assistance from OpenAI Codex: #5710.

The change publishes the complete web converter and the Linux/Windows libraries from the same release commit, and prevents Pages from publishing mismatched or incomplete assets. Regression tests and real WASM conversion checks passed; the validation details are in the PR.

Please take a look at #5710. It was automatically closed by the open-PR limit while my #3456 remains open, so the implementation is available for review but has not been merged or deployed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6163456624 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6163456624). Originally posted by [AMRYB](https://github.com/AMRYB) on 2026-10-14T07:43:17Z. --- I implemented a fix for this with AI assistance from OpenAI Codex: #5710. The change publishes the complete web converter and the Linux/Windows libraries from the same release commit, and prevents Pages from publishing mismatched or incomplete assets. Regression tests and real WASM conversion checks passed; the validation details are in the PR. Please take a look at #5710. It was automatically closed by the open-PR limit while my #3456 remains open, so the implementation is available for review but has not been merged or deployed.
jotitadev commented 2026-10-14 15:09:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-14T15:09:32Z.


Since v0.1.2 was published, the converter site's release.json points to v0.1.2, so the __aps5_*, zl7hupSO0C0 and setbuf imports reported here should resolve now. A retest would confirm it.

The skew is structural, though. pages.yml builds the WASM relinker from main on every push, while tools/build_web.py takes the libraries from the latest release, so the gap reopens as soon as main adds an import the release lacks. #5409 and #5710 both proposed building the two from one release; both were closed by the open-PR limit, not on technical grounds.

Until then, the matching offline pair (relinker-v0.1.2 + prx-<os>-v0.1.2) avoids the mismatch.

Written with AI assistance (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6171550414 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6171550414). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-14T15:09:32Z. --- Since v0.1.2 was published, the converter site's [`release.json`](https://boykopovar.github.io/AnyPS5/release.json) points to v0.1.2, so the `__aps5_*`, `zl7hupSO0C0` and `setbuf` imports reported here should resolve now. A retest would confirm it. The skew is structural, though. `pages.yml` builds the WASM relinker from `main` on every push, while `tools/build_web.py` takes the libraries from the latest release, so the gap reopens as soon as `main` adds an import the release lacks. #5409 and #5710 both proposed building the two from one release; both were closed by the open-PR limit, not on technical grounds. Until then, the matching offline pair (`relinker-v0.1.2` + `prx-<os>-v0.1.2`) avoids the mismatch. Written with AI assistance (Claude Code).
firasotoom85-droid commented 2026-10-14 16:50:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by firasotoom85-droid on 2026-10-14T16:50:36Z.


Retested against the current pin (release.json → v0.1.2), with the matching pairs relinker-v0.1.2 + prx-linux-v0.1.2 / prx-windows-v0.1.2.

The reported symbols now resolve in the pinned archives:

symbol v0.1.2 Linux v0.1.2 Windows
__aps5_get_pending_module_args_nid_no_patch libkernel.prx libkernel.prx
__aps5_set_module_init_result_nid_no_patch libkernel.prx libkernel.prx
zl7hupSO0C0 (sceKernelSendNotificationRequest) libkernel.prx libkernel.prx
vZMcAfsA31I (setbuf) libc.prx libc.prx
  • End to end with the matched pair: a title that ships sce_module/libc.prx converts into a guest module whose only __aps5_* imports are the two above, and tools/import_audit.py reports 0 absent of 586 unique imports.
  • One caveat for the Windows case: vZMcAfsA31I is exported by libc.prx only — libSceLibcInternal.prx still does not export it, while the earlier Windows report named libSceLibcInternal.prx as the importing library. PE binding is per-DLL and the audit tool documents that imports exported by a library other than the one they name can fail on Windows, so that title is worth a Windows retest before this is closed.
  • Related, for Linux conversions made through the site right now: the pinned v0.1.2 libraries still contain the #5608 YNw9Xk5iNWo stub, so a title aborts at its first flip with
    [videoout] presentation failed: YNw9Xk5iNWo not implemented.
    It is fixed on main by #5738 and stops with libraries built past v0.1.2; user-side workaround is LD_PRELOAD=libs/libSceMouse.prx.
  • The structural skew itself is unchanged: pages.yml builds relinker_web from the checked-out tree while tools/build_web.py --libraries downloads releases/latest; #5409 and #5710 covered that and were closed by the open-PR limit.

AI-assisted (opencode).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173567805 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5381#issuecomment-6173567805). Originally posted by [firasotoom85-droid](https://github.com/firasotoom85-droid) on 2026-10-14T16:50:36Z. --- Retested against the current pin (`release.json` → v0.1.2), with the matching pairs `relinker-v0.1.2` + `prx-linux-v0.1.2` / `prx-windows-v0.1.2`. The reported symbols now resolve in the pinned archives: | symbol | v0.1.2 Linux | v0.1.2 Windows | |---|---|---| | `__aps5_get_pending_module_args_nid_no_patch` | `libkernel.prx` | `libkernel.prx` | | `__aps5_set_module_init_result_nid_no_patch` | `libkernel.prx` | `libkernel.prx` | | `zl7hupSO0C0` (`sceKernelSendNotificationRequest`) | `libkernel.prx` | `libkernel.prx` | | `vZMcAfsA31I` (`setbuf`) | `libc.prx` | `libc.prx` | - End to end with the matched pair: a title that ships `sce_module/libc.prx` converts into a guest module whose only `__aps5_*` imports are the two above, and `tools/import_audit.py` reports 0 absent of 586 unique imports. - One caveat for the Windows case: `vZMcAfsA31I` is exported by `libc.prx` only — `libSceLibcInternal.prx` still does not export it, while the earlier Windows report named `libSceLibcInternal.prx` as the importing library. PE binding is per-DLL and the audit tool documents that imports exported by a library other than the one they name can fail on Windows, so that title is worth a Windows retest before this is closed. - Related, for Linux conversions made through the site right now: the pinned v0.1.2 libraries still contain the #5608 `YNw9Xk5iNWo` stub, so a title aborts at its first flip with `[videoout] presentation failed: YNw9Xk5iNWo not implemented`. It is fixed on main by #5738 and stops with libraries built past v0.1.2; user-side workaround is `LD_PRELOAD=libs/libSceMouse.prx`. - The structural skew itself is unchanged: `pages.yml` builds `relinker_web` from the checked-out tree while `tools/build_web.py --libraries` downloads `releases/latest`; #5409 and #5710 covered that and were closed by the open-PR limit. AI-assisted (opencode).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#5381
No description provided.