Skip to content

Failed to compile main.cpp! MacOs #40

@bruchhagevfx

Description

@bruchhagevfx

Hey, there I'm always getting this error running the resign_mac.sh.
It's probably a noob mistake but I hope you can help me.

`s3xploit_resign: PS3Xploit ReSign BASH Script for act.dat, PKG, and RAP

ps3xploit_resign: Building 'ps3xploit_rifgen_edatresign'

Cleaning...
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
Successfully compiled aes.c.
Successfully compiled aes_omac.cpp.
main.cpp:685:5: error: use of undeclared identifier 'gettimeofday'
gettimeofday(&te, NULL); // get current time
^
main.cpp:1004:13: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
while(read = fread(meta_buffer, 1, segment_size, in))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:1004:13: note: place parentheses around the assignment to silence this
warning
while(read = fread(meta_buffer, 1, segment_size, in))
^
( )
main.cpp:1004:13: note: use '==' to turn this assignment into an equality
comparison
while(read = fread(meta_buffer, 1, segment_size, in))
^
==
main.cpp:1319:37: warning: format specifies type 'unsigned int' but the argument
has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
printf("header[i].file_off=%x\n", header[i].file_off);
~~ ^~~~~~~~~~~~~~~~~~
%llx
main.cpp:1320:38: warning: format specifies type 'unsigned int' but the argument
has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
printf("header[i].file_size=%x\n", header[i].file_size);
~~ ^~~~~~~~~~~~~~~~~~~
%llx
main.cpp:1423:37: warning: format specifies type 'unsigned int' but the argument
has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
printf("header[i].file_off=%x\n", header[i].file_off);
~~ ^~~~~~~~~~~~~~~~~~
%llx
main.cpp:1424:38: warning: format specifies type 'unsigned int' but the argument
has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
printf("header[i].file_size=%x\n", header[i].file_size);
~~ ^~~~~~~~~~~~~~~~~~~
%llx
main.cpp:1390:6: warning: expression result unused [-Wunused-value]
for(i;i<number_files;i++)
^
main.cpp:1577:7: warning: expression result unused [-Wunused-value]
for(bkp;bkp<len;bkp+=10010241024)
^~~
main.cpp:1733:7: warning: expression result unused [-Wunused-value]
for(sha1_loop;sha1_loop<len-0x20;sha1_loop+=10010241024)
^~~~~~~~~
8 warnings and 1 error generated.
Failed to compile main.cpp!
make: *** [main.o] Error 1

ps3xploit_resign: 'ps3xploit_rifgen_edatresign' not found, exiting...`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions