Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 3F89476AE4 for ; Fri, 21 Aug 2015 08:41:21 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id t7L8fLaX012996 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 21 Aug 2015 01:41:21 -0700 (PDT) Received: from pek-hostel-deb02.wrs.com (128.224.153.152) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.235.1; Fri, 21 Aug 2015 01:41:21 -0700 From: To: Date: Fri, 21 Aug 2015 16:37:13 +0800 Message-ID: <1440146235-9630-3-git-send-email-kai.kang@windriver.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440146235-9630-1-git-send-email-kai.kang@windriver.com> References: <1440146235-9630-1-git-send-email-kai.kang@windriver.com> MIME-Version: 1.0 Subject: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2015 08:41:23 -0000 Content-Type: text/plain From: Kai Kang atftp fails to build with gcc 5.2: tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined GCC 5 defaults to -std=gnu11 instead of -std=gnu89. The semantics of inline function changes. Pass '-std=gnu89' to gcc to compile atftp. Ref: https://gcc.gnu.org/gcc-5/porting_to.html Signed-off-by: Kai Kang --- meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb index b53f637..0ece58f 100644 --- a/meta-networking/recipes-daemons/atftp/atftp_git.bb +++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb @@ -32,6 +32,8 @@ USERADD_PACKAGES = "${PN}d" USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ --user-group nobody" +EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'" + do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd -- 1.9.1