64-bit kernel, gcc 3.4.4-2, Centos 4.2
Blaisorblade wrote:
On Friday 31 March 2006 02:52, Wesley Emeneker wrote:
I just downloaded the 2.6.16-bb1 patch and tried to compile against 2.6.16.
I encountered a problem in arch/um/drivers/cow_sys.h,cow.h, and cow_user.c
arch/um/drivers/cow_sys.h: In function `cow_file_size':
arch/um/drivers/cow_sys.h:33: warning: passing arg 2 of `os_file_size'
from incompatible pointer type
arch/um/drivers/cow_user.c: In function `write_cow_header':
arch/um/drivers/cow_user.c:232: warning: passing arg 2 of
`cow_file_size' from incompatible pointer type
arch/um/drivers/cow_user.c: At top level:
arch/um/drivers/cow_user.c:274: error: conflicting types for
'read_cow_header'
arch/um/drivers/cow.h:50: error: previous declaration of
'read_cow_header' was here
arch/um/drivers/cow_user.c:274: error: conflicting types for
'read_cow_header'
arch/um/drivers/cow.h:50: error: previous declaration of
'read_cow_header' was here
The simple and obvious fix is to change "__u64" in cow_sys.h and cow.h
to be "unsigned long long",
Are you compiling a 64-bit kernel? With which GCC release?
In that case I can guess what's going on: __u64 is being defined as "unsigned
long", which is valid, and gcc is not recognizing it's the same thing as
unsigned long (and it's right since normally they're different).
However, I've never seen that (possibly I tested only before doing some
changes about this, which are in -bb1).
but this makes me think that I am missing something like an include file
with a definition somewhere.
Any ideas?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user