xfangfang / PPPwn_cpp

C++ rewrite of PPPwn (PlayStation 4 PPPoE RCE)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not compile on linux

marco-calautti opened this issue · comments

I cannot compile the code on linux. It seems the problems is that all warnings are treated as errors:

In member function ‘uint8_t* pcpp::IDnsResource::getRawData() const’,
    inlined from ‘pcpp::IDnsResource::IDnsResource(pcpp::DnsLayer*, size_t)’ at /home/marco/Source_Projects/PPPwn_cpp/build/_deps/pcapplusplus-src/Packet++/src/DnsResource.cpp:16:51:
/home/marco/Source_Projects/PPPwn_cpp/build/_deps/pcapplusplus-src/Packet++/src/DnsResource.cpp:29:24: error: ‘*this.pcpp::IDnsResource::m_ExternalRawData’ may be used uninitialized [-Werror=maybe-uninitialized]
   29 |                 return m_ExternalRawData;
      |                        ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [_deps/pcapplusplus-build/Packet++/CMakeFiles/Packet++.dir/build.make:160: _deps/pcapplusplus-build/Packet++/CMakeFiles/Packet++.dir/src/DnsResource.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:439: _deps/pcapplusplus-build/Packet++/CMakeFiles/Packet++.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Just update the code, you can test it now.

it used to give me the same error , but now it doesn't but the command is cmake --build build not cmake --build build pppwn
with the last it says :

Unknown argument pppwn
Usage: cmake --build <dir>

The correct build command is this one: cmake --build build -t pppwn

@Aym3nJ
Apologies for the confusion caused. I omitted "-t" from the README, sorry for that. I have just updated the README.

You can also check the GitHub Action Workflow, which serves as a CI build script: https://github.com/xfangfang/PPPwn_cpp/blob/main/.github/workflows/ci.yaml

The correct build command is this one: cmake --build build -t pppwn

You don't even need that.. just cmake --build build works fine.