From patchwork Sun Jul 22 13:28:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 172514 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 615292C0143 for ; Sun, 22 Jul 2012 23:32:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 62E7CA0674; Sun, 22 Jul 2012 13:32:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lm--bxuBHOon; Sun, 22 Jul 2012 13:32:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 91934A0663; Sun, 22 Jul 2012 13:32:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9B3E08F791 for ; Sun, 22 Jul 2012 13:30:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E5F5A8E856 for ; Sun, 22 Jul 2012 13:30:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jt1uHDih+ivz for ; Sun, 22 Jul 2012 13:30:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id CDF808F4E2 for ; Sun, 22 Jul 2012 13:30:22 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id fm10so4169247wgb.10 for ; Sun, 22 Jul 2012 06:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=PDaRgAG/qt68gOTNQBIwrQAnSFfkIjpK4EglW9nZdGc=; b=gkr2+QFzaTVTMLLd371VC7pW2FraqMJN46iX7VNClH2xqCkIROJEL9Tdnk+f0AvyIe mnm6Hynm9TZ6nx/aynNmsbzwq/TdPJWouvExVcXFNgXupeZ8+ysLWXf87H/zZthWq7lj jEducI4ew6tbMxu7I/SqA0lr+ZY1UVE5YaoYkzZ+CKdtIxf8zE1I29WIzj/HsPEjajml RTVnYVherwdThvorbAaC2y29brbOcDiTX87riDYXgMQ0oRCekvUQZLh6XvItKILQE8ky Q1Nq3jWHV3b2qNRDoze6cGzygI8GnW/OHNnKV2cMzWNxU4QV558PV8bvbz2ZFVieOOB+ HgTg== Received: by 10.180.83.234 with SMTP id t10mr21374928wiy.0.1342963822391; Sun, 22 Jul 2012 06:30:22 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id fb20sm16263469wid.1.2012.07.22.06.30.20 (version=SSLv3 cipher=OTHER); Sun, 22 Jul 2012 06:30:21 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 22 Jul 2012 15:28:37 +0200 Message-Id: <1342963719-1810-10-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1342963719-1810-1-git-send-email-s.martin49@gmail.com> References: <1342963719-1810-1-git-send-email-s.martin49@gmail.com> Subject: [Buildroot] [PATCH 09/11] m4: fix build with glibc >=2.16 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin create mode 100644 package/m4/m4-1.4.16-no-gets.patch diff --git a/package/m4/m4-1.4.16-no-gets.patch b/package/m4/m4-1.4.16-no-gets.patch new file mode 100644 index 0000000..a057377 --- /dev/null +++ b/package/m4/m4-1.4.16-no-gets.patch @@ -0,0 +1,38 @@ +Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. +No m4 version synchronized with gnulib since [1] has been released yet. + +This patch avoids the following error occurs when building m4 <=1.4.16 on host using +a glibc >=2.16: + +make[4]: Entering directory `/opt/buildroot/output/build/host-m4-1.4.16/lib' +/opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c +/opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c +/opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c +/opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c +mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po +/opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c +In file included from clean-temp.h:22:0, + from clean-temp.c:23: +./stdio.h:477:20: error 'gets' undeclared here (not in a function) +make[4]: *** [clean-temp.o] Error 1 + +References: +[1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 +[2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup + +Signed-off-by: Samuel Martin + +--- +diff -purN host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h +--- host-m4-1.4.16.orig/lib/stdio.in.h 2012-07-21 19:11:40.196541826 +0200 ++++ host-m4-1.4.16/lib/stdio.in.h 2012-07-21 20:46:05.405850751 +0200 +@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets ++#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@