Recommended by UML wiki page about humfs, I have attempted
compiling tools-20070815 package on a Fedora Core 8 system.
The compilation failed due to a warning. I made a change that seems
to quiet the problem.

Please check my description in the below. If the change is a hack, please
tell me a better way to fix this problem. Thank you.

Regards,
Kiet
---------------------------------------------------------------------------------------
Compiling umlfs/uml_mount.c generates a warning as in the following:

uml_mount.c: In function 'init_fuse':
uml_mount.c:14: warning: passing argument 2 of 'fuse_mount_compat22'
from incompatible pointer type

Diagnosis:

uml_mount.c includes a file, /usr/include/fuse/fuse_lowlevel.h.
fuse_lowlevel.h includes fuse_common.h and fuse_common_compat.h.

In my system, fuse_lowlevel.h defines the default for FUSE_USE_VERSION
as in the following:

#ifndef FUSE_USE_VERSION
#define FUSE_USE_VERSION 24
#endif

When FUSE_USE_VERSION is 24, fuse_common.h defines the substitute
for fuse_mount:

#define fuse_mount  fuse_mount_compat22

Line 14 of uml_mount.c is the function call for fuse_mount () which the 
second
argument is a pointer type struct fuse_args. Guessing from this calling 
function,
the prototype seems to match FUSE_USE_VERSION 25.

Work Around:

I added this line to beginning of uml_mount.c:
#define FUSE_USE_VERSION 25

And the make operation completed.
--------------------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to