[ 
https://issues.apache.org/jira/browse/TS-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Peach updated TS-5027:
----------------------------
    Description: 
glibc deprecated {{readdir_r}} for reasons explained in the [man 
page|http://man7.org/linux/man-pages/man3/readdir_r.3.html].

{noformat}
../../mgmt/Rollback.cc  -fPIC -DPIC -o .libs/Rollback.o
../../mgmt/FileManager.cc: In member function 'SnapResult 
FileManager::removeSnap(const char*, const char*)':
../../mgmt/FileManager.cc:394:10: error: 'int readdir_r(DIR*, dirent*, 
dirent**)' is deprecated [-Werror=deprecated-declarations]
  while (readdir_r(dir, dirEntrySpace, &entryPtr) == 0) {
         ^~~~~~~~~
In file included from ../../lib/ts/ink_platform.h:130:0,
                from ../../mgmt/FileManager.cc:24:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR *__restrict __dirp,
           ^~~~~~~~~
{noformat}

  was:glibc deprecated {{readdir_r}} for reasons explained in the [man 
page|http://man7.org/linux/man-pages/man3/readdir_r.3.html]


> Replace readdir_r with readdir.
> -------------------------------
>
>                 Key: TS-5027
>                 URL: https://issues.apache.org/jira/browse/TS-5027
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cleanup, Core
>            Reporter: James Peach
>            Assignee: James Peach
>
> glibc deprecated {{readdir_r}} for reasons explained in the [man 
> page|http://man7.org/linux/man-pages/man3/readdir_r.3.html].
> {noformat}
> ../../mgmt/Rollback.cc  -fPIC -DPIC -o .libs/Rollback.o
> ../../mgmt/FileManager.cc: In member function 'SnapResult 
> FileManager::removeSnap(const char*, const char*)':
> ../../mgmt/FileManager.cc:394:10: error: 'int readdir_r(DIR*, dirent*, 
> dirent**)' is deprecated [-Werror=deprecated-declarations]
>   while (readdir_r(dir, dirEntrySpace, &entryPtr) == 0) {
>          ^~~~~~~~~
> In file included from ../../lib/ts/ink_platform.h:130:0,
>                 from ../../mgmt/FileManager.cc:24:
> /usr/include/dirent.h:183:12: note: declared here
> extern int readdir_r (DIR *__restrict __dirp,
>            ^~~~~~~~~
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to