Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implicit declaration failure #14

Open
Numbski opened this issue Dec 21, 2020 · 3 comments
Open

Implicit declaration failure #14

Numbski opened this issue Dec 21, 2020 · 3 comments

Comments

@Numbski
Copy link

Numbski commented Dec 21, 2020

[ 73%] Built target xpwn
Scanning dependencies of target xpwntool
[ 75%] Building C object ipsw-patch/CMakeFiles/xpwntool.dir/xpwntool.c.o
/Users/tshadwick/futurerestore/xpwn/ipsw-patch/xpwntool.c:124:4: error: implicit declaration of function 'exploit24kpwn' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
                        exploit24kpwn(newFile);
                        ^
1 error generated.
make[2]: *** [ipsw-patch/CMakeFiles/xpwntool.dir/xpwntool.c.o] Error 1
make[1]: *** [ipsw-patch/CMakeFiles/xpwntool.dir/all] Error 2
make: *** [all] Error 2
@Numbski
Copy link
Author

Numbski commented Dec 22, 2020

Sorry for being so thin on details there. Was short on time. This is attempting to build on x64 MacOS 10.15/darwin. Sadly my ability to parse this is somewhat limited - but it seems like exploit24kpwn() needs to have a prototype or a prior declaration. It seems very unlikely given the age of this code that this is a new issue - so it is really puzzling.

@arnocornette
Copy link

arnocornette commented Feb 13, 2021

Hey @Numbski I encountered the same issue.
I fixed it by adding #include "xpwn/img3.h" to xpwntool.c below the #include "xpwn/libxpwn.h"

Not sure if it's the intended fix, but atleast it compiles.

@UInt2048
Copy link

@planetbeing Thanks so much for merging #15. The fix works so you should be able to close this issue!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants