-
Notifications
You must be signed in to change notification settings - Fork 64
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
Building with -DENABLE_XATTRS=OFF fails with "call to undeclared function" #578
Comments
There is already a Similar to what we did for DAOS support
Maybe we can do this for the functions using xattrs
Or maybe it's better to just not define those at all?
@gonsie Any recommendation for the proper way to handle this? |
Sorry, I have no idea. Hopefully @adammoody can help! |
@adammoody any comments? it seems that the compiler is actually complaining about not having the declarations for the POSIX functions, independent of DAOS. Adding the headrfile seems to fix the errors:
|
Building on SLES 15.5 and Intel MPI fails with "undeclared function" errors when using -DENABLE_XATTRS=OFF.
The respective function calls should probably be wrapped in some sort of "#ifdef XATTR"?
module load gcc intel-toolkit/2024.1.0 intel-mpi/2021.12.0 cmake
cmake ../mpifileutils
-DCMAKE_INSTALL_PREFIX=../install
-DWITH_DAOS_PREFIX=/usr
-DENABLE_DAOS=ON
-DENABLE_XATTRS=OFF
make -j install
...
/dss/dsshome1/09/di29puz3/dev/mpifileutils-v0.11.1/mpifileutils/src/common/mfu_io.c:1509:18: error: call to undeclared function 'llistxattr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1509 | ssize_t rc = llistxattr(path, list, size);
| ^
/dss/dsshome1/09/di29puz3/dev/mpifileutils-v0.11.1/mpifileutils/src/common/mfu_io.c:1546:18: error: call to undeclared function 'listxattr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1546 | ssize_t rc = listxattr(path, list, size);
| ^
/dss/dsshome1/09/di29puz3/dev/mpifileutils-v0.11.1/mpifileutils/src/common/mfu_io.c:1583:18: error: call to undeclared function 'lgetxattr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1583 | ssize_t rc = lgetxattr(path, name, value, size);
| ^
/dss/dsshome1/09/di29puz3/dev/mpifileutils-v0.11.1/mpifileutils/src/common/mfu_io.c:1618:18: error: call to undeclared function 'getxattr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1618 | ssize_t rc = getxattr(path, name, value, size);
| ^
/dss/dsshome1/09/di29puz3/dev/mpifileutils-v0.11.1/mpifileutils/src/common/mfu_io.c:1654:14: error: call to undeclared function 'lsetxattr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1654 | int rc = lsetxattr(path, name, value, size, flags);
| ^
The text was updated successfully, but these errors were encountered: