Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E598200B89 for ; Tue, 6 Sep 2016 18:42:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5D148160AA9; Tue, 6 Sep 2016 16:42:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 814E3160ACE for ; Tue, 6 Sep 2016 18:42:21 +0200 (CEST) Received: (qmail 19097 invoked by uid 500); 6 Sep 2016 16:42:20 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 19079 invoked by uid 99); 6 Sep 2016 16:42:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2016 16:42:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8924A2C1B7B for ; Tue, 6 Sep 2016 16:42:20 +0000 (UTC) Date: Tue, 6 Sep 2016 16:42:20 +0000 (UTC) From: "Alexander Rukletsov (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MESOS-6013) Use readdir instead of readdir_r MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Sep 2016 16:42:22 -0000 [ https://issues.apache.org/jira/browse/MESOS-6013?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Rukletsov updated MESOS-6013: --------------------------------------- Sprint: Mesosphere Sprint 42 Story Points: 3 > Use readdir instead of readdir_r > -------------------------------- > > Key: MESOS-6013 > URL: https://issues.apache.org/jira/browse/MESOS-6013 > Project: Mesos > Issue Type: Bug > Components: stout > Environment: Linux archlinux.vagrant.vm 4.6.4-1-ARCH #1 SMP PREEM= PT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux > Reporter: Neil Conway > Assignee: Neil Conway > Labels: mesosphere > > {{readdir_r}} is deprecated in recent versions of glibc (https://sourcewa= re.org/ml/libc-alpha/2016-02/msg00093.html). As a result, Mesos doesn't bui= ld on recent Arch Linux: > {noformat} > /bin/sh ../libtool --tag=3DCXX --mode=3Dcompile ccache g++ -DPACKAGE_N= AME=3D\"mesos\" -DPACKAGE_TARNAME=3D\"mesos\" -DPACKAGE_VERSION=3D\"1.1.0\"= -DPACKAGE_STRING=3D\"mesos\ 1.1.0\" -DPACKAGE_BUGREPORT=3D\"\" -DPACKAGE_U= RL=3D\"\" -DPACKAGE=3D\"mesos\" -DVERSION=3D\"1.1.0\" -DSTDC_HEADERS=3D1 -D= HAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRIN= G_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHA= VE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D\".lib= s/\" -DHAVE_CXX11=3D1 -DHAVE_PTHREAD_PRIO_INHERIT=3D1 -DHAVE_PTHREAD=3D1 -D= HAVE_LIBZ=3D1 -DHAVE_FTS_H=3D1 -DHAVE_APR_POOLS_H=3D1 -DHAVE_LIBAPR_1=3D1 -= DHAVE_LIBCURL=3D1 -DMESOS_HAS_JAVA=3D1 -DHAVE_LIBSASL2=3D1 -DHAVE_SVN_VERSI= ON_H=3D1 -DHAVE_LIBSVN_SUBR_1=3D1 -DHAVE_SVN_DELTA_H=3D1 -DHAVE_LIBSVN_DELT= A_1=3D1 -DHAVE_LIBZ=3D1 -I. -I../../mesos/src -Wall -Werror -Wsign-compar= e -DLIBDIR=3D\"/usr/local/lib\" -DPKGLIBEXECDIR=3D\"/usr/local/libexec/meso= s\" -DPKGDATADIR=3D\"/usr/local/share/mesos\" -DPKGMODULEDIR=3D\"/usr/local= /lib/mesos/modules\" -I../../mesos/include -I../include -I../include/mesos = -DPICOJSON_USE_INT64 -D__STDC_FORMAT_MACROS -isystem ../3rdparty/boost-1.53= .0 -I../3rdparty/elfio-3.1 -I../3rdparty/glog-0.3.3/src -I../3rdparty/level= db-1.4/include -I../../mesos/3rdparty/libprocess/include -I../3rdparty/nvml= -352.79 -I../3rdparty/picojson-1.3.0 -I../3rdparty/protobuf-2.6.1/src -I../= ../mesos/3rdparty/stout/include -I../3rdparty/zookeeper-3.4.8/src/c/include= -I../3rdparty/zookeeper-3.4.8/src/c/generated -DHAS_AUTHENTICATION=3D1 -I/= usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 -pthr= ead -g1 -O0 -Wno-unused-local-typedefs -std=3Dc++11 -MT appc/libmesos_no_3r= dparty_la-spec.lo -MD -MP -MF appc/.deps/libmesos_no_3rdparty_la-spec.Tpo -= c -o appc/libmesos_no_3rdparty_la-spec.lo `test -f 'appc/spec.cpp' || echo = '../../mesos/src/'`appc/spec.cpp > libtool: compile: ccache g++ -DPACKAGE_NAME=3D\"mesos\" -DPACKAGE_TARNAM= E=3D\"mesos\" -DPACKAGE_VERSION=3D\"1.1.0\" "-DPACKAGE_STRING=3D\"mesos 1.1= .0\"" -DPACKAGE_BUGREPORT=3D\"\" -DPACKAGE_URL=3D\"\" -DPACKAGE=3D\"mesos\"= -DVERSION=3D\"1.1.0\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS= _STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -DH= AVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H= =3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D\".libs/\" -DHAVE_CXX11=3D1 -DHAVE_PT= HREAD_PRIO_INHERIT=3D1 -DHAVE_PTHREAD=3D1 -DHAVE_LIBZ=3D1 -DHAVE_FTS_H=3D1 = -DHAVE_APR_POOLS_H=3D1 -DHAVE_LIBAPR_1=3D1 -DHAVE_LIBCURL=3D1 -DMESOS_HAS_J= AVA=3D1 -DHAVE_LIBSASL2=3D1 -DHAVE_SVN_VERSION_H=3D1 -DHAVE_LIBSVN_SUBR_1= =3D1 -DHAVE_SVN_DELTA_H=3D1 -DHAVE_LIBSVN_DELTA_1=3D1 -DHAVE_LIBZ=3D1 -I. -= I../../mesos/src -Wall -Werror -Wsign-compare -DLIBDIR=3D\"/usr/local/lib\"= -DPKGLIBEXECDIR=3D\"/usr/local/libexec/mesos\" -DPKGDATADIR=3D\"/usr/local= /share/mesos\" -DPKGMODULEDIR=3D\"/usr/local/lib/mesos/modules\" -I../../me= sos/include -I../include -I../include/mesos -DPICOJSON_USE_INT64 -D__STDC_F= ORMAT_MACROS -isystem ../3rdparty/boost-1.53.0 -I../3rdparty/elfio-3.1 -I..= /3rdparty/glog-0.3.3/src -I../3rdparty/leveldb-1.4/include -I../../mesos/3r= dparty/libprocess/include -I../3rdparty/nvml-352.79 -I../3rdparty/picojson-= 1.3.0 -I../3rdparty/protobuf-2.6.1/src -I../../mesos/3rdparty/stout/include= -I../3rdparty/zookeeper-3.4.8/src/c/include -I../3rdparty/zookeeper-3.4.8/= src/c/generated -DHAS_AUTHENTICATION=3D1 -I/usr/include/subversion-1 -I/usr= /include/apr-1 -I/usr/include/apr-1.0 -pthread -g1 -O0 -Wno-unused-local-ty= pedefs -std=3Dc++11 -MT appc/libmesos_no_3rdparty_la-spec.lo -MD -MP -MF ap= pc/.deps/libmesos_no_3rdparty_la-spec.Tpo -c ../../mesos/src/appc/spec.cpp = -fPIC -DPIC -o appc/.libs/libmesos_no_3rdparty_la-spec.o > In file included from ../../mesos/3rdparty/stout/include/stout/os.hpp:52:= 0, > from ../../mesos/src/appc/spec.cpp:17: > ../../mesos/3rdparty/stout/include/stout/os/ls.hpp: In function =E2=80=98= Try > > os::ls(const st= ring&)=E2=80=99: > ../../mesos/3rdparty/stout/include/stout/os/ls.hpp:56:19: error: =E2=80= =98int readdir_r(DIR*, dirent*, dirent**)=E2=80=99 is deprecated [-Werror= =3Ddeprecated-declarations] > while ((error =3D readdir_r(dir, temp, &entry)) =3D=3D 0 && entry !=3D= nullptr) { > ^~~~~~~~~ > In file included from ../../mesos/3rdparty/stout/include/stout/os/ls.hpp:= 19:0, > from ../../mesos/3rdparty/stout/include/stout/os.hpp:52, > from ../../mesos/src/appc/spec.cpp:17: > /usr/include/dirent.h:183:12: note: declared here > extern int readdir_r (DIR *__restrict __dirp, > ^~~~~~~~~ > In file included from ../../mesos/3rdparty/stout/include/stout/os.hpp:52:= 0, > from ../../mesos/src/appc/spec.cpp:17: > ../../mesos/3rdparty/stout/include/stout/os/ls.hpp:56:46: error: =E2=80= =98int readdir_r(DIR*, dirent*, dirent**)=E2=80=99 is deprecated [-Werror= =3Ddeprecated-declarations] > while ((error =3D readdir_r(dir, temp, &entry)) =3D=3D 0 && entry !=3D= nullptr) { > ^ > In file included from ../../mesos/3rdparty/stout/include/stout/os/ls.hpp:= 19:0, > from ../../mesos/3rdparty/stout/include/stout/os.hpp:52, > from ../../mesos/src/appc/spec.cpp:17: > /usr/include/dirent.h:183:12: note: declared here > extern int readdir_r (DIR *__restrict __dirp, > ^~~~~~~~~ > cc1plus: all warnings being treated as errors > {noformat} > Seems like {{readdir_r}} is deprecated; manpage suggests using {{readdir}= } instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)