How do I build the new pbzx.c ?

Used for discussing the various tools in the book as well as encouraging members to share tools

How do I build the new pbzx.c ?

Postby matteyeux » Thu Feb 18, 2016 7:22 pm

Hello, I'd like to build pbzx.c on Ubuntu Linux, but I have some errors.
Code: Select all
$ gcc pbzx.c
pbzx.c: In function ‘main’:
pbzx.c:80:8: error: ‘uint32_t’ undeclared (first use in this function)
    (* (uint32_t *) buf ));
        ^
pbzx.c:80:8: note: each undeclared identifier is reported only once for each function it appears in
pbzx.c:80:18: error: expected expression before ‘)’ token
    (* (uint32_t *) buf ));
                  ^
pbzx.c:93:5: error: expected declaration or statement at end of input
     return 0;
     ^


Thank you
matteyeux
 
Posts: 15
Joined: Tue Jan 05, 2016 7:59 pm

Re: How do I build the new pbzx.c ?

Postby morpheus » Thu Feb 18, 2016 8:04 pm

typedef int uint32_t;
typedef long long uint64_t;

should build cleanly on a Mac OS X though.
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm

Re: How do I build the new pbzx.c ?

Postby matteyeux » Thu Feb 18, 2016 8:22 pm

It's okay, I build it, thanks !
matteyeux
 
Posts: 15
Joined: Tue Jan 05, 2016 7:59 pm

Re: How do I build the new pbzx.c ?

Postby morpheus » Thu Feb 18, 2016 10:37 pm

you're welcome! It should work well from here. I use it extensively now working on TvOS reversing.
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm


Return to Tools

Who is online

Users browsing this forum: No registered users and 2 guests