Compiling fuse-2.7 on Ubuntu Hardy

View: New views
2 Messages — Rating Filter:   Alert me  

Compiling fuse-2.7 on Ubuntu Hardy

by Damir Dezeljin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using a virtual machine running Ubuntu Hardy (32 bit) using the
2.6.24-19-virtual kernel.

I wanted compiling the fuse kernel module separately so I could test knfsd.
Unfortunately it seems fuse 2.7 can't be compiled on the mentioned kernel.
I'm getting the following error:
----
  CC [M]  /usr/src/fuse-2.7.2/kernel/dir.o
/usr/src/fuse-2.7.2/kernel/dir.c: In function 'iattr_to_fattr':
/usr/src/fuse-2.7.2/kernel/dir.c:1023: error: 'struct iattr' has no member
named 'ia_file'
----
^^^
I'm trying to compile fuse sources packaged as 'fuse-source' Ubuntu package
(apt-get source fuse-source).
I tried out the last FUSE stable release (2.7.3) too, but I had the same
problem. The FUSE 2.8 seems not having the dir.c any more.


Any idea how to solve the problem?

Thanks and best regards,
Damir Dezeljin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel

Re: Compiling fuse-2.7 on Ubuntu Hardy

by Miklos Szeredi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 22 Jul 2008, Damir Dezeljin wrote:

> Hi,
>
> I'm using a virtual machine running Ubuntu Hardy (32 bit) using the
> 2.6.24-19-virtual kernel.
>
> I wanted compiling the fuse kernel module separately so I could test knfsd.
> Unfortunately it seems fuse 2.7 can't be compiled on the mentioned kernel.
> I'm getting the following error:
> ----
>   CC [M]  /usr/src/fuse-2.7.2/kernel/dir.o
> /usr/src/fuse-2.7.2/kernel/dir.c: In function 'iattr_to_fattr':
> /usr/src/fuse-2.7.2/kernel/dir.c:1023: error: 'struct iattr' has no member
> named 'ia_file'
> ----
> ^^^
> I'm trying to compile fuse sources packaged as 'fuse-source' Ubuntu package
> (apt-get source fuse-source).
> I tried out the last FUSE stable release (2.7.3) too, but I had the same
> problem. The FUSE 2.8 seems not having the dir.c any more.
>
>
> Any idea how to solve the problem?

Ugh, that's the AppArmor patch Ubuntu carries.  You can work around it
by simply undefining ATTR_FILE before the offending use.

Alternatively, using a vanila 2.6.24 kernel should work as well.

Miklos

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel