-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loSame issue on Kali/Debian with gcc (Debian 10.2.1-6) 10.2.1
#43
Comments
This worked for me. Just make sure to run
|
I have successfully compiled on Kali linux (M1) using this simple patch to the ./patches/patch0.txt to add the cflags: -fcommon and to remove the -Wall from the makefile:
|
Vfkvg |
The solution by @chilik worked fine for my machine |
for newby like who don't understand what to do with that : cd patches
wget https://github.com/devttys0/sasquatch/files/7776843/M1-Kali.patch.txt
patch patch0.txt M1-Kali.patch.txt
cd ..
./build.sh result : it's work :) cc -g -O2 -fcommon -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 -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o lzma_wrapper.o lzma_wrapper.c
g++ ./LZMA/lzmalt/*.o unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o unsquash-4.o swap.o compressor.o unsquashfs_info.o gzip_wrapper.o lzma_wrapper.o ./LZMA/lzma465/C/Alloc.o ./LZMA/lzma465/C/LzFind.o ./LZMA/lzma465/C/LzmaDec.o ./LZMA/lzma465/C/LzmaEnc.o ./LZMA/lzma465/C/LzmaLib.o xz_wrapper.o lzo_wrapper.o read_xattrs.o unsquashfs_xattr.o -lpthread -lm -lz -L./LZMA/lzmadaptive/C/7zip/Compress/LZMA_Lib -llzmalib -llzma -llzo2 -o sasquatch
mkdir -p /usr/local/bin
cp sasquatch /usr/local/bin and the patch also work on regular x64 machin |
Same issue on Kali/Debian with
gcc (Debian 10.2.1-6) 10.2.1
Both solutions did not work for me.
@Jegeva I changed in sasquatch/squashfs4.3/squashfs-tools/error.h
int verbose;
toextern int verbose;
and added in unsquashfs.cint verbose;
afterint user_xattrs = FALSE;
.Are these steps right?
Afterwards I get these errors:
Originally posted by @JK2210 in #36 (comment)
The text was updated successfully, but these errors were encountered: