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 16735200CE0 for ; Fri, 25 Aug 2017 12:56:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 14D3316C796; Fri, 25 Aug 2017 10:56:11 +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 30AA516C795 for ; Fri, 25 Aug 2017 12:56:10 +0200 (CEST) Received: (qmail 97066 invoked by uid 500); 25 Aug 2017 10:56:08 -0000 Mailing-List: contact dev-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 dev@mesos.apache.org Received: (qmail 95499 invoked by uid 99); 25 Aug 2017 10:56:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2017 10:56:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 460E11A21C9 for ; Fri, 25 Aug 2017 10:56:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.721 X-Spam-Level: *** X-Spam-Status: No, score=3.721 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, HTML_OBFUSCATE_20_30=2.441, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mesosphere-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id wZdhPgFikecl for ; Fri, 25 Aug 2017 10:56:02 +0000 (UTC) Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 372A45F5B3 for ; Fri, 25 Aug 2017 10:56:02 +0000 (UTC) Received: by mail-wm0-f72.google.com with SMTP id r187so2139730wma.4 for ; Fri, 25 Aug 2017 03:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mesosphere-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XRJxUDBRTxWE2tsydR6ptHiL2QX65gDSZwEPiV/lTho=; b=vNOfAozzbfpXw7JUuts4VsKaPJQmtu2iSC8IW5rUJweJm7ompjIh5h1ySeB7x65ew2 26OJzYSVjCkkwwKe7m+OgwoihLPi0n5AabgLoSB3mGXvbvyODrarKH6j9jtpN/MSVPtW RwzXRdQQd/l315HM4RalpYzgZl1SxIMI7THeHYzflnsOR0b4w6SV17cgH8PBSMqlqTfh Nd4CDBJdwxWQr4vvdaThRoq3b8Igo+yp1WzhR1duJwsGLSqqcNP2pMvMT0Rgbcyo6NeX 3dQU7zPLAfL2dkhVvIvPCn4OcbQdOwprG/+fntqQILcTuIS46eUsGdOmzAP1WJoDSmal 83Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XRJxUDBRTxWE2tsydR6ptHiL2QX65gDSZwEPiV/lTho=; b=jB5DJWOSgJVk7gQMdDmeXa8cn907I3jmSs4ThWzpbS4hlGwSgaiFMK2AF9axEPxvb5 IHBxQFfOHuVjRu04/ByOU/XGwKSxyIIovUbuPeSq63pAN9uD/fcgEzO7W4lBtz7pVut7 9g0KKEoaf0/DpBU64Z6TDXY0VjSWcJzh7tq5pM8FnbA3hovdglmu1i/7trx9Qh5THDL7 8ALRws99Q9rVtnDq2wEAqAr07gRkCpab6pUtGFm7Qx1JpIj7SK5Ifbu2PzrHMLkBRp3v JOyGJierTH/JUnHRx0Yk0EZ3R7MMdsg49PMpXwe6rNL+3USOQRHd97SRK46euc/IGUS7 qt8g== X-Gm-Message-State: AHYfb5gbdbTfpkMkL3BjICdruk52QSwkTV4JQRRJhuFKXcP/ZNfHJxJZ vne+jInY+JkMMeBsMkGH/l2Mb0amhBITTSUQyQ== X-Received: by 10.28.7.79 with SMTP id 76mr1109472wmh.195.1503658554790; Fri, 25 Aug 2017 03:55:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.211.81 with HTTP; Fri, 25 Aug 2017 03:55:54 -0700 (PDT) In-Reply-To: <040A1158-444F-42BE-8AA6-A19694F8BD42@gmail.com> References: <040A1158-444F-42BE-8AA6-A19694F8BD42@gmail.com> From: Alex Rukletsov Date: Fri, 25 Aug 2017 12:55:54 +0200 Message-ID: Subject: Re: build tests/scheduler_http_api_tests.cpp error To: dev Cc: Yanjun Shen Content-Type: multipart/alternative; boundary="001a11477f8605acc1055791ca8c" archived-at: Fri, 25 Aug 2017 10:56:11 -0000 --001a11477f8605acc1055791ca8c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, we need to `#include `. Thanks for the report! It is fixed in the master now: 9735aebcdaa02d6577636b2c9ea45d986af747c9 On Tue, Aug 22, 2017 at 11:22 AM, Yanjun Shen wrote: > hi, > now, i have finished make install ,but when i build > scheduler_http_api_tests.cpp file, then error as flow: > > In file included from /usr/local/include/internal/devolve.hpp:27:0, > from /usr/local/include/master/master.hpp:75, > from scheduler_http_api_tests.cpp:39: > /usr/local/include/mesos/executor/executor.hpp:28:61: =E9=94=99=E8=AF=AF= =EF=BC=9A=E2=80=98Call=E2=80=99=E4=B8=8D=E6=98=AF=E4=B8=80=E4=B8=AA=E7=B1= =BB=E5=9E=8B=E5=90=8D > inline std::ostream& operator<<(std::ostream& stream, const Call::Type& > type) > ^ > /usr/local/include/mesos/executor/executor.hpp:28:71: =E9=94=99=E8=AF=AF= =EF=BC=9Aexpected > unqualified-id before =E2=80=98&=E2=80=99 token > inline std::ostream& operator<<(std::ostream& stream, const Call::Type& > type) > ^ > /usr/local/include/mesos/executor/executor.hpp:28:71: =E9=94=99=E8=AF=AF= =EF=BC=9Aexpected =E2=80=98)=E2=80=99 > before =E2=80=98&=E2=80=99 token > /usr/local/include/mesos/executor/executor.hpp:28:73: =E9=94=99=E8=AF=AF= =EF=BC=9Aexpected > initializer before =E2=80=98type=E2=80=99 > inline std::ostream& operator<<(std::ostream& stream, const Call::Type& > type) > = ^ > /usr/local/include/mesos/executor/executor.hpp:34:61: =E9=94=99=E8=AF=AF= =EF=BC=9A=E2=80=98Event=E2=80=99=E4=B8=8D=E6=98=AF=E4=B8=80=E4=B8=AA=E7=B1= =BB=E5=9E=8B=E5=90=8D > inline std::ostream& operator<<(std::ostream& stream, const Event::Type& > type) > ^ > /usr/local/include/mesos/executor/executor.hpp:34:72: =E9=94=99=E8=AF=AF= =EF=BC=9Aexpected > unqualified-id before =E2=80=98&=E2=80=99 token > inline std::ostream& operator<<(std::ostream& stream, const Event::Type& > type) > ^ > /usr/local/include/mesos/executor/executor.hpp:34:72: =E9=94=99=E8=AF=AF= =EF=BC=9Aexpected =E2=80=98)=E2=80=99 > before =E2=80=98&=E2=80=99 token > /usr/local/include/mesos/executor/executor.hpp:34:74: =E9=94=99=E8=AF=AF= =EF=BC=9Aexpected > initializer before =E2=80=98type=E2=80=99 > inline std::ostream& operator<<(std::ostream& stream, const Event::Type& > type) > > my build command > g++ -std=3Dc++0x -o test_scheduler_http.bin -I/usr/local/include > -L/usr/local/lib scheduler_http_api_tests.cpp -Lmesos-1.3.0 > > i find type =E2=80=9CCall=E2=80=9D in the scheduler.pb.h in the build di= r > [root@mytest mesos-1.3.0]# find . -name scheduler.pb.h > ./build/include/mesos/scheduler/scheduler.pb.h > ./build/include/mesos/v1/scheduler/scheduler.pb.h > > so , do you tell me ?Mesos=E2=80=99s heads file dir need include ? > > Thanks. --001a11477f8605acc1055791ca8c--