squashfs-source doesn't compile

Bug #176890 reported by Guillaume Martres
6
Affects Status Importance Assigned to Milestone
squashfs (Debian)
Fix Released
Unknown
squashfs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The squashfs module can't compile with kernel 2.6.22 because SLAB_CTOR_VERIFY and SLAB_CTOR_CONSTRUCTOR don't exist anymore.
/usr/src/modules/squashfs/linux-2.6/inode.c: In function 'init_once':
/usr/src/modules/squashfs/linux-2.6/inode.c:2301: error: 'SLAB_CTOR_VERIFY' undeclared (first use in this function)
/usr/src/modules/squashfs/linux-2.6/inode.c:2301: error: (Each undeclared identifier is reported only once
/usr/src/modules/squashfs/linux-2.6/inode.c:2301: error: for each function it appears in.)
/usr/src/modules/squashfs/linux-2.6/inode.c:2301: error: 'SLAB_CTOR_CONSTRUCTOR' undeclared (first use in this function)

Revision history for this message
Guillaume Martres (smarter) wrote :

Patch from Debian to fix that.

Revision history for this message
Mikael Gerdin (mgerdin) wrote :

Confirming bug, the patch applies and fixes the build.

Changed in squashfs:
status: New → Confirmed
Revision history for this message
laga (laga) wrote :

Confirming bug as well. Patch is working fine.

Changed in squashfs:
status: Unknown → Fix Released
Revision history for this message
Eugene San (eugenesan) wrote :

New compilation errors with linux 2.6.28-11

  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

Revision history for this message
Eugene San (eugenesan) wrote :

For reference: http://<email address hidden>/msg598003.html

Revision history for this message
Eugene San (eugenesan) wrote :

Tested with provided patch (http://<email address hidden>/msg598003.html).

Changed in squashfs:
status: Confirmed → Fix Committed
Przemek K. (azrael)
Changed in squashfs (Ubuntu):
status: Fix Committed → Fix Released
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.