http://oss.sgi.com/bugzilla/show_bug.cgi?id=707
Summary: compile failure on PowerPC64 due to linux header
problems
Product: Linux XFS
Version: Current
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: xfsprogs
AssignedTo: xfs-master@xxxxxxxxxxx
ReportedBy: markus@xxxxxxxxxxxxxx
Hello,
since some version of xfsprogs > 2.7.3 (that version compiles fine) we are not
able to compile xfsprogs any more on Linux/PowerPC64. The following output was
copied from compiling xfsprogs 2.7.11:
[...]
=== copy ===
gcc -g -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.7.11\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE=\"xfsprogs\" -I../include
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o
xfs_copy.o xfs_copy.c
In file included from /usr/include/asm/elf.h:8,
from /usr/include/asm/sigcontext.h:13,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:333,
from /usr/include/sys/wait.h:31,
from xfs_copy.c:21:
/usr/include/asm/types.h:44: error: conflicting types for ‘__s64’
../include/xfs/platform_defs.h:42: error: previous declaration of
‘__s64’ was
here
/usr/include/asm/types.h:45: error: conflicting types for ‘__u64’
../include/xfs/platform_defs.h:41: error: previous declaration of
‘__u64’ was
here
gmake[1]: *** [xfs_copy.o] Error 1
make: *** [default] Error 2
As you can see definitions like __u64 are made in the linux kernel headers,
but get redefined by xfsprogs.
The solution would be to use POSIX names like uint64_t in xfsprogs, wouldn't
it?
--
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
|