sasquatch
sasquatch copied to clipboard
Builds on modern Ubuntu
This makes sasquatch build on Ubuntu 22.04
Tested and working in Ubuntu 22.10 with gcc 11.4.0.
Hopefully the owner notices and this gets merged. Thanks, mate!
Came here because of this error during compilation on Ubuntu 22.04:
cc -g -O2 -I. -I./LZMA/lzma465/C -I./LZMA/lzmalt -I./LZMA/lzmadaptive/C/7zip/Compress/LZMA_Lib -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -Werror -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o unsquashfs.o unsquashfs.c
unsquashfs.c: In function 'read_super':
unsquashfs.c:1835:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
1835 | if(swap)
| ^~
unsquashfs.c:1841:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
| read_fs_bytes(fd, SQUASHFS_START, sizeof(struct squashfs_super_block),
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: unsquashfs.o] Error 1
The above PR works for ubuntu:22.04
. Thanks @RobertLarsen !!
For those waiting for this to be merged, for now you can do:
git clone https://github.com/devttys0/sasquatch
(cd sasquatch && git pull origin pull/56/head && ./build.sh)
This also works on Ubuntu 23.04.