devttys0 / sasquatch

501 stars 155 forks source link

Sasquatch fails to build on Kali Linux #19

Closed jkbecker closed 6 years ago

jkbecker commented 6 years ago
unsquashfs.c: In function ‘create_inode’:
unsquashfs.c:1140:13: error: In the GNU C Library, "makedev" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "makedev", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "makedev", you should undefine it after including <sys/types.h>. [-Werror]
       i->data & 0xff)) == -1) {
             ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                                                           
cc1: all warnings being treated as errors
<builtin>: recipe for target 'unsquashfs.o' failed
make: *** [unsquashfs.o] Error 1
cpeggg commented 6 years ago

I've met the same problem on Ubuntu 17.04. Since this project hasn't been updated for about 2 years, I guess some of the syntax may not fit the latest version of gcc. You could add one line on top of unsquashfs.c: $#include <sys/sysmacros.h>$ and directly recompile the whole project (without execute build.sh), this may help.

jkbecker commented 6 years ago

Turns out the firmware mod kit has a version that just works... Since we seem to be talking on a zombie project, I'd point people to that repo.