vasi / squashfuse

FUSE filesystem to mount squashfs archives
Other
295 stars 69 forks source link

Wrong "Squashfs image uses lzma compression, this version supports only xz." #11

Closed probonopd closed 8 years ago

probonopd commented 8 years ago

Compiled with

git clone https://github.com/vasi/squashfuse.git
cd squashfuse/
sudo apt install -y autoconf libtool make gcc libtool libtool-bin libfuse-dev liblzma-dev
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf

./configure --with-xz=/usr/lib/ --without-zlib

seems like it has done what it should, since it is linking to liblzma:

ldd squashfuse
    linux-vdso.so.1 =>  (0x00007ffd6b5fa000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f52d4eb4000)
    libfuse.so.2 => /lib/x86_64-linux-gnu/libfuse.so.2 (0x00007f52d4c78000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f52d4a5a000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f52d4691000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f52d448d000)
    /lib64/ld-linux-x86-64.so.2 (0x0000555fcc21f000)

But still it doesn't mount a lzma squashfs image:

./squashfuse -f -o offset=$((64*1024)) xchat.sai mountpoint/
Squashfs image uses lzma compression, this version supports only xz.
probonopd commented 8 years ago

xz seems to be the new lzma? Using it for now.

vasi commented 8 years ago

Liblzma is the library that XZ uses. Just because we link to liblzma, doesn't mean we automatically get support for raw lzma compression! So the error is correct.

If the library does support raw lzma, we would have to write the glue code to integrate it. I'll see if I have time to add that in the future.

probonopd commented 8 years ago

OK, I understand. Not saying that I need lzma specifically, since xz seems to do the job. Thanks for the clarification.