Skip to content

Instantly share code, notes, and snippets.

@fennectech
Created November 9, 2018 10:39
Show Gist options
  • Save fennectech/1607a48bc542a521799d7735af24a4ab to your computer and use it in GitHub Desktop.
Save fennectech/1607a48bc542a521799d7735af24a4ab to your computer and use it in GitHub Desktop.
[fennectech@Aluminum ~/Atmosphere]$ make
make -C stratosphere all
make[1]: Entering directory '/home/fennectech/Atmosphere/stratosphere'
make -C libstratosphere all
make[2]: Entering directory '/home/fennectech/Atmosphere/stratosphere/libstratosphere'
mitm_query_service.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/fennectech/Atmosphere/stratosphere/libstratosphere/release/mitm_query_service.d -g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -I/home/fennectech/Atmosphere/stratosphere/libstratosphere/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I. -iquote /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/switch/ -D__SWITCH__ -fno-rtti -fno-exceptions -std=gnu++17 -c /home/fennectech/Atmosphere/stratosphere/libstratosphere/source/mitm_query_service.cpp -o mitm_query_service.o
In file included from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc.hpp:20,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp:26,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere.hpp:28,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/source/mitm_query_service.cpp:19:
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp: In static member function 'static constexpr void Encoder<MetaInfo, std::tuple<_Elements ...> >::EncodeFailure(IpcResponseContext*, Result)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:511:33: error: 'DomainResponseHeader' was not declared in this scope
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
^~~~~~~~~~~~~~~~~~~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:511:33: note: suggested alternative: 'DomainMessageHeader'
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
^~~~~~~~~~~~~~~~~~~~
DomainMessageHeader
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:511:55: error: expected primary-expression before ')' token
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
^
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp: In static member function 'static constexpr void Encoder<MetaInfo, std::tuple<_Elements ...> >::EncodeSuccess(IpcResponseContext*, Args ...)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:541:33: error: 'DomainResponseHeader' was not declared in this scope
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
^~~~~~~~~~~~~~~~~~~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:541:33: note: suggested alternative: 'DomainMessageHeader'
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
^~~~~~~~~~~~~~~~~~~~
DomainMessageHeader
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:541:55: error: expected primary-expression before ')' token
auto resp_header = (DomainResponseHeader *)((uintptr_t)raw - sizeof(DomainResponseHeader));
^
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp: In function 'constexpr Result WrapIpcCommandImpl(IpcResponseContext*)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:582:95: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
this_ptr = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId)->GetServiceObject<ClassType>();
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:582:138: error: expected primary-expression before '>' token
this_ptr = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId)->GetServiceObject<ClassType>();
^
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_serialization.hpp:582:140: error: expected primary-expression before ')' token
this_ptr = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId)->GetServiceObject<ClassType>();
^
In file included from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc.hpp:22,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp:26,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere.hpp:28,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/source/mitm_query_service.cpp:19:
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp: In member function 'Result ServiceSession::PrepareBasicDomainResponse(IpcResponseContext*, Result)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:110:17: error: 'DomainResponseHeader' does not name a type; did you mean 'DomainMessageHeader'?
DomainResponseHeader hdr;
^~~~~~~~~~~~~~~~~~~~
DomainMessageHeader
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:115:18: error: 'struct ServiceSession::PrepareBasicDomainResponse(IpcResponseContext*, Result)::<unnamed>' has no member named 'hdr'
raw->hdr = (DomainResponseHeader){0};
^~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:115:25: error: 'DomainResponseHeader' was not declared in this scope
raw->hdr = (DomainResponseHeader){0};
^~~~~~~~~~~~~~~~~~~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:115:25: note: suggested alternative: 'DomainMessageHeader'
raw->hdr = (DomainResponseHeader){0};
^~~~~~~~~~~~~~~~~~~~
DomainMessageHeader
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp: In member function 'virtual Result ServiceSession::GetResponse(IpcResponseContext*)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:143:38: error: 'struct IpcParsedCommand' has no member named 'InMessageType'; did you mean 'MessageType'?
switch (ctx->request.InMessageType) {
^~~~~~~~~~~~~
MessageType
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:147:140: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
return PrepareBasicDomainResponse(ctx, ctx->obj_holder->GetServiceObject<IDomainObject>()->FreeObject(ctx->request.InThisObjectId));
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:150:115: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
auto sub_obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId);
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp: In member function 'virtual Result ServiceSession::HandleReceived()':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:199:34: error: 'ipcParseDomainRequest' was not declared in this scope
ctx.rc = ipcParseDomainRequest(&ctx.request);
^~~~~~~~~~~~~~~~~~~~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/ipc/ipc_service_session.hpp:199:34: note: suggested alternative: 'ipcParseForDomain'
ctx.rc = ipcParseDomainRequest(&ctx.request);
^~~~~~~~~~~~~~~~~~~~~
ipcParseForDomain
In file included from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere.hpp:28,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/source/mitm_query_service.cpp:19:
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp: In function 'Handle GetCurrentThreadHandle()':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp:32:12: error: 'threadGetCurHandle' was not declared in this scope
return threadGetCurHandle();
^~~~~~~~~~~~~~~~~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp:32:12: note: suggested alternative: 'threadCreate'
return threadGetCurHandle();
^~~~~~~~~~~~~~~~~~
threadCreate
In file included from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm.hpp:25,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere.hpp:32,
from /home/fennectech/Atmosphere/stratosphere/libstratosphere/source/mitm_query_service.cpp:19:
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp: In member function 'Result MitmSession::ForwardRequest(IpcResponseContext*)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:84:34: error: 'struct IpcParsedCommand' has no member named 'IsDomainRequest'; did you mean 'IsDomainMessage'?
if (ctx->request.IsDomainRequest) {
^~~~~~~~~~~~~~~
IsDomainMessage
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:86:21: error: 'ipcParseDomainResponse' was not declared in this scope
ipcParseDomainResponse(&r, 0);
^~~~~~~~~~~~~~~~~~~~~~
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:86:21: note: suggested alternative: 'PrepareBasicDomainResponse'
ipcParseDomainResponse(&r, 0);
^~~~~~~~~~~~~~~~~~~~~~
PrepareBasicDomainResponse
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp: In member function 'virtual Result MitmSession::GetResponse(IpcResponseContext*)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:115:38: error: 'struct IpcParsedCommand' has no member named 'InMessageType'; did you mean 'MessageType'?
switch (ctx->request.InMessageType) {
^~~~~~~~~~~~~
MessageType
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:121:105: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
ctx->obj_holder->GetServiceObject<IDomainObject>()->FreeObject(ctx->request.InThisObjectId);
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:123:61: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
if (R_SUCCEEDED(rc) && ctx->request.InThisObjectId == serviceGetObjectId(this->forward_service.get())) {
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:133:115: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
auto sub_obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId);
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp: In member function 'virtual void MitmSession::PostProcessResponse(IpcResponseContext*)':
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:164:70: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
if (!IsDomainObject(ctx->obj_holder) || ctx->request.InThisObjectId == serviceGetObjectId(this->forward_service.get())) {
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:169:106: error: 'struct IpcParsedCommand' has no member named 'InThisObjectId'; did you mean 'ThisObjectId'?
obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId)->GetServiceObjectUnsafe<IMitmServiceObject>();
^~~~~~~~~~~~~~
ThisObjectId
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:169:164: error: expected primary-expression before '>' token
obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId)->GetServiceObjectUnsafe<IMitmServiceObject>();
^
/home/fennectech/Atmosphere/stratosphere/libstratosphere/include/stratosphere/mitm/mitm_session.hpp:169:166: error: expected primary-expression before ')' token
obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId)->GetServiceObjectUnsafe<IMitmServiceObject>();
^
make[3]: *** [/opt/devkitpro/devkitA64/base_rules:14: mitm_query_service.o] Error 1
make[2]: *** [Makefile:100: lib/libstratosphere.a] Error 2
make[2]: Leaving directory '/home/fennectech/Atmosphere/stratosphere/libstratosphere'
make[1]: *** [Makefile:12: libstratosphere] Error 2
make[1]: Leaving directory '/home/fennectech/Atmosphere/stratosphere'
make: *** [Makefile:18: stratosphere] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment