On ~amd64, gentoo-sources-2.6.38-r4, squashfs-tools-4.2, mksquashfs segfaults when built with USE=-gzip. Neither does it pick up nor does it list other compressors (xz, lzo) when built with USE="-gzip lzma lzo". Support for all named options is built into the kernel. Reproducible: Always Steps to Reproduce: 1. USE="-gzip lzma lzo xattr" squashfs-tools 2. mksquashfs file file.sqf (using "-comp {xz,lzo} doesn't work either) 3. Actual Results: Segfault when the read buffer is full Expected Results: should squash the dir/file
Full confirm for me...
OK, mksquashfs -comp lists /no/ compression types when USE=-gzip, and indeed fails in several ways when USE=-gzip, so I am going to remove the USE flag and make it always build gzip support.
Oh, I guess you didn't see the einfo: "You can set the default compression (gzip, xz or lzo) by exporting SQUASH_FS_DEFAULT_COMP" I've tried it and it doesn't seem to work.
Fixed in 4.2, which is going stable in bug #400937. IUSE=gzip has been removed until upstream actually supports this properly.