Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partclone 0.3.5a fails to build against RHEL/CentOS 6 on ppc64 (only) #96

Closed
robert-scheck opened this issue Aug 13, 2017 · 1 comment
Closed

Comments

@robert-scheck
Copy link
Contributor

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.

@robert-scheck
Copy link
Contributor Author

This is no longer relevant for me, because Red Hat Enterprise Linux 6 (including its derivatives) reached its End of Life already at November 30th, 2020 – and so did EPEL 6, which I am building and packaging partclone for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant