Closed
Description
Partclone 0.3.5a fails to build against RHEL/CentOS 6 on ppc64 (only), it works on other architectures, such as i686 or x86_64.
…
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -D_FILE_OFFSET_BITS=64 -DF2FS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mminimal-toc -Wall -MT partclone_f2fs-main.o -MD -MP -MF .deps/partclone_f2fs-main.Tpo -c -o partclone_f2fs-main.o `test -f 'main.c' || echo './'`main.c
In file included from ./xfs/linux.h:32,
from xfs/xfs.h:37,
from xfs/libxfs.h:24,
from xfsclone.c:18:
/usr/include/asm/types.h:31: error: conflicting types for 'umode_t'
xfs/platform_defs.h:50: note: previous declaration of 'umode_t' was here
main.c: In function 'main':
main.c:845: warning: format '%08llX' expects type 'long long unsigned int', but argument 3 has type 'off_t'
make[2]: *** [partclone_xfs-xfsclone.o] Error 1
Even the (re)definition of umode_t in xfs/platform_defs.h:50 is wrapped using HAVE_UMODE_T, there is no code ever testing for the existence and setting the definement via ./configure accordingly. Setting CFLAGS=-DHAVE_UMODE_T for ppc64 builds on RHEL/CentOS 6 myself works around the issue.
Metadata
Metadata
Assignees
Labels
No labels