Failed to compile aufs modules in 2.6.24-4-generic

Bug #182481 reported by Steven Shiau
4
Affects Status Importance Assigned to Milestone
aufs (Ubuntu)
Fix Released
Undecided
Julian Andres Klode

Bug Description

Binary package hint: aufs-source

In hardy alpha3 with updated packages,
1. The running kernel is:
steven@hardy:~/tmp$ uname -r
2.6.24-4-generic

2. aufs-source is:
steven@hardy:~/tmp$ dpkg -l aufs-source
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii aufs-source 0+20071211-1ub Source for the aufs driver

3. When I compiled aufs modules, I got the following errors:
steven@hardy:/usr/src/modules/aufs$ sudo debian/rules binary-modules
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C /usr/src/linux M=/usr/src/modules/aufs modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-4-generic'
  CC [M] /usr/src/modules/aufs/module.o
  CC [M] /usr/src/modules/aufs/super.o
  CC [M] /usr/src/modules/aufs/sbinfo.o
  CC [M] /usr/src/modules/aufs/xino.o
  CC [M] /usr/src/modules/aufs/branch.o
  CC [M] /usr/src/modules/aufs/cpup.o
  CC [M] /usr/src/modules/aufs/whout.o
  CC [M] /usr/src/modules/aufs/plink.o
  CC [M] /usr/src/modules/aufs/wkq.o
  CC [M] /usr/src/modules/aufs/dcsub.o
  CC [M] /usr/src/modules/aufs/vfsub.o
  CC [M] /usr/src/modules/aufs/wbr_policy.o
  CC [M] /usr/src/modules/aufs/opts.o
  CC [M] /usr/src/modules/aufs/dentry.o
  CC [M] /usr/src/modules/aufs/dinfo.o
  CC [M] /usr/src/modules/aufs/file.o
  CC [M] /usr/src/modules/aufs/f_op.o
  CC [M] /usr/src/modules/aufs/finfo.o
  CC [M] /usr/src/modules/aufs/dir.o
  CC [M] /usr/src/modules/aufs/vdir.o
  CC [M] /usr/src/modules/aufs/inode.o
  CC [M] /usr/src/modules/aufs/i_op.o
  CC [M] /usr/src/modules/aufs/i_op_add.o
  CC [M] /usr/src/modules/aufs/i_op_del.o
  CC [M] /usr/src/modules/aufs/i_op_ren.o
  CC [M] /usr/src/modules/aufs/iinfo.o
  CC [M] /usr/src/modules/aufs/misc.o
/usr/src/modules/aufs/misc.c: In function ‘au_copy_file’:
/usr/src/modules/aufs/misc.c:269: error: ‘struct iattr’ has no member named ‘ia_file’
make[2]: *** [/usr/src/modules/aufs/misc.o] Error 1
make[1]: *** [_module_/usr/src/modules/aufs] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-4-generic'
make: *** [binary-modules] Error 2

Tags: patch
Revision history for this message
Julian Andres Klode (juliank) wrote :

Thank you for your bug report, I will fix this today or tomorrow.
I may also provide pre-compiled modules if there is request.

Changed in aufs:
assignee: nobody → juliank
status: New → In Progress
Revision history for this message
Steven Shiau (stevenshiau) wrote :

Great!
It would be nice to have a pre-compiled modules for i386, too.
Is that possible this pre-compiled aufs module could be included in the package linux-ubuntu-modules ?
Thank you very much.

Revision history for this message
laga (laga) wrote :

I second that: it would be very nice to have aufs.ko included in linux-ubuntu-modules.

By the way, is lhash.patch included in the Ubuntu kernel for hardy? I'm trying to set up a diskless gutsy box using unionfs/aufs on the client. Unionfs just hangs and aufs complains about the lhash patch being missing :)

Regards,

Michael

Revision history for this message
Julian Andres Klode (juliank) wrote :

Adding it to linux-ubuntu-modules would also allow us to use aufs for the livecd, like Debian does already.

Revision history for this message
laga (laga) wrote :

Update: I've just taken a look at the Ubuntu kernel tree (using gitweb) and it seems that the lhash patch is not included.

Julian,
unless you can confirm that this patch is not needed anymore in current aufs I'll file against linux-source-2.6.24 soon. Sorry for hijacking your bug report, Steven :)

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Great! I am not alone. Thanks, Michael.
Actually the reason I was trying to use aufs is because I had a problem with unionfs and squashfs both in Gutsy and Hardy-alpha3. I tried to use live helper from Gutsy to create an Ubuntu live. I did. However the problem is although the created ISO boots OK, I got kernel Oops about unionfs when udev detecting hardware. Attached is the dmesg output. I was wonder why gutsy/hardy-alpha3 desktop installation CD works fine, and mine did not.

Revision history for this message
laga (laga) wrote :

I've just filed bug #182603 to get the lhash patch included in Hardy.

Steven,

Gutsy as well as Hardy still use unionfs 1.4.x which is rather old. I was actually expecting problems with unionfs because of past experiences - unionfs was very broken during the gutsy development cycle (which caused us Mythbuntu people lots of grief) until they reverted some changes, IIRC. It's odd that it's still not working as it's supposed to be fixed but I'm not very surprised :). Once that lhash patch is in Hardy, I'll test aufs again and if it's successful/more stable than unionfs, I'll keep bugging people until it's included in Hardy as a pre-compiled module :).

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Michael,
Thanks for sharing your experience.
Yes, it would be nice to have aufs work with NFS, too.
As Julian mentioned, if aufs could be included in linux-ubuntu-modules, we can use aufs with live CD. It's even better.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Julian,
How about the status now ? This bug is fixed or not ? A pre-compiled module is available or not ?
Thanks in advance.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Just found newer kernel 2.6.24-5-generic (2.6.24-5.8) is in hardy, however, this bug still exists. Same error messages when compiling aufs on 2.6.24-5-generic.

Revision history for this message
Julian Andres Klode (juliank) wrote :

I attached a debdiff which should fix all problems related to Kernel 2.6.24.
Needs to be uploaded.

Revision history for this message
Julian Andres Klode (juliank) wrote :

No upload, I will upload a new upstream version to Debian, which can be synced.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Great. Thanks.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Module aufs is included in linux-ubuntu-modules-2.6.24-7:
steven@hardy:~$ dpkg -L linux-ubuntu-modules-2.6.24-7-generic | grep aufs.ko
/lib/modules/2.6.24-7-generic/ubuntu/fs/aufs/aufs.ko
Cool!
Thanks!

Revision history for this message
Julian Andres Klode (juliank) wrote :

aufs (0+20080129-1) unstable; urgency=low

  * New upstream snapshot
  * 01_vserver_apparmor: Combined patch for vServer and AppArmor Kernels
    - AppArmor kernels have no ia_file, do not use it (LP: #182481)
    - AppArmor patch written by Joerg Schirottke for Kanotix (thank you!)
    - Replaces 01_vserver and 06_ubuntu
  * 03_missing_headers: Define the magic numbers for XFS and TMPFS
  * 04_sec_perm: Do not use security_inode_permission with kernel >= 2.6.24
  * Inform about available pre-compiled modules in aufs-source description
  * conf.mk:
    - Rewrite automatic configuration part, define a function and call it
    - Activate the AUFS_FAKE_DM only if the lhash patch has not been applied

 -- Julian Andres Klode < <email address hidden>> Tue, 05 Feb 2008 01:13:10 +0000

Changed in aufs:
status: In Progress → 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.