[Debian-med-packaging] Bug#859202: warning: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Mar 31 14:44:11 UTC 2017


Package: dcmtk
Version: 3.6.1~20160216-4

Looks like readdir_r is deprecated in glibc:

https://buildd.debian.org/status/fetch.php?pkg=dcmtk&arch=arm64&ver=3.6.1~20160216-4&stamp=1480781062&raw=0

/«PKGBUILDDIR»/dcmwlm/libsrc/wlfsim.cc:485:27: warning: 'int
readdir_r(DIR*, dirent*, dirent**)' is deprecated
[-Wdeprecated-declarations]
     for( int readResult = readdir_r( dirp, (struct dirent
*)entryBuffer, &dp ) ; readResult == 0 && dp ; readResult = readdir_r(
dirp, (struct dirent *)entryBuffer, &dp ) )
                           ^~~~~~~~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/aarch64-linux-gnu/c++/6/bits/os_defines.h:39,
                 from /usr/include/aarch64-linux-gnu/c++/6/bits/c++config.h:502,
                 from /usr/include/c++/6/climits:41,
                 from /«PKGBUILDDIR»/ofstd/include/dcmtk/ofstd/ofstdinc.h:197,
                 from /«PKGBUILDDIR»/dcmwlm/libsrc/wlfsim.cc:27:
/usr/include/dirent.h:189:12: note: declared here
 extern int __REDIRECT (readdir_r,
            ^


ref: https://lwn.net/Articles/696474/



More information about the Debian-med-packaging mailing list