Seems i should have looked harder before posting to the list. In the 
meantime i discovered ubuntu's "aufs-source" package and it compiles 
fine indeed. However it is quite old (version 20070604) and is not very 
stable (system freezes after a few minutes).
I would really appreciate a ubuntu-patch for the current version of aufs.

Applying the patch patch below by hand using an editor, did not help 
much. Now i am getting errors like:

...
fs/aufs/vfsub.h: In function ‘do_vfsub_rename’:
fs/aufs/vfsub.h:406: warning: format ‘%.*s’ expects type ‘char *’, but 
argument 8 has type ‘long unsigned int’
fs/aufs/vfsub.h:406: warning: format ‘%lu’ expects type ‘long unsigned 
int’, but argument 9 has type ‘int’
fs/aufs/vfsub.h:406: warning: too few arguments for format
fs/aufs/vfsub.h:413: error: too few arguments to function ‘vfs_rename’
fs/aufs/vfsub.h: In function ‘do_vfsub_mkdir’:
fs/aufs/vfsub.h:429: warning: format ‘%.*s’ expects type ‘char *’, but 
argument 8 has type ‘int’
fs/aufs/vfsub.h:429: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘do_vfsub_rmdir’:
fs/aufs/vfsub.h:445: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘do_vfsub_unlink’:
fs/aufs/vfsub.h:461: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘do_vfsub_read_u’:
fs/aufs/vfsub.h:482: warning: format ‘%.*s’ expects type ‘char *’, but 
argument 7 has type ‘long unsigned int’
fs/aufs/vfsub.h:482: warning: format ‘%lu’ expects type ‘long unsigned 
int’, but argument 8 has type ‘loff_t’
fs/aufs/vfsub.h:482: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘do_vfsub_read_k’:
fs/aufs/vfsub.h:506: warning: implicit declaration of function ‘get_fs’
fs/aufs/vfsub.h:506: error: incompatible types in assignment
fs/aufs/vfsub.h:507: warning: implicit declaration of function ‘set_fs’
fs/aufs/vfsub.h:507: error: ‘KERNEL_DS’ undeclared (first use in this 
function)
fs/aufs/vfsub.h:507: error: (Each undeclared identifier is reported only 
once
fs/aufs/vfsub.h:507: error: for each function it appears in.)
fs/aufs/vfsub.h: In function ‘do_vfsub_write_u’:
fs/aufs/vfsub.h:519: warning: format ‘%.*s’ expects type ‘char *’, but 
argument 7 has type ‘long unsigned int’
fs/aufs/vfsub.h:519: warning: format ‘%lu’ expects type ‘long unsigned 
int’, but argument 8 has type ‘loff_t’
fs/aufs/vfsub.h:519: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘do_vfsub_write_k’:
fs/aufs/vfsub.h:538: error: incompatible types in assignment
fs/aufs/vfsub.h:539: error: ‘KERNEL_DS’ undeclared (first use in this 
function)
fs/aufs/vfsub.h: In function ‘do_vfsub_readdir’:
fs/aufs/vfsub.h:550: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘vfsub_llseek’:
fs/aufs/vfsub.h:621: warning: too few arguments for format
fs/aufs/vfsub.h: In function ‘do_vfsub_getattr’:
fs/aufs/vfsub.h:632: warning: too few arguments for format
fs/aufs/module.c:326:2: warning: #warning CONFIG_AUFS_COMPAT will be 
removed in the near future.
make[1]: *** [fs/aufs/module.o] Error 1


- Heinrich

Julian Andres Klode wrote:
> This is known. The Ubuntu kernel uses AppArmor patches.
> Please see https://bugs.edge.launchpad.net/ubuntu/+source/aufs/+bug/140735
> 
> Maybe sfjro could add a patch for Ubuntu's kernel to patch.
> 
> Regards,
> Julian Andres Klode, Debian aufs Maintainer.
> 
> Original Patch for Ubuntu's Kernel (aufs 2007-06-05).
> 
> --- aufs-0+20070605.orig/fs/aufs/vfsub.c
> +++ aufs-0+20070605/fs/aufs/vfsub.c
> @@ -558,7 +558,7 @@
>       *a->errp = -EPERM;
>       if (!IS_IMMUTABLE(h_inode) && !IS_APPEND(h_inode)) {
>               lockdep_off();
> -             *a->errp = notify_change(a->h_dentry, a->ia);
> +             *a->errp = notify_change(a->h_dentry, NULL, a->ia);
>               lockdep_on();
>       }
>       TraceErr(*a->errp);
> --- aufs-0+20070605.orig/fs/aufs/vfsub.h
> +++ aufs-0+20070605/fs/aufs/vfsub.h
> @@ -89,7 +89,7 @@
>  #if 0//def CONFIG_VSERVER
>       return vfs_symlink(dir, dentry, symname, mode, NULL);
>  #else
> -     return vfs_symlink(dir, dentry, symname, mode);
> +     return vfs_symlink(dir, dentry, NULL, symname, mode);
>  #endif
>  }
> 
> @@ -101,7 +101,7 @@
>  #if 0//def CONFIG_VSERVER
>       return vfs_mknod(dir, dentry, mode, dev, NULL);
>  #else
> -     return vfs_mknod(dir, dentry, mode, dev);
> +     return vfs_mknod(dir, dentry, NULL, mode, dev);
>  #endif
>  }
> 
> @@ -118,7 +118,7 @@
>  #if 0//def CONFIG_VSERVER
>       err = vfs_link(src_dentry, dir, dentry, NULL);
>  #else
> -     err = vfs_link(src_dentry, dir, dentry);
> +     err = vfs_link(src_dentry, NULL, dir, dentry, NULL);
>  #endif
>       lockdep_on();
>       return err;
> @@ -137,7 +137,7 @@
>       lockdep_off();
>  #if 0
>  #else
> -     err = vfs_rename(src_dir, src_dentry, dir, dentry);
> +     err = vfs_rename(src_dir, src_dentry, NULL, dir, dentry, NULL);
>  #endif
>       lockdep_on();
>       return err;
> @@ -150,7 +150,7 @@
>  #if 0//def CONFIG_VSERVER
>       return vfs_mkdir(dir, dentry, mode, NULL);
>  #else
> -     return vfs_mkdir(dir, dentry, mode);
> +     return vfs_mkdir(dir, dentry, NULL, mode);
>  #endif
>  }
> 
> @@ -164,7 +164,7 @@
>  #if 0//def CONFIG_VSERVER
>       err = vfs_rmdir(dir, dentry, NULL);
>  #else
> -     err = vfs_rmdir(dir, dentry);
> +     err = vfs_rmdir(dir, dentry, NULL);
>  #endif
>       lockdep_on();
>       return err;
> @@ -180,7 +180,7 @@
>  #if 0//def CONFIG_VSERVER
>       err = vfs_unlink(dir, dentry, NULL);
>  #else
> -     err = vfs_unlink(dir, dentry);
> +     err = vfs_unlink(dir, dentry, NULL);
>  #endif
>       lockdep_on();
>       return err;
> 
> Heinrich Rebehn wrote:
>> Hi list,
>>
>> i am unable to compile aufs version 20071105 under Ubuntu 7.10 (Kernel 
>> 2.6.22 with Ubuntu patches):
>>
>>    CC [M]  fs/aufs/module.o
>> In file included from fs/aufs/dentry.h:29,
>>                   from fs/aufs/aufs.h:95,
>>                   from fs/aufs/module.c:23:
>> fs/aufs/vfsub.h: In function ‘do_vfsub_symlink’:
>> fs/aufs/vfsub.h:348: warning: passing argument 3 of ‘vfs_symlink’ from 
>> incompatible pointer type
>> fs/aufs/vfsub.h:348: warning: passing argument 4 of ‘vfs_symlink’ makes 
>> pointer from integer without a cast
>> fs/aufs/vfsub.h:348: error: too few arguments to function ‘vfs_symlink’
>> fs/aufs/vfsub.h: In function ‘do_vfsub_mknod’:
>> fs/aufs/vfsub.h:366: warning: passing argument 3 of ‘vfs_mknod’ makes 
>> pointer from integer without a cast
>> fs/aufs/vfsub.h:366: error: too few arguments to function ‘vfs_mknod’
>> fs/aufs/vfsub.h: In function ‘do_vfsub_link’:
>> fs/aufs/vfsub.h:386: warning: passing argument 2 of ‘vfs_link’ from 
>> incompatible pointer type
>> fs/aufs/vfsub.h:386: warning: passing argument 3 of ‘vfs_link’ from 
>> incompatible pointer type
>> fs/aufs/vfsub.h:386: error: too few arguments to function ‘vfs_link’
>> fs/aufs/vfsub.h: In function ‘do_vfsub_rename’:
>> fs/aufs/vfsub.h:413: warning: passing argument 3 of ‘vfs_rename’ from 
>> incompatible pointer type
>> fs/aufs/vfsub.h:413: warning: passing argument 4 of ‘vfs_rename’ from 
>> incompatible pointer type
>> fs/aufs/vfsub.h:413: error: too few arguments to function ‘vfs_rename’
>> fs/aufs/vfsub.h: In function ‘do_vfsub_mkdir’:
>> fs/aufs/vfsub.h:432: warning: passing argument 3 of ‘vfs_mkdir’ makes 
>> pointer from integer without a cast
>> fs/aufs/vfsub.h:432: error: too few arguments to function ‘vfs_mkdir’
>> fs/aufs/vfsub.h: In function ‘do_vfsub_rmdir’:
>> fs/aufs/vfsub.h:449: error: too few arguments to function ‘vfs_rmdir’
>> fs/aufs/vfsub.h: In function ‘do_vfsub_unlink’:
>> fs/aufs/vfsub.h:466: error: too few arguments to function ‘vfs_unlink’
>> fs/aufs/module.c:440:2: warning: #warning CONFIG_AUFS_COMPAT will be 
>> removed in the near future.
>> make[2]: *** [fs/aufs/module.o] Error 1
>> make[1]: *** [fs/aufs] Error 2
>> make: *** [fs] Error 2
>>
>>
>> Any clues?
>>
>> Kind regards,
>>
>> Heinrich Rebehn
>>
>> University of Bremen
>> Physics / Electrical and Electronics Engineering
>> - Department of Telecommunications -
>>
>> Phone : +49/421/218-4664
>> Fax   :            -3341
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 


-- 

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

Phone : +49/421/218-4664
Fax   :            -3341


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to