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

Aix - make statx #1765

Open
1 task done
maartenv86 opened this issue May 29, 2024 · 1 comment
Open
1 task done

Aix - make statx #1765

maartenv86 opened this issue May 29, 2024 · 1 comment
Labels
bug patcheswelcome No one internal is working on this but an external contributor's help is very welcome! triaged Issue cause is understood but a patch is needed to fix it

Comments

@maartenv86
Copy link

maartenv86 commented May 29, 2024

Please acknowledge the following before creating a ticket

Description of the bug:
make halts wit the following:

In file included from engines/fileoperations.c:16:
engines/../oslib/statx.h:12:5: error: conflicting types for 'statx'
12 | int statx(int dfd, const char *pathname, int flags, unsigned int mask,
| ^~~~~
In file included from /usr/include/sys/lockf.h:45,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/include-fixed/unistd.h:868,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/include-fixed/fcntl.h:254,
from engines/fileoperations.c:9:
/usr/include/sys/stat.h:512:5: note: previous declaration of 'statx' was here
512 | int statx(char *, struct stat *, int, int);
| ^~~~~
make: *** [Makefile:526: engines/fileoperations.o] Error 1

Environment: AIX 7.2 TL05 SP04

fio version: 3.37

Reproduction steps
./configure <-- without any errors
make <-- halts with above output.

@vincentkfu
Copy link
Collaborator

It looks like AIX has a different definition of statx() than Linux does. We need to detect this in configure and make things work.

AIX statx: https://www.ibm.com/docs/en/aix/7.3?topic=s-stat-fstat-lstat-statx-fstatx-statxat-fstatat-fullstat-ffullstat-stat64-fstat64-lstat64-stat64x-fstat64x-lstat64x-stat64xat-subroutine

@vincentkfu vincentkfu added bug triaged Issue cause is understood but a patch is needed to fix it patcheswelcome No one internal is working on this but an external contributor's help is very welcome! labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug patcheswelcome No one internal is working on this but an external contributor's help is very welcome! triaged Issue cause is understood but a patch is needed to fix it
Projects
None yet
Development

No branches or pull requests

2 participants