feat(libs): declare the exports PPSA14632 imports that no library provides #734

Merged
alfalfa-star merged 1 commit from upstream-pr/734 into main 2026-10-07 09:00:09 +00:00
alfalfa-star commented 2026-10-05 18:22:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-05T18:22:59Z.


What

LEGO Horizon Adventures (PPSA14632) fails eager binding on imports that no library exports. This declares the 19 of them that no open pull request adds, as throwing stubs that call NotImplemented_nid_no_patch, like #645:

Library Exports
libSceAcm sceAcm_FFT, sceAcm_Panner
libSceAjmWVorbis (exported from libSceAjm.native, which the plugin's DT_NEEDED names) Z4HDpe1ZEa4, oXShHcqMcX0 (unknown names, APS5_EXPORT)
libSceGameLiveStreaming sceGameLiveStreamingGetCurrentStatus2, sceGameLiveStreamingGetProgramInfo
libSceNet sceNetResolverStartNtoaMultipleRecords
libSceNpEntitlementAccess sceNpEntitlementAccess{Poll,Request}{Service,Unified}EntitlementInfoList
libSceNpManager sceNpGetUserIdByAccountId
libSceNpWebApi2 sceNpWebApi2SetRequestTimeout
libSceVoiceQoS sceVoiceQoSGetLocalEndpointAttribute
libSceWebBrowserDialog sceWebBrowserDialogOpenForPredeterminedContent, sceWebBrowserDialogResetCookie
libkernel sceKernelAioPollRequests, sceKernelFcntl
libScePosix (in libkernel) pthread_attr_setsolosched_np

The title's 20 other missing imports are added by open pull requests, so they are not repeated here: #369/#407/#545 (Json2 InitParameter2, sceNpUnregisterNpReachabilityStateCallback), #518 (sceVideoOutVrr{Peg,Unpeg}*), #645 (10 libSceVoiceQoS exports), #649 (sceAudioOut2Set3DLatency) and #699 (sceFontGraphicsDrawupFillTexture{Image,Pattern}Object).

The stubs take no parameters; this and the unknown AjmWVorbis names are recorded in TechnicalDebt. #407, #545, #645, #699 and #730 append to some of the same files, so whichever lands later needs a small rebase there.

Tested

  • Arch Linux, GCC 16.2, Release, based on 33e9a121. Every declared NID is exported by the built libraries (checked with nm against tools/nid_names.py). Full ctest: 292/292 apart from the three wave64 pixel tests that fail on main on this GPU (RX 9070 XT, RADV).
  • PPSA14632: with these exports and the ones from the pull requests above, all of the title's imports resolve, and none of these 19 functions is called before it stops (see #730).
  • Windows not built or tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4749168095 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/734). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-05T18:22:59Z. --- ### What LEGO Horizon Adventures (PPSA14632) fails eager binding on imports that no library exports. This declares the 19 of them that no open pull request adds, as throwing stubs that call `NotImplemented_nid_no_patch`, like #645: | Library | Exports | |---|---| | libSceAcm | `sceAcm_FFT`, `sceAcm_Panner` | | libSceAjmWVorbis (exported from libSceAjm.native, which the plugin's `DT_NEEDED` names) | `Z4HDpe1ZEa4`, `oXShHcqMcX0` (unknown names, `APS5_EXPORT`) | | libSceGameLiveStreaming | `sceGameLiveStreamingGetCurrentStatus2`, `sceGameLiveStreamingGetProgramInfo` | | libSceNet | `sceNetResolverStartNtoaMultipleRecords` | | libSceNpEntitlementAccess | `sceNpEntitlementAccess{Poll,Request}{Service,Unified}EntitlementInfoList` | | libSceNpManager | `sceNpGetUserIdByAccountId` | | libSceNpWebApi2 | `sceNpWebApi2SetRequestTimeout` | | libSceVoiceQoS | `sceVoiceQoSGetLocalEndpointAttribute` | | libSceWebBrowserDialog | `sceWebBrowserDialogOpenForPredeterminedContent`, `sceWebBrowserDialogResetCookie` | | libkernel | `sceKernelAioPollRequests`, `sceKernelFcntl` | | libScePosix (in libkernel) | `pthread_attr_setsolosched_np` | The title's 20 other missing imports are added by open pull requests, so they are not repeated here: #369/#407/#545 (Json2 `InitParameter2`, `sceNpUnregisterNpReachabilityStateCallback`), #518 (`sceVideoOutVrr{Peg,Unpeg}*`), #645 (10 libSceVoiceQoS exports), #649 (`sceAudioOut2Set3DLatency`) and #699 (`sceFontGraphicsDrawupFillTexture{Image,Pattern}Object`). The stubs take no parameters; this and the unknown AjmWVorbis names are recorded in TechnicalDebt. #407, #545, #645, #699 and #730 append to some of the same files, so whichever lands later needs a small rebase there. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> - Arch Linux, GCC 16.2, Release, based on `33e9a121`. Every declared NID is exported by the built libraries (checked with `nm` against `tools/nid_names.py`). Full ctest: 292/292 apart from the three wave64 pixel tests that fail on `main` on this GPU (RX 9070 XT, RADV). - PPSA14632: with these exports and the ones from the pull requests above, all of the title's imports resolve, and none of these 19 functions is called before it stops (see #730). - Windows not built or tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
oneandonlydean commented 2026-10-05 20:30:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T20:30:09Z.


Thanks for this. #645 has landed, and it appended its libSceVoiceQoS declarations at the same place, so core/libs/prx/libSceVoiceQoS/Export.cpp now conflicts with main. sceVoiceQoSGetLocalEndpointAttribute isn't among #645's, so keeping both sides is enough.

The rest checks out: all 17 names hash to the NIDs listed in aerolib, none of them or the two AjmWVorbis NIDs is declared on main yet, and the build with this merged exports each one once.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6002364971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/734#issuecomment-6002364971). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T20:30:09Z. --- Thanks for this. #645 has landed, and it appended its libSceVoiceQoS declarations at the same place, so `core/libs/prx/libSceVoiceQoS/Export.cpp` now conflicts with `main`. `sceVoiceQoSGetLocalEndpointAttribute` isn't among #645's, so keeping both sides is enough. The rest checks out: all 17 names hash to the NIDs listed in aerolib, none of them or the two AjmWVorbis NIDs is declared on `main` yet, and the build with this merged exports each one once.
oneandonlydean commented 2026-10-06 05:34:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:34:25Z.


An update to my earlier note: the conflicts with main are different now.

  • core/libs/prx/libSceNet/Export.cpp: main has since implemented sceNetResolverGetError at the place where you add the sceNetResolverStartNtoaMultipleRecords stub. Keep both.
  • docs/dev/TechnicalDebt.md: #699 added vieBRwlh1Lw, fCWdlnmB1Ks, sceKernelGetOperationMode and the "exports imported by PPSA12544" line where your AjmWVorbis and PPSA14632 lines go. Keep main's lines and add yours after them.

None of the 19 functions this PR declares is defined on main yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6010066750 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/734#issuecomment-6010066750). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T05:34:25Z. --- An update to my earlier note: the conflicts with main are different now. - `core/libs/prx/libSceNet/Export.cpp`: main has since implemented `sceNetResolverGetError` at the place where you add the `sceNetResolverStartNtoaMultipleRecords` stub. Keep both. - `docs/dev/TechnicalDebt.md`: #699 added `vieBRwlh1Lw`, `fCWdlnmB1Ks`, `sceKernelGetOperationMode` and the "exports imported by PPSA12544" line where your AjmWVorbis and PPSA14632 lines go. Keep main's lines and add yours after them. None of the 19 functions this PR declares is defined on main yet.
github-actions[bot] commented 2026-10-06 13:10:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T13:10:14Z.


Progress report (9ab937b → e91fe0f)

📉 System libraries: 86.74% (-0.56%, +19 declared functions)

🆕 19 declared as stubs
Library Name
libSceAcm sceAcm_FFT
libSceAcm sceAcm_Panner
libSceAjm.native sceAjmWVorbisUnknown00
libSceAjm.native sceAjmWVorbisUnknown01
libSceGameLiveStreaming sceGameLiveStreamingGetCurrentStatus2
libSceGameLiveStreaming sceGameLiveStreamingGetProgramInfo
libSceNet sceNetResolverStartNtoaMultipleRecords
libSceNpEntitlementAccess sceNpEntitlementAccessPollServiceEntitlementInfoList
libSceNpEntitlementAccess sceNpEntitlementAccessPollUnifiedEntitlementInfoList
libSceNpEntitlementAccess sceNpEntitlementAccessRequestServiceEntitlementInfoList
libSceNpEntitlementAccess sceNpEntitlementAccessRequestUnifiedEntitlementInfoList
libSceNpManager sceNpGetUserIdByAccountId
libSceNpWebApi2 sceNpWebApi2SetRequestTimeout
libSceVoiceQoS sceVoiceQoSGetLocalEndpointAttribute
libSceWebBrowserDialog sceWebBrowserDialogOpenForPredeterminedContent
libSceWebBrowserDialog sceWebBrowserDialogResetCookie
libkernel pthread_attr_setsolosched_np_nid_postfix
libkernel sceKernelAioPollRequests
libkernel sceKernelFcntl
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6016990858 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/734#issuecomment-6016990858). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T13:10:14Z. --- <!-- progress-report --> ### Progress report (9ab937b → e91fe0f) 📉 **System libraries**: 86.74% (-0.56%, +19 declared functions) <details> <summary>🆕 19 declared as stubs</summary> | Library | Name | | - | - | | libSceAcm | `sceAcm_FFT` | | libSceAcm | `sceAcm_Panner` | | libSceAjm.native | `sceAjmWVorbisUnknown00` | | libSceAjm.native | `sceAjmWVorbisUnknown01` | | libSceGameLiveStreaming | `sceGameLiveStreamingGetCurrentStatus2` | | libSceGameLiveStreaming | `sceGameLiveStreamingGetProgramInfo` | | libSceNet | `sceNetResolverStartNtoaMultipleRecords` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessPollServiceEntitlementInfoList` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessPollUnifiedEntitlementInfoList` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessRequestServiceEntitlementInfoList` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessRequestUnifiedEntitlementInfoList` | | libSceNpManager | `sceNpGetUserIdByAccountId` | | libSceNpWebApi2 | `sceNpWebApi2SetRequestTimeout` | | libSceVoiceQoS | `sceVoiceQoSGetLocalEndpointAttribute` | | libSceWebBrowserDialog | `sceWebBrowserDialogOpenForPredeterminedContent` | | libSceWebBrowserDialog | `sceWebBrowserDialogResetCookie` | | libkernel | `pthread_attr_setsolosched_np_nid_postfix` | | libkernel | `sceKernelAioPollRequests` | | libkernel | `sceKernelFcntl` | </details>
oneandonlydean commented 2026-10-06 21:24:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T21:24:14Z.


Thanks, this is ready to merge, but after the last batch it conflicts with main in libSceNpEntitlementAccess/Export.cpp, libSceWebBrowserDialog/Export.cpp and docs/dev/TechnicalDebt.md. Could you rebase onto main? I'll merge once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6025726044 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/734#issuecomment-6025726044). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T21:24:14Z. --- Thanks, this is ready to merge, but after the last batch it conflicts with main in `libSceNpEntitlementAccess/Export.cpp`, `libSceWebBrowserDialog/Export.cpp` and `docs/dev/TechnicalDebt.md`. Could you rebase onto main? I'll merge once CI is green.
alfalfa-star commented 2026-10-07 05:14:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-07T05:14:21Z.


Rebased onto main (9ab937b2). In libSceNet, libSceNpEntitlementAccess and libSceWebBrowserDialog I kept main's new functions and appended the stubs after them. In TechnicalDebt.md the two lines now follow the PPSA12544 Unity plugins line. None of the 19 is defined on main yet. Local build and full ctest: 383/383.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6031433177 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/734#issuecomment-6031433177). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-07T05:14:21Z. --- Rebased onto main (`9ab937b2`). In `libSceNet`, `libSceNpEntitlementAccess` and `libSceWebBrowserDialog` I kept main's new functions and appended the stubs after them. In `TechnicalDebt.md` the two lines now follow the PPSA12544 Unity plugins line. None of the 19 is defined on main yet. Local build and full ctest: 383/383.
Sign in to join this conversation.
No reviewers
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!734
No description provided.