module-assistant does not compile squashfs-source

Bug #384763 reported by Andreas Krüger
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
squashfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: squashfs-source

Hello,

here is the output of "lsb_release -rd"
Description: Ubuntu 9.04
Release: 9.04

Here is some of the output of "dpkg -s squashfs-source"

Package: squashfs-source
Source: squashfs
Version: 1:3.3-7ubuntu2

and here some of "dpkg -s module-assistant":

Package: module-assistant
Version: 0.10.11ubuntu1

And here is the build log, generated by "LANG=C module-assistant build squashfs-source" :

/usr/bin/make -C /usr/src/linux M=/usr/src/modules/squashfs clean
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
  CLEAN /usr/src/modules/squashfs/.tmp_versions
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/squashfs'
/usr/bin/make -C /usr/src/linux M=/usr/src/modules/squashfs clean
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
make[2]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.28-11-generic/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.28-11-generic/g ;s/#KVERS#/2.6.28-11-generic/g ; s/_KVERS_/2.6.28-11-generic/g ; s/##KDREV##/2.6.28-11.42/g ; s/#KDREV#/2.6.28-11.42/g ; s/_KDREV_/2.6.28-11.42/g ' < $templ > ${templ%.modules.in}; \
  done
dh_testroot
dh_clean -k
dh_installdirs
CONFIG_SQUASHFS=m /usr/bin/make -C /usr/src/linux M=/usr/src/modules/squashfs modules EXTRA_CFLAGS="-DCONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 -I/usr/include -DUnsquashNoPreempt"
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
  CC [M] /usr/src/modules/squashfs/inode.o
/usr/src/modules/squashfs/inode.c: In function 'squashfs_export_iget':
/usr/src/modules/squashfs/inode.c:693: error: implicit declaration of function 'd_alloc_anon'
/usr/src/modules/squashfs/inode.c:693: warning: assignment makes pointer from integer without a cast
/usr/src/modules/squashfs/inode.c: In function 'init_inodecache':
/usr/src/modules/squashfs/inode.c:2332: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type
make[3]: *** [/usr/src/modules/squashfs/inode.o] Error 1
make[2]: *** [_module_/usr/src/modules/squashfs] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/squashfs'
make: *** [kdist_build] Error 2

Of course, I expected this build to come through. As you can see from the build log, it failed instead.

As far as I can tell, this is independent from the problems reported as bug 17689.

Regards, and thank you for providing fine software,

Andreas

Revision history for this message
Andreas Krüger (andreas-krueger) wrote :

Oops - independent of bug 176890 , I meant to write. Sorry about the missing "0" in the original bug description.

Revision history for this message
Uwe L. Korn (uwelk) wrote :

http://xhochy.org/en/2009/06/20/compling-squashfs-source-on-ubuntu-jaunty/ explains how to fix this problem, this is already fixed in Squashfs 3.4

Revision history for this message
Andreas Krüger (andreas-krueger) wrote :

Thanks, Uwe! The hints given at the URL you provided indeed helped me out.

Here are the details:

Upgrade to linux-headers-2.6.28-13-generic and linux-headers-2.6.28-13. Bug still present.

The module lzma mentioned in the above link is not available through my Ubuntu 9.04's module-assistant GUI.
Even after installation of lzma-source, the module-assistant GUI does not show it.
However, simply firing up "m-a build lzma" produces a .deb allright, which "dpkg -i" could install.
Afterwards, "modprobe -v sqlzma" worked. So far, so good.

Quick check: With lzma installed and module sqlzma loaded, squashfs still does not build. That was to be expected.

I used emacs to edit inode.c in the archive directly (didn't bother to unpack and repack).
After those changes, "m-a build squashfs" ran through with no problem.
Also smooth sailing for "m-a install squashfs" , and finally, for "modprobe squashfs".

Finally, mounting a squash file system and reading all files also worked.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.