Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
9223372036854775807
Description
Trying to build Lustre on Fedora 25 I got hit by this:
lhsmtool_posix.c: In function Бct_import_recurseБ:
lhsmtool_posix.c:1499:3: error: Бreaddir_rБ is deprecated [-Werror=deprecated-de
clarations]
rc = readdir_r(dir, &ent, &cookie);
^~
In file included from /usr/include/features.h:368:0,
from /usr/include/stdio.h:27,
from lhsmtool_posix.c:40:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
^
lhsmtool_posix.c: In function Бct_dir_level_maxБ:
lhsmtool_posix.c:1710:2: error: Бreaddir_rБ is deprecated [-Werror=deprecated-declarations]
while ((rc = readdir_r(dir, &ent, &cookie)) == 0) {
^~~~~
In file included from /usr/include/features.h:368:0,
from /usr/include/stdio.h:27,
from lhsmtool_posix.c:40:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
^
man readdir_r on my Fedora25 system says that modern posix does not guarantee thread-safedness of readdir, bug glibc and other modern implementation versions of readdir are safe as long as you give it different input streams.